RuleNotFoundException occurs when pxRetrieveReportData fails
The activity invoking pxRetrieveReportData fails sporadically with a RuleNotFoundException.
com.pega.pegarules.pub.generator.RuleNotFoundException: Failed to find a 'RULE-OBJ-ACTIVITY' with the name 'PXRETRIEVEREPORTDATA' that applies to 'YourORG-FW-CaseFW-Work-Cover-'. There were 7 rules with this name in the rulebase, but none matched this request. The 7 rules named 'PXRETRIEVEREPORTDATA' defined in the rulebase are: 7 unrelated to applies-to class 'YourORG-FW-CaseFW-Work-Cover-', for example: 'Rule-Obj-Report-Definition'.
Steps to Reproduce
- Open a case
- Review the nested cases on the case content section
Root CauseThe activity step page was not present in memory at the runtime.
ResolutionPerform the following local-change:
Add the Page-New method to create the page before the step to make sure that the page is present in memory at runtime. Therefore, the step does not lose it’s context.
Published December 10, 2018 — Updated January 11, 2019