Support Article
RuleNotFoundException page property is referenced
SA-25348
Summary
When attempting to reference a property from a Data Transform, a Rule Not Found exception is thrown.
This issue is not reproduced if an activity is used in place of the Data Transform step which references the property.
Error Messages
[MSG][RuleNotFoundException][STACK][com.pega.pegarules.pub.generator.RuleNotFoundException: Failed to find a 'RULE-OBJ-WHEN' with the name 'MYWHENRULE' that applies to 'MYCO-FW-MYPROJ-Data-Product'. There were four rules with this name in the rulebase, but none matched this request. The 4 rules named 'MYWHENRULE' defined in the rulebase are: 4 unrelated to applies-to class 'MYCO-FW-MYPROJ-Data-Product', for example: 'MYCO-FW-MYPROJ-Work'.
Steps to Reproduce
Attempt to use the when rule from a Data Transform rule.
Root Cause
Tracer showed that that the step page class mismatched the applies-to class of the When rule. The step page class was MYCO-FW-MYPROJ-Data-Product while the When rule applies-to class was MYCO-FW-MYPROJ-Work.
Resolution
Either use a step page having the same class as the When-rule, or create a new When-rule whose applies-to class matches the class of the step page.
Published July 27, 2016 - 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.