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
- Create a Product Rule
- Include Class instances in the Product rule and mention the class name
- Include a When condition
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.