Assign Activity throws Invalid Signature Exception

Hello,

I am trying to loop throw a collection of folder paths and for each path, navigate through some folders. I assigned a String Array with Directory.GetDirectories(). This piece of code works fine for the first folder path. But for the second path onwards, it throws Invalid Signature exception. This behavior is also not consistent. In debug, if I do Retry then, it goes through with out any issues.

Pls let me know if any one has come across this and have a suggestion on this.

Thank you,
Hari

@HKP

stringfolders=Directory.GetDirectories(mainfolderpath)

use for each for the above mentioned stringfolders

are doing in the same manners,if so can you check the stringfolders

as you are getting all the folderpath or not

Maybe your description was misinterpreted


taken from: Directory.GetDirectories Method (System.IO) | Microsoft Learn

There is no signature without empty arguments like Directory.GetDirectories()

Depending on the details also crosss-check

  • Path is correct
  • UNC Path involvement and its handling

Capture1
image

Both the Assign statements are in the for each loop only. It works for the first folder path. For the second folder path onwards, it gives this error. Thing is, if I restart the whole process, it does not throw this error.

we cannot refer to the used statements
MSDN Docu is the base and we follow

Can you correct me if I am not following the MSDN Docu pls?