Assign faulted

1 Like

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

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

what was the error you were getting??


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")


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