Question

How to run a specified environment instance from deployed package in local desktop using Pega Runtime 22.1
I would like to ask a question with reference to the article How to run a deployed package in local desktop using Pega Runtime 22.1 | Support Center.
I am getting attached error when tried the below from cmd -
Pega.RobotRuntime.exe --package "C:\Where Is Your Package Folder\Version or Whatever\PackageName.pega" --environment {Environment override name}
@ThomasSasnett any idea on this ?
-
Like (0)
-

@SaiS16692178If you have replaced the path portion with the correct path to your package and you have added the name of your environment override, then it would be something I would need to see.
- Make sure you deploy your package from studio to create the deployment package.
- Copy the full path to that file and use it in place of C:\Where Is Your Package Folder\Version or Whatever\PackageName.pega in the example above.
- Make sure that the name of your Environment Override is passed exactly as it is named in your project (likely something like PROD, DEV, UAT, QA, etc.).

@ThomasSasnett I have deployed the package from Robot Studio and gave the path as below:
"C:\Program Files (x86)\Pegasystems\Pega Robot Runtime v22\Pega.RobotRuntime.exe" --p "D:\Users\NA-S-pega.robotics\Desktop\Deployment\Deploy_RPA.pega" --e "Dev"
Please do let me know if I missed something.

@SaiS16692178 I think you have one too many dashes. Use --Package or -p (--Environment or -e).

@ThomasSasnett I have tried as suggested still facing the same issue.

@SaiS16692178 Would you please attach your %ProgramData%\Pegasystems\CommonConfig.xml and your %AppData%\Pegasystems\PegaRuntimeConfig.xml? Perhaps you are missing something there. It must be either that or you are still using the wrong command (assuming that D:\Users\NA-S-pega.robotics\Desktop\Deployment\Deploy_RPA.pega file exists and is accessible from the user and machine you are running from).

@ThomasSasnett Thanks for the reply.
I have attached the files requested and I am using the below command
"C:\Program Files (x86)\Pegasystems\Pega Robot Runtime v22\Pega.RobotRuntime.exe" -p "D:\Users\NA-S-pega.robotics\Desktop\Deployment\Deploy_RPA.pega" -e "Dev"
There is no problem accessing the file path where the package is available in the local, only issue is when we include the environment path along with the above command.

@SaiS16692178 Are you certain that the user running Runtime has access to that path?

@ThomasSasnett yes, the runtime is able to pick the package from the path and execute. The only concern is when we try to initiate runtime along with the environment path from cmd/shortcut.

@SaiS16692178 This looks like a permission issue. I would probably look there as executing from the shortcut and from a command line should be effectively the same except for which user is running the process. If you do want some hands-on assistance, please open a support request as they can look at your specific machine with you.

@ThomasSasnett It is not issue with command line, both from shortcut or cmd when we include environment path it is giving error.