I am building a for each loop so that the automation can do the same activity for a number of inputs, separated by a comma. For example “dog,cat,elephant”. It will go through the steps and enter dog, go through the steps again and enter cat, etc.
I am using the Assign activity to create a variable “RuleArray” with CurrentRow(“Technical Object Remainder List”).ToString.Split(","C) as the input. I currently have the variable type as “String” and am getting the following error:
"Compiler error(s) encountered processing expression “CurrentRow(“Technical Object Remainder List”),.ToString.Split(”,“C)”. Value of type ‘1-dimensional array of String’ cannot be converted to ‘String’.
I think it was the two dimensional array. Change the variable datatypes to two dimensional array.
Follow the below steps -
=> Open variables panel
=> Select the array of string variable that you are getting error.
=> When you select array it was to take string,int, array, browse for types.
=> Again click on array then we have to select the string from the datatype.
=> Then save it will be two dimensional array.