Impossible to convert SystemObject to System.Bolean in multiple assign

Hi ,
I ve got a little problem to convert a json object ( true or false ) in boolean
uipatherr

uipatherr

thanks for your help

Hi @frederic-f.bonnet

Make sure forfaitJour is of DataType System.Boolean and try the same syntax:

forfaitJour = Convert.ToBoolean(JsonObject("forfaitJour"))

Regards

Hi @frederic-f.bonnet

Could you check the forfaitJour variable is in System.Boolean datatype or not.

Hope it helps!!

Hi @frederic-f.bonnet,

Thanks for reaching out UiPath Community.

Can you please try Convert.ToBoolean(JsonObject(“forfaitJour”).ToString)
and Check To variable datatype is boolean.
Hope this help

Happy Automation,
@Vinit_Kawle

Hi,

It seems validator is not working correctly. For now, can you try to clear right side field and unfocus it, then retype the expression?

Regards,

1 Like

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