Error passing input params via CMD. "Error converting value to type.."

Hello.

I have a ‘Master Sequence’ that I want to pass a job ID and xaml file to. I basically built my own custom Orchestrator and I kick off jobs via CMD line:

C:\Path\> UiRobot -f "C:\Users\halbertc\Documents\UiPath\MasterSequence\project.json" -i '{"JobID":"75","WorkFlowToCall":"C:\\path\\to\\folder\\UiPath\\Test_1"}' -rdp

It tells me:

Error converting value “{“JobID”:“75”,“WorkFlowToCall”:“C:\path\to\folder\UiPath\Test_1”}” to type ‘System.Collections.Generic.Dictionary`2[System.String,System.Object]’. Path ‘’, line 1, position 82.

I’ve tried everything I can think of. Added Json to the project, even removed the path and just did the filename, changed the order:

Error converting value “{“WorkFlowToCall”:“Test_01.xaml”,“JobID”:“75”}” to type ‘System.Collections.Generic.Dictionary`2[System.String,System.Object]’. Path ‘’, line 1, position 48.

Any other ideas?
Thanks!

Crazy. I figured out it doesn’t like me passing a path as a value. When i hard coded the path and just passed the file name it worked.

Anyone know the proper way to send the fullpath?

Thanks,

Fine
Hope this thread would help you resolve this

Cheers @flashsplat

Nice! Thanks Robot Master!

I will try to implement this tomorrow and let you know how it goes.

Glad I posted my question!

Sure cheers @flashsplat

So, it looks like this is no longer supported:

Note: The Robot API is no longer supported. We recommend using the Orchestrator API.

The service and serviceModel elements were not in the config file. I tried placing them myself but could not get the API to respond to me.

And we don’t have Orchestrator so I can’t use that API :frowning:. Maybe what I can do is pass the path and replace the “\” with something else so it doesn’t try to convert it. I’ll let you know how that goes :stuck_out_tongue:

Thank you for the responce.

Chyes! I figured it out :smiley:!

I needed to double escape my path:

C:\\\path\\\to\\\folder\\\UiPath\\\Test_1\\\Test_01.xaml

I can now pass that and engage the robot! Woohoo!

UiRobot -f “C:\path\to\folder\UiPath\MasterSequence\project.json” -i “{"JobID":"75","WorkFlowToCall":"C:\\\path\\\to\\\folder\\\UiPath\\\Test_1\\\Test_01.xaml"}”