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

Pega Mashup does not render the second time on Cosmos



On the Pega Platform 8.4.1 User portal (Cosmos), Pega Web Mashup does not load the second time. However, the Mashup loads on browser refresh. 


Not Applicable 

Steps to Reproduce

  1. Create two different Pega applications (for example, the first application is App1 with Case A and the second application is App2 with Case B).
  2. Embed App2 - Case B - pyStartCase Mashup in App1 - Case A - in a flow action section.
  3. Launch the App1 User portal.
  4. Create a case of Case type B. Verify the Mashup is loaded with Case B in the Case A flow action.
  5. Create a second case. The Mashup does not load. Refresh the browser to reload the Mashup.

Root Cause


An issue in the client application code or rules.
When loading the Mashup gadget multiple times on the same screen, the gadget with the same gadget name is not registered multiple times. Hence, the gadget does not load the second time. Therefore, the gadget must be removed from the memory, updated for new parameters if any, and reloaded manually. As a result, the gadget is now treated as new and the registration process is successful to load the gadget the second time.


Perform the following local-change:

Add the following script below the gadget DIV and invoke the loadMashup function as required.

function loadMashup(){

pega.web.api.doAction("PegaGadget", "load");

Published December 2, 2021

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