Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

RuleNotFound on exporting Product rule with command line utility

SA-55952

Summary



RuleNotFoundException occurs when exporting a Product Rule through the command line utility.


Error Messages



[java] [ your_host] [ STANDARD] [ ] ( internal.mgmt.Executable) ERROR - RuleNotFoundException
[java] com.pega.pegarules.pub.generator.RuleNotFoundException: Failed to find a 'RULE-OBJ-WHEN' with the name 'YOURWHENRULE' that applies to 'YOURCLASS'.



Steps to Reproduce

  1. Create a Product Rule
  2. Include Class instances in the Product rule and mention the class name
  3. Include a When condition
  4. Export the rule using the command line utility 


Root Cause



A defect or configuration issue in the operating environment. The specified prpcUtils.properties did not include the Pega username and password for rule resolution to find the Rule-Obj-When rule.


Resolution

Perform the following local-change:

Specify the pega.user.username and pega.user.password properties for an operator with the correct access group to determine the runtime context.


​​​​​​​

Published July 23, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us