Unable to start execution. Cannot deserialize current JSON object

Hi, I ran into a problem: when I start any process in debug mode, this error comes out. Everything is ok, if I run it in Run mode.

Cannot deserialize the current JSON object (e.g. {“name”:“value”}) into type ‘UiPath.Service.Api.Service.Models.FlowControl.IFlowControlAction’ because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path ‘DebugOptions.FlowControlActions.Value’, line 1, position 16646.

Hi @abaimukhanov

Any chance you could share the project via a private message to me @loginerror?
Otherwise, could you let us know if the same happens on a completely empty, new project? (maybe with just one write line activity).

Also, what is your Studio version? In case it is related to the robot process not restarting properly after an auto-update, you could try a simply computer restart first as well.

It happens with simple process, like “hello world”.

My Studio version is 21.4.0. Previous was 21.1.2beta or 21.0.2beta, and there was this problem too, I often restart my PC, so I guess reboot is not solution.

Hi @loginerror ,
i’ve got the same error as @abaimukhanov since the Upgrade 2021.4.

same error here since 2021.4.0

Hey guys,

Can you please share your workflow, diagnostic report (from uipath diagnostic tool) and a print screen of the error?

Thanks,

1 Like

@gromeo, @MMartin, @abaimukhanov
Can you please share your workflow, diagnostic report (from uipath diagnostic tool) and a print screen of the error?

21.4.0-beta.299+Branch.release-v21.4.0.Sha.ec24d994c86bac6bf79db60d9dda81a2b0d10d70

Cannot deserialize the current JSON object (e.g. {“name”:“value”}) into type ‘UiPath.Service.Api.Service.Models.FlowControl.IFlowControlAction’ because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path ‘DebugOptions.FlowControlActions.Value’, line 1, position 17268.

RemoteException wrapping Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object (e.g. {“name”:“value”}) into type ‘UiPath.Service.Api.Service.Models.FlowControl.IFlowControlAction’ because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path ‘DebugOptions.FlowControlActions.Value’, line 1, position 17268.
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at UiPath.CoreIpc.JsonSerializer.Deserialize(String json, Type type)
at UiPath.CoreIpc.Server.g__Deserialize|23_0(<>c__DisplayClass23_0& )
at UiPath.CoreIpc.Server.GetArguments(EndpointSettings endpoint, MethodInfo method, Request request, CancellationToken cancellationToken)
at UiPath.CoreIpc.Server.d__21.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.CoreIpc.Server.<>c__DisplayClass4_2.<<-ctor>b__6>d.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.CoreIpc.IOHelpers.d__12.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.CoreIpc.IOHelpers.d__18`1.MoveNext()
https://ibb.co/vBJx7kg

@Obakeng_Seageng

please provide a screenshot with the error and the entire Studio window. This is working as expected on my machine and I cannot replicate your error. Also please generate a diagnostic report (from uipath diagnostic tool) and send me.

Works now. I just uninstalled the beta version and installed the stable version.

An update - we were so far unable to reproduce this issue. The advised thing to do would be to try a clean installation, seeing how it helped @Obakeng_Seageng above:

See here:
How to fix your Studio installation / Licensing issues

1 Like

Hi,

the error happens with any workflow even an empty one, only if I try to run in Debug mode: starting a project in Run mode works as expected.
I’m not using a beta version of studio, I have 2021.4.0.

DiagnosticToolExport-06-apr-21.zip (1.4 MB)

Thanks,
Giovanni Romeo

@gromeo Can we get some more detail please?
I am looking for the log files from Studio(You can do a Ctrl+L in Studio or navigate to %localappdata%\UiPath\Logs and share that folder content

Hi,

I’m sorry but I uninstalled & reinstalled Studio, so I no longer have the issue.

Thanks,
Giovanni Romeo

1 Like

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