How to add string to list of list

Error :For Each: Unable to cast object of type ‘System.String’ to type ‘System.Collections.Generic.List`1[System.String]’.

1 Like


inside the for loop use Add To Collections activity to add string to the string list.

1 Like

Hi @Pradeep_Shiv,

1.In the for each activity change the iteration variable data type to System.Collections.Generic.List`1[System.String]

Check the above snippet you can browse for the list in the types of data types.

Any doubt let me know.

1 Like