Getting the below error, with respect to Newtonsoft.Json.dll at two different locations, somehow the UiPath workflow is referencing both the dll at two different locations and giving error, while Deserilize Json Array. Tried removing packages but they get installed with basic Activity pacakages of UiPath, and tried copying the same
Newtonsoft.Json.dll at both locations , UiPath application itself does not launch.
Request any inputs on solving this issue.It would be really helpful. Referred several topics in the forum with the related issue, but none is solving it.
RemoteException wrapping System.Exception: The invoked workflow ‘JsonExtract’ has validation errors. Please review the workflow and resolve the errors. —> RemoteException wrapping System.Activities.InvalidWorkflowException: The following errors were encountered while processing the workflow tree:
‘JsonExtract’: The private implementation of activity ‘1: JsonExtract’ has the following validation error: Compiler error(s) encountered processing expression “deserializedJson”.
Value of type ‘Newtonsoft.Json.Linq.JArray’ cannot be converted to ‘Newtonsoft.Json.Linq.JArray’. Type mismatch could be due to mixing a file reference to 'C:\Users\Dell.nuget\packages\newtonsoft.json\12.0.2\lib\net45\Newtonsoft.Json.dll’ in project ‘vbhost’ with a file reference to 'C:\Users\Dell\AppData\Local\UiPath\app-19.11.0-beta0002\Newtonsoft.Json.dll’ in project ‘vbhost’. If both assemblies are identical, try replacing these references so both references are from the same location.
at System.Activities.Hosting.WorkflowInstance.ValidateWorkflow(WorkflowInstanceExtensionManager extensionManager)
at System.Activities.Hosting.WorkflowInstance.RegisterExtensionManager(WorkflowInstanceExtensionManager extensionManager)
at System.Activities.WorkflowApplication.EnsureInitialized()
at System.Activities.WorkflowApplication.Enqueue(InstanceOperation operation, Boolean push)
at System.Activities.WorkflowApplication.SimpleOperationAsyncResult.Run(TimeSpan timeout)
at System.Activities.WorkflowApplication.BeginRun(AsyncCallback callback, Object state)
at UiPath.Executor.RobotRunner.d__83.MoveNext()
— End of inner exception stack trace —
at System.Activities.Hosting.WorkflowInstance.ValidateWorkflow(WorkflowInstanceExtensionManager extensionManager)
at System.Activities.Hosting.WorkflowInstance.RegisterExtensionManager(WorkflowInstanceExtensionManager extensionManager)
at System.Activities.WorkflowApplication.EnsureInitialized()
at System.Activities.WorkflowApplication.Enqueue(InstanceOperation operation, Boolean push)
at System.Activities.WorkflowApplication.SimpleOperationAsyncResult.Run(TimeSpan timeout)
at System.Activities.WorkflowApplication.BeginRun(AsyncCallback callback, Object state)
at UiPath.Executor.RobotRunner.d__83.MoveNext()
