Hi all,
Until the recent update to 18.2.2 I had been using 18.1.3 and 18.1.4 on a series of projects. In order to initiate them I had been executing them by .bat file from the task scheduler with the following lines per an old how-to that I can no longer locate:
“C:\Program Files (x86)\app-18.1.3\UiRobot.exe” /file:“C:\Users\Admin\Documents\UiPath\Puppet_Master\Main.xaml”
With the update to 18.2.2 this method fails to initiate any applications despite my ability to run the process from Studio just fine.
I have tried a variety of commands to initiate the start, varying which executor is being used (“C:\Program Files (x86)\UiPath\app-18.2.2\UiPath.Executor.exe” vs. C:\Program Files (x86)\UiPath\UiPath.Executor.exe") with no real discernible difference. Below are several cmd attempts and associated returns. Note that none of these launch an application.
Per the UiPath 18.2 Release Notes I tried switching from ‘Main.xaml’ to ‘project.json’ to no avail
"C:\Program Files (x86)\UiPath\app-18.2.2\UiPath.Executor.exe" /file:"C:\Users\Admin
\Documents\UiPath\Puppet_Master\project.json"
(The above returns nothing and no applications launch)
"C:\Program Files (x86)\UiPath\UiPath.Executor.exe /file:"C:\Users\Admin\Documents\UiPath\Puppet_Master\project.json"
The application has failed to start because its side-by-side configuration is in
correct. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
"C:\Program Files (x86)\UiPath\app-18.2.2\UiRobot.exe" /file:"C:\Users\Admin\Docu
ments\UiPath\Puppet_Master\project.json"
Puppet_Master System.Xaml.XamlObjectWriterException: Cannot create unknown type
'{http://schemas.uipath.com/workflow/activities}SendMail'.
at System.Xaml.XamlObjectWriter.WriteStartObject(XamlType xamlType)
at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlW
riter, Boolean closeWriter)
at System.Activities.XamlIntegration.FuncFactory`1.Evaluate()
at System.Activities.DynamicActivity.OnInternalCacheMetadata(Boolean createEm
ptyBindings)
at System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindin
gs, IList`1& validationErrors)
at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childAct
ivity, ChildActivity& nextActivity, Stack`1& activitiesRemaining, ActivityCallSt
ack parentChain, IList`1& validationErrors, ProcessActivityTreeOptions options,
ProcessActivityCallback callback)
at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity
currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions optio
ns, ProcessActivityCallback callback, IList`1& validationErrors)
at System.Activities.ActivityUtilities.CacheRootMetadata(Activity activity, L
ocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options,
ProcessActivityCallback callback, IList`1& validationErrors)
at System.Activities.Hosting.WorkflowInstance.ValidateWorkflow(WorkflowInstan
ceExtensionManager extensionManager)
at System.Activities.Hosting.WorkflowInstance.RegisterExtensionManager(Workfl
owInstanceExtensionManager extensionManager)
at System.Activities.WorkflowApplication.EnsureInitialized()
at System.Activities.WorkflowApplication.Enqueue(InstanceOperation operation,
Boolean push)
at System.Activities.WorkflowApplication.SimpleOperationAsyncResult.Run(TimeS
pan timeout)
at System.Activities.WorkflowApplication.BeginRun(AsyncCallback callback, Obj
ect state)
at UiPath.Executor.RobotRunner.<>c__DisplayClass54_0.<OnInvokeJob>b__0()
"C:\Program Files (x86)\UiPath\app-18.2.2\UiRobot.exe" /file:"C:\Users\Admin\Docu
ments\UiPath\Puppet_Master\Main.xaml"
Puppet_Master System.Xaml.XamlObjectWriterException: Cannot create unknown type
'{http://schemas.uipath.com/workflow/activities}SendMail'.
at System.Xaml.XamlObjectWriter.WriteStartObject(XamlType xamlType)
at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlW
riter, Boolean closeWriter)
at System.Activities.XamlIntegration.FuncFactory`1.Evaluate()
at System.Activities.DynamicActivity.OnInternalCacheMetadata(Boolean createEm
ptyBindings)
at System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindin
gs, IList`1& validationErrors)
at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childAct
ivity, ChildActivity& nextActivity, Stack`1& activitiesRemaining, ActivityCallSt
ack parentChain, IList`1& validationErrors, ProcessActivityTreeOptions options,
ProcessActivityCallback callback)
at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity
currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions optio
ns, ProcessActivityCallback callback, IList`1& validationErrors)
at System.Activities.ActivityUtilities.CacheRootMetadata(Activity activity, L
ocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options,
ProcessActivityCallback callback, IList`1& validationErrors)
at System.Activities.Hosting.WorkflowInstance.ValidateWorkflow(WorkflowInstan
ceExtensionManager extensionManager)
at System.Activities.Hosting.WorkflowInstance.RegisterExtensionManager(Workfl
owInstanceExtensionManager extensionManager)
at System.Activities.WorkflowApplication.EnsureInitialized()
at System.Activities.WorkflowApplication.Enqueue(InstanceOperation operation,
Boolean push)
at System.Activities.WorkflowApplication.SimpleOperationAsyncResult.Run(TimeS
pan timeout)
at System.Activities.WorkflowApplication.BeginRun(AsyncCallback callback, Obj
ect state)
at UiPath.Executor.RobotRunner.<>c__DisplayClass54_0.<OnInvokeJob>b__0()
So far I’m at a loss of how to successfully execute one of these bots from cmd with the newest update as the release notes indicate should still be working. I’m sure that I’m just missing something obvious and would really appreciate any insight onto the issue.
Thanks!