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

RuleNotFoundException occurs when submitting a child case

SA-81824

Summary



RuleNotFoundException occurs when submitting a child case.


Error Messages



Caused by: com.pega.pegarules.pub.generator.RuleNotFoundException: Failed to find a 'RULE-OBJ-WHEN' with the name 'PYENABLETOPCASELINKS' that applies to 'Rule-My-Rule'. There were rules 1 with this name in rule the base, but none match this request. The 1 rules named 'PYENABLETOPCASELINKS' defined in the rulebase are:
1 unrelated to applies-to class 'Rule-My-Rule', for example: 'Work-'.


Steps to Reproduce



Submit a child case.


Root Cause



An issue in the custom application code or rules.

The work object data for the Cover object and the pzInsKey are stored on a data page with the pxObjClass which is not the work object's class in a scenario where the pyWorkCover is already on the Clipboard with that data.

To set up a context in which pyEnableTopCaseLinks is executed, a findPageByHandle call is performed. The system expects the work object's Handle information be present on only one page with the pxObjClass of the work object's class. However, it found the data page and set the incorrect context based on the data page's pxObjClass.


Resolution



Perform the following local-change:

Adjust the custom data page such that the work object data and pzInsKey of the Cover object are not on the page that has the pxObjClass of a different type of object.

Additionally, avoid having multiple pages with copies of the same work object on them on the Clipboard at a given time.

Published September 6, 2019 - 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