Start process from cmd


#1

Hi all,

I’ve updated my UiPath to 2018.2.3. Previously I’d run from command line using: “path-to-folder\UiRobot.exe” \file “path-to-project\main.xaml”.

I’ve already found and adapted the following things on the forum:

  • As from 2018.2 the UiRobot.exe is no longer in the version-subfolder, but directly in: “c:\program files (x86)\uipath\studio”
  • As from 2018.2 I should use project.json, containing all dependencies
  • I should publish my proces in Studio first
  • I tried with /executor and without in my command

I’ve done all this but I keep getting the following error.

System.Xaml.XamlObjectWriterException: Cannot create unknown type ‘{http://schemas.uipath.com/workflow/activities}ReadRange’.
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.FuncFactory1.Evaluate() at System.Activities.DynamicActivity.OnInternalCacheMetadata(Boolean createEm ptyBindings) at System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindin gs, IList1& validationErrors)
at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childAct
ivity, ChildActivity& nextActivity, Stack1& activitiesRemaining, ActivityCallSt ack parentChain, IList1& validationErrors, ProcessActivityTreeOptions options,
ProcessActivityCallback callback)
at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity
currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions optio
ns, ProcessActivityCallback callback, IList1& validationErrors) at System.Activities.ActivityUtilities.CacheRootMetadata(Activity activity, L ocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList1& 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.b__0()

Can anyone help me?


#2

@ArneDeProft Delete your json file and run