Deserialize JSON throws Error on Launch -‘Exception has been thrown by the Target of an Invocation’
Tried different versions of UiPath.WebAPI.Activities but the same error.
Deserialize JSON throws Error on Launch -‘Exception has been thrown by the Target of an Invocation’
Tried different versions of UiPath.WebAPI.Activities but the same error.
Check if you are getting JSON value or not.
You can click on Details on the error popup and share. Also if possible share the JSON to check.
Hi @Syed_genius
Could you please post here the entire error stack by using the Copy to Clipboard button?
22.10.5+Branch.support-v22.10.Sha.79bc7c61a909d990afd07620b3005b3a35eb1f1b
Exception has been thrown by the target of an invocation.
Error: System.Exception: Exception has been thrown by the target of an invocation.
—> System.Exception: Could not load type ‘System.Activities.ViewModels.Interfaces.IBusyService’ from assembly ‘System.Activities.ViewModels, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’.
at UiPath.Web.Activities.ViewModels.DeserializeJsonViewModel1..ctor(IDesignServices services) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Span
1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object args, CultureInfo culture)
at System.Activator.CreateInstance(Type type, Object args)
at UiPath.Studio.Plugin.Workflow.Presentation.ActivityViewModelService.CreateViewModel(ModelItem modelItem)
at UiPath.Studio.Plugin.Workflow.Presentation.ActivityViewModel.ConnectWithMetadata()
at UiPath.Studio.Plugin.Workflow.Presentation.ActivityViewModel.ConnectAsync(ModelItem modelItem)
at UiPath.Studio.Plugin.Workflow.Presentation.DefaultActivityDesigner.OnDataContextChanged(Object sender, DependencyPropertyChangedEventArgs e)
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146232828
Studio version : 2022.10.5
UiPath.webapi.activities : 1.21.1
Thank you!
We retested this and you will need to:
This should fix the issue.