Interesting. Just to be sure, I’ve tested it myself on 2019.5 and it worked without any issue. Could you say which version of Studio and Robot are you using?
For reference, this is the exact command I’ve used that worked: C:\Users\Maciej\AppData\Local\UiPath\app-19.5.0>UiRobot.exe -pack "C:\Users\Maciej\Desktop\ProjectName\project.json" -o "C:\Users\Maciej\Documents\UiPath\Packages"
I’ve also run it from the CMD as an Admin, so please also try that.
Thank you guys for your suggestions. I must admit that I had not created the packages folder before running the command as I was expecting the folder to get created automatically. But other than this I had done everything you guys have suggested here but nothing worked.
On further debugging, I realized that today I have a new version 19.5.0-beta0060 and when I ran the same command using this version of UiRobot.exe, the package got created successfully irrespective of it being Powershell or CMD, admin or non-admin.
When I logged this issue, the version I had was app-19.5.0-beta0024 and using UiRobot.exe in this version is still giving the same error.
Really appreciate quick responses from both of you on this issue. You guys Rock!!!
Hi @loginerror, the command line documentation doesn’t mention a way to pack “Tests” in order to publish them in orchestrator.
We can pack them from Studio and the only difference observed inside the nupgk is in project.json :
outputType" changes from “Process” to “Tests”.
the object “arguments” is included
Changing outputType from “Process” to “Tests” produces an error : “opening project.json is not supported”.