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

Unnecessary alert message is thrown when closing a Work object



User opens a case in Review mode and closes it by clicking on the IE close ("X")  button in PRPC 6.1 SP2. At this point an alert asking for confirmation "to discard any changes in page" is shown which is unnecessary.

Error Messages

Steps to Reproduce

1. Open a harness in a new window on click of a button.
2. On one of the sections included in the harness, introduce a script to reload a section as follows :

        <script>pega.u.d.reloadSection(pega.u.d.getSectionByName('sectionName', ''),'',false,false,true,'-1',false);</script>
3. Close the harness without making any changes by clicking on the browser close "X" icon.

Root Cause

The User's custom script in the section, causes pega.u.d.gSectionReloaded variable to be set to true.  

The value of this variable is checked when closing the work object to check if it is corrupted. Due to this, page is considered as corrupted and the message is shown


Set pega.u.d.gdirtyOverride = false in a custom javascript on the harness to avoid the pop-up message.

Published January 31, 2016 - 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