Studio 2023.2.0 community Edition_For Each_property panel_want to set up type argument but I couldn't find it


I am trying to convert JSON values to datatable as mentioned in the image below.


I got stuck at For each activity where I couldn’t get the specific value from the Json property and getting the below error message.

Main.xaml: Compiler error(s) encountered processing expression “currentItem.Values”.(2) : error BC30512: Option Strict On disallows implicit conversions from ‘IJEnumerable(Of JToken)’ to ‘JToken’.

Could anyone please help on this.


It seems a bug of UiPath.System.Activities package 23.2.0-preview in Windows project.
As a workaround, can you try to downgrade UiPath.System.Activities package to 22.10.4?
(Or use Windows-Legacy)



In the latest version we are unable to change the type argument of for loop…

So please try downgrading the system activities

And try changing the type argument to jobject

You can use jobj(“Personaldetails”)

And currentindex can be obtained by assigning a currentindex variable to the index property in for loop

And inside the loop cna use currentitem(currentindex.ToString)("name").ToString to get the name of first item


Hi @Atshaya_S,

The error message indicates that the currentItem.Values expression is trying to perform an implicit conversion from IJEnumerable(Of JToken) to JToken, which is not allowed with Option Strict On.

To fix this error, you can explicitly convert the result of currentItem.Values to a list of JToken using the .ToList() method. Here’s an example:

Dim valuesList As List(Of JToken) = currentItem.Values.ToList()

Then you can iterate over valuesList instead of currentItem.Values. This should resolve the error and allow your code to compile with Option Strict On.

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