List of strings changes to a string array when populated by step

0
0

Hi,

I’m having an issue with a variable being defined as a List of strings changing to a string array after being filled by the Get Files In Folder Step.

I’m trying to log the contents of the folder checked by the Get Files in Folder Step so I’m referencing the variable in the script step as:
List<string>

The variable can normally be referenced before it’s populated by the Get Files In Folder Step
After it has been populated ny the step and is referenced in the script step as List<string> i get the following exception:

[ERR] System.InvalidCastException: Unable to cast object of type 'System.String[]' to type 'System.Collections.Generic.List`1[System.String]'.

Has anyone else had this issue?

Tnx

 

  • You must to post comments
0
0

I had the same issue, but I figured it out when I wanted to display the list in the display message step. I contacted Robotiq support, and they will resolve this bug.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.