RuleNotFoundException occurs when submitting a child case
RuleNotFoundException occurs when submitting a child case.
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.
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.
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.