Option strict on disallows implicit conversions from 'object' to 'string' uipath

Hi,

Pls help with this error. I am trying to replicate the same as the sample code given but getting stuck with compiler error every time.

1 Like

winnerCounts.ContainsKey(winnerName.Key)

1 Like

it doesnt work… still same issue

Attaching the files. Pls check and let me know

Main.xaml (5.5 KB) project.json (975 Bytes)

@vinothraj1 in the for each activity change the TypeArgument from object to string

That is because you said in the workflow for each winnerCounts in TourDeFranceWinners.values
Now your TourDeFrance dictionary is of type (int32,string) and you need to use the same type for the for each argument (WinnerCounts)

image

1 Like

Hi,

For “FOr Each”: Activity put the “TypeArgument” as String.

Regards,
Murali

1 Like

Great. Thank you all

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.