For Each: Expression Activity type 'VisualBasicValue`1' requires compilation in order to run. Please ensure that the workflow has been compiled

I got this issue while using directory.getfiles inside the for each loop

Hi @Gopikrishna_S

Can you please send us the screenshot of the For Each activity along with the expression that you are using there, so that we can analyze your requirements?

Best Regards.

Hi @Gopikrishna_S

Can you try to update the double quotes in the expression

directory.getfiles("Your path")

Check out the thread

Regards
Gokul

Check this tutorial @Gopikrishna_S 4

Regards
Gokul

Screenshot 2023-06-07 125757

@Gopikrishna_S

Not sure why are you using directory.getfiles

Did you try using for eqch file in folder activity directly?

And the error you specify genwrally happens when the inverted comma are wrong …just try to replace them if wrong again in code

Cheers