Chaitan
(chaitan)
April 26, 2021, 8:09pm
1
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, IList
1& validationErrors)
at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childActivity, ChildActivity& nextActivity, Stack1& activitiesRemaining, ActivityCallStack parentChain, IList
1& 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, IList
1& 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
wasea
(Vasile)
April 26, 2021, 8:21pm
2
Hello @Chaitan ,
Maybe is related to:
Hi all,
I have developed a bot on Studio 2020.4.3
I copy the package .nupkg file to VM where UiPath Robot is installed (no Orchestrator) and usually this deploys the bot fine. However, this particular bot is failing to run due to the below error.
I believe this may be something to do with the packages that are installed on my local machine versus the packages on the VM. How do I update the packages on the VM so that they are aligned and this will run?
**An error appeared while executing OSHC…
Description
System.Xaml.XamlObjectWriterException: Cannot create unknown type
Troubleshooting steps
Explanation With Solution Approach
When the process is executed from the robot, It searches for the activity version in the following location:
Robot Location - C:\Users{user profile} \ .nuget\packages
Orchestrator feed - ~/NuGetPackages/Activities
MyGet feed - https://www.myget.org/F/workflow/
Reason of issue:
The issue is because packages are not downloaded in the Robot machine and …
Shortly, might be that your packages are not deployed correctly via orchestrator or some firewall issue.
I hope it gives an idea…
Vasile.
Jon_G
(Jon G)
May 26, 2021, 1:30am
3
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