I am trying to use array of string in switch activity but while entering data in cases (in string ) i am getting error as " case key value cannot be converted from/to type string".
could you please say what values will be accepted in cases if dealing with array of string?
Welcome to our UiPath community.
You mean want to pass Array of String as Case value here ?
As in screenshot you can see In Expression i am passing Array of string (i.e item) , But in cases i am passing String value(i.e as Files) .
Can you please elaborate more about your input and what you are trying to achieve here.
If your case value is String then select Type Argument as String instead of Array of String.
Try changing Type as String!
When i change type to string i am getting below error message .
actually i have data in array of string(i.e- item) from which i want to iterate using for loop.
and in item i want to use switch activity and depending upon the value i want to perform my action.
Change the type in for each as a String because in your case you re iterating the Array of String and Setting the Switch Condition I Guess?
If am right then change in both for each and switch condition as String!
thank you @pravin_calvin .
Working fine now .
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.