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

Defer loading activity is not getting called in dynamic layouts

SA-28614

Summary



Unable to call specified defer loading activity in dynamic layouts. Additionally, the UI elements inside the layout do not display.


Error Messages



Not Applicable


Steps to Reproduce

  1. Create an HTML fragment in A-B-C (example) class
  2. Try to refer sectionA, which is in D-E-F (example) class, here
  3. Include dynamic layout in sectionA. On dynamic layout, configure defer load and include an activity which is in X-Y-Z (example) class.
  4. When defer load is invoked at runtime, an error appears which can be found in Tracer.


Root Cause



When trying to defer load the activity, RefreshSection is called.  This is unable to render the section as it considers the section to be in A-B-C class, which is failing with "Unable to render section" error as the context switches.

Resolution



Perform the below local-change:
  • Include the section in the HTML fragment class
  • Create a section in the HTML fragment class and perform sectionInclude with the required section from other class.
Suggest Edit

Published October 13, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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