Issue in Using Directory.GetFiles Command

Directory.GetFiles Not working if we use it in the Workflow. If we test that alone it works

@devKarthikeyanR,

What parameters you are passing to GetFiles, and what error you are getting if you use it in workflow.

It would work in all cars make sure that the expression is mention like this
arr_filepath = Directory.GetFiles(“yourfolderpath”)
Where arr_filepath is a variable of type array of string

Cheers @devKarthikeyanR

When test the For Each with Directory.GetFiles(FolderPath) the loop executes but when we combine with other activities its not working.

When test the For Each with Directory.GetFiles(FolderPath) the loop executes but when we combine with other activities its not working.

1 Like

And it has these three overloads am with different arguments
Make sure that you have mention in these format

Cheers @devKarthikeyanR

Hmm ok what was the sequence used in your workflow
Because it would work for sure
Cheers @

GetFiles.xaml (5.8 KB)

Check this xaml, whether it is working fine or not.

I told you right. Directory.GetFiles with 3 overloading methods works fine when we test it alone. :slight_smile:

Fine
Kindly share your workflow If possible
Cheers @devKarthikeyanR