Running the Bot from Orchestrator , Throwing below error

Cannot create unknown type ‘{http://schemas.uipath.com/workflow/activities}ShouldStop’.

at System.Xaml.XamlObjectWriter.WriteStartObject(XamlType xamlType)
at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
at System.Activities.XamlIntegration.FuncFactory1.Evaluate() at System.Activities.DynamicActivity.OnInternalCacheMetadata(Boolean createEmptyBindings) at System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindings, IList1& validationErrors)
at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childActivity, ChildActivity& nextActivity, Stack1& activitiesRemaining, ActivityCallStack parentChain, IList1& validationErrors, ProcessActivityTreeOptions options, ProcessActivityCallback callback)
at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList1& validationErrors) at System.Activities.ActivityUtilities.CacheRootMetadata(Activity activity, LocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList1& validationErrors)
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__89.MoveNext()

Working fine from studio, Failing when i ran from Orchestartor

Hello @Chaitan ,

Maybe is related to:

Shortly, might be that your packages are not deployed correctly via orchestrator or some firewall issue.

I hope it gives an idea…

Vasile.

Yes the solution to my issue which was similar, was to copy the entire folder of C:\Users\ %user% \ .nuget\packages
from the dev machine.

Then paste this folder onto the VM where my bot was stored running on UiRobot, at the same directory as above. So make sure that you copy that folder onto the host machine where the bot is deployed.

I assume because I was using activities on Studio which were newer and the machine with Robot didn’t have those up to date packages installed so the activity was not compatible until I copied the packages folder across. I have done this a couple of times now whenever I install new activities and get this error when deploying my bot, so I copy the packages folder across to fix it, so I learnt from this :slight_smile: