Publishing Projects from the Command Line using ssh: Object reference not set to an instance of an object

I was trying publish project to Orchestrator using command line.
Command line running locally on cmd works well.
However, when I call exactly same command from my computer ssh to the server to publish project to Orchestrator then received this error message: Publish failed: Object reference not set to an instance of an object.

command code I was using:

"C:/Program Files/UiPath/Studio/UiPath.Studio.CommandLine.exe" publish -p "<path to project folder>/project.json" -g OrchestratorTenant -v "1.0.38"
1 Like

Hi there,

Can you try this instead and see if it works?

cd β€œ{UiPathRootFolder}” publish -p β€œ/project.json” -g OrchestratorTenant -v β€œ1.0.38”

the {UiPathRootFolder} should be this location -

1 Like

Thanks @kaiboon.lim. I have the per-machine installations, so the default path is C:\Program Files\UiPath\Studio. I also tried cd to the root folder, but still having the above issue.

1 Like

hi @lwang
Check the SSH/users has relevant access to your project folder and the server
And Verify that the path to the project folder and the project.json file is correct and accessible from the server. Ensure that the file exists and is not corrupted