Assign faulted

1 Like

Hi
welcome to uipath community
may i know what was the error you were getting
is the variable filelist is of type array of string
@dmann

Hi
Thanks for your response.
Yes Variable filelist is a array of string.

what was the error you were getting??

@dmann

Could you please show me full expression you are passing to filelist variable and show me screenshot of the error you are getting here.

There can be 2 problems:

  • Incorrect type of variable
  • Incorrect location (path) passed to GetFiles method

Hello @dmann, you are the man! haha

See the result:

Get files.xaml (5.2 KB)
try this pal:

directory.GetFiles("C:\Users" & environment.UserName & "\Documents\IDB_files")

Regards,


Don’t forget to like us :heartpulse:
Happy Automation! :sunglasses: