PegaStudioConfig.json for Pega.ProjectAnalyzer in 22.1.29

Hello Everyone,

I am trying to use Pega.ProjectAnalyzer.exe (22.1.29) with custom configurations set in PegaStudioConfig.json. I have changed a particular setting from Error To Warning in PegaStudioConfig.json.

When using the command Pega.ProjectAnalyzer.exe -p “c:\agent\AAA.pegaProject” -o “c:\agent\ProjectAnalysis.json” --ignoreWarning --ignoreInfo, it is still not getting the configs from %appdata%\PegaSystems\PegaStudioConfig.json. It is still taking the setting as Error instead of Warning and project analysis fails.

Could you let me know if there is any other way?

Regards,

Manojanand Nayagam

@ManojanandNayagam I tested on my machine (I am using 22.1.34 however) and it is working as expected. Are you seeing the same behavior when you run the analysis within Studio, or is it only failing when run from the command line?

@ManojanandNayagamThe only thing I can think of is that your command line is using a different user than the one you have open in Studio. Are you are using some application to run Studio or the command line elevated and not doing so on the other application? I tested with 22.1.29 and it does work as expected. It uses the StudioConfig in your %AppData% folder if present. If that file is not present, it uses the one in the installation directory.

@ThomasSasnett Great. You are correct. This command line is using a different user and I have kept the .json file in the correct user appdata folder and it worked. Thank you. ​​​​​​​

@ManojanandNayagamHere is a link to the documentation on this.

https://docs.pega.com/bundle/robotic-automation-221/page/robotic-automation/creating-automations/cicd-run-the-analyzer.html

@ThomasSasnett

It works if we change the option in studio and run project analysis from Studio. It is failing when run from the command line.