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

Repeat layout context issues with Refresh this section action

SA-82837

Summary

A repeating layout contains an OnClick event to refresh a section and run a data transform functionality defined on it. The section is embedded in the repeating layout which is a part of another class (referencing a data page or referencing a sub page, etc). When the user clicks the location in the section where the embedded section is, during the run time, the data transform runs in the context of the embedded section but not in the context of the repeating layout item. This causes a rule not found exception and blows up the thread.


Error Messages


Caused by: com.pega.pegarules.pub.generator.RuleNotFoundException: Failed to find a 'RULE-OBJ-MODEL' with the name '<name of the data transform>' that applies to '<class name>'. There were 27 rules with this name in the rulebase, but none matched this request. The 27 rules named '<name of the data transform>' defined in the rulebase are: 27 unrelated to applies-to class '<class name>'


Steps to Reproduce

  1. Drag a repeating layout on to a section and embed a section in the repeat layout
  2. Embed another section within the above embedded section defined by a data page or the Clipboard page
  3. Add an OnClick event to the repeat layout section to refresh the section and include a data transform within it
  4. Click the section defined in step 2 during the runt time. The system invokes the data transform from the section context defined in step 2. The system must invoke the data transform from the section context defined in step 1


Root Cause



This behavior is as per the Pega product design. Refresh this section always runs in the context of the section from where the event fires.

Resolution



Perform either of the following local-changes:
  • Use Refresh other section and specify the class from where the data transform must be invoked 
  • Use the Run data transform action separately outside the Refresh section action

 

 

Published 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