Error when running workflow

"22.4.1+Branch.master.Sha.ae3dd5d96272ef2a8c7136934fe08624b9ad1069

Exception has been thrown by the target of an invocation.

RemoteException wrapping System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> RemoteException wrapping System.TypeLoadException: Could not load type ‘Namespace_3a2a.Main_Expressions’ from assembly ‘PDF_Signature_Check_Expressions_Main, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’.
at PDF_Signature_Check.Main…ctor()
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
— End of inner exception stack trace —
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object args, CultureInfo culture)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object args, CultureInfo culture, Object activationAttributes)
at System.Activator.CreateInstanceInternal(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object args, CultureInfo culture, Object activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(String assemblyName, String typeName)
at UiPath.MapFilePathToActivity_93063903935340c8aab522ec692cb083.MapFilePathToActivity(String relativePath)
at UiPath.Executor.WorkflowLoader.GetWorkflowFromXamlPath(String assemblyName, String xamlPath)
at UiPath.Executor.WorkflowLoader.LoadWorkflow(String xamlPath, String compiledWorkflowAssemblyName)
at UiPath.Executor.RobotRunner.InitWorkflowApplication()
at UiPath.Executor.RobotRunner.ExecuteJob()"

When I run a workflow, it works fine, but when a team member runs the same workflow (from their local desktop), they face the above error

Any guidance on what this is and how to solve it? Thank you so much

Hi @Anushka_Purohit

It seems like dependency issue.

Say them to update all the dependencies in the Manage Packages to the latest version and keep the runtime rule as Lowest applicable version.

Hope it helps!!

@Anushka_Purohit,

What’s the source of the error like which activity is throwing this error? If it’s assign activity, then check if the value being assigned to the variable isn’t null or something.

Thanks,
Ashok :slight_smile:

Thing is the other parts of the code are not in the latest version so there are specific versions that I’ve asked them to use… any other solutions?

Hiii sorry I can’t seem to attach an img here, sent it over on LI

You are facing this error in the start of the execution or throwing eror by any activity… @Anushka_Purohit

@Anushka_Purohit,

Ok let me check

start of the execution - the workflow doesn’t even start to get executed but this error comes up first

@Anushka_Purohit,

May be close the project, try deleting the project.json and open the project. It will rebuild it. It might be issue of project.json.

Thanks,
Ashok :slight_smile:

1 Like

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