Support Article

Error during new rule/import screen error

SA-28292

Summary



User can't import rules into an environment.

Error Messages



com.pega.pegarules.pub.generator.RuleNotFoundException: Failed to find a 'RULE-OBJ-WHEN' with the name 'YYYY' that applies to 'Work-ProjectManagement-New'. There were 3 rules with this name in the rulebase, but none matched this reque
st. The 3 rules named 'YYYY' defined in the rulebase are:
3 unrelated to applies-to class 'Work-ProjectManagement-New', for example: 'XXXX-FW-XXXXX-'.

Steps to Reproduce



Import rules in the system.

Root Cause



A software use or operation error. The “NewDefaults” activity (applying to class Assign-) has been customized to rely on a “YYYY” rule which applies to the class of your work items.
This works fine for your work items.
Unfortunately, when you do an import, PRPC also uses work item but from a different class (“PegaAccel-Management-Import”).
So the customr's “When” rule can’t be found as it applies only to the class of your work items.
The same will applies when you will run other action such as running wizard.

Resolution



Make custom activity  “NewDefaults”  more resilient.
For instance a precondition could be added to avoid any custom steps if the current work item class is not the one of applications (which seems to be XXX-FW-XXXX).

Published September 22, 2016 - Updated September 29, 2016

Have a question? Get answers now.

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