Value cannot be null

Getting error that value cannot be null, when opening the latest file in folder and copying it contents to a new file.

Please fix this error for me…files.xaml (8.5 KB)

1 Like

Hi,
The Variable for storing all the files in the folder should be an array of strings.
and then you can iterate through the files using for each. I guess the function used in the assign activity does not provide any result.

1 Like

Could you please provide a fix for above, if you can…

1 Like

Hello @Seles83

Checkout this workflow.

files.xaml (9.1 KB)

1 Like

Still getting the same error…files.xaml (9.1 KB)

1 Like

It’s working fine without any error on my side. Can you please share screenshot of error and where it is occurring.

1 Like

Now working thanks…

1 Like

@AbhilashReddy am also facing the same issue. could you please help

1 Like

@Gv_Rajini When do you get the Error?

1 Like

when i try to upload the folder

1 Like

@supermanPunch

not able to upload the file so i attached the screenshot. please refer the image and help me out.

1 Like

@Gv_Rajini
Share the error message.

1 Like

@Gv_Rajini Are you able to print values using Write Line?

1 Like

@JobinJoy.jnj Please find below the error screenshot

1 Like

@supermanPunch i am just started learning recently. could you please explain clearly what you are asking and how to check.

1 Like

@Gv_Rajini Show me the Value what you have used in Assign of filesArray

1 Like

@supermanPunch Directory.GetFiles(selectedfolder)

1 Like

@Gv_Rajini Can you use a message box and show the Value of selectedFolder before Assign

1 Like

@supermanPunch selectedfolder is the variable i have assigned

1 Like

@supermanPunch PFB

1 Like