I invoked the ‘invoke code’ activity, and it threw an error saying ‘parameter has already been declared for this method.’ How can I modify it?


I invoked the ‘invoke code’ activity, and it threw an error saying ‘parameter has already been declared for this method.’ How can I modify it?
Hey @shenyu ,
if you have passed the argument then you don’t need to use:
Dim fileNames As New List(Of String)
can be done directly within an assign activity:
myFileNameList =
New DirectoryInfo("FolderPathOrVariable").GetFiles().Select(Function (x) x.Name).toList()
Thank you very much, my problem has been resolved
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.