Using UIPath Robot from the command line since v2018.2

Hello,

I try to start a workflow from the command line and the execution failed with the following exception (I’m using v2018.4) :

RobotHelperAgentTester: An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.Exception: Access to the path 'C:\Users\<user>\.nuget\packages\RobotHelperAgentTester\1.0.0\lib\net45\Main.xaml' is denied.

This error is due to a change introduce in the v2018.2, I found the following information in the documentation :
https://robot.uipath.com/v2018.2/docs/about-automation-projects-on-the-robot

But… What’s the purpose of this restriction ?
Is the launch of a workflow via the command line forbidden now ?
No way to do that without Orchestrator ?

If I set the Read right on the .xaml file the execution is well done (at least for my test script, I did not test with a more complex one at this moment).

Thanks !

Regards,
Boris

Hi @Trracer

I’m not sure I understand. The documentation is quite clear:
image

It is doable.

Are you sure the robot file is not blocked by some protection software?

Hello @loginerror,

Yes it’s still possible but I’m facing a security dilemma :wink:

From the version 2018.2, the following rule is applied :

security

Thus it seems to block the execution of a package from the command line (and only from the command line). If I set the “Read” permission on the .xaml file for the current user : no problem, the package is executed fine. But from a security point of view it’s not the best solution I guess…