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

Incorrect Cover open Count error with Pega 7.2.1



When attempting to submit the resolution of a child work object, an error message appears.

Error Messages

The cover open count is incorrect it is -1

Steps to Reproduce

  1. Create a parent work object and a child work object.
  2. Launch a flow, which creates a temporary object, in a modal window from the child work object.
  3. Cancel the modal window.
  4. Relaunch the same flow in a modal window from the child work object.
  5. Process and submit the modal flow.
  6. Attempt to resolve the child work object. Note that this will fail silently.
  7. Open the child work object's current assignment.
  8. Attempt to resolve the child work object again.

Root Cause

An issue in the custom application code or rules where the use of an incorrect cancel button resulted in pyTemporaryObject being persisted back to the main thread from the modal with a value of true.

This resulted in the child work object's resolution not being persisted to the database. However, the associated updates to the parent object were persisted to the database.

As the child work object was not progressed forward, subsequent attempts to resolve it would attempt to update the parent object's cover open count to a value less than zero.



Perform the following local-change: 

The "Launch Flow In Modal" action requires the use of a specific function, when the modal flow is canceled, in order to properly reset the necessary parameters that will prevent pyTemporaryObject from being set to true on the main thread.

To avoid the issue, configure the "Cancel" button as a standard "Button" control with an on click action to further run the following script: "pega.u.d.launchFlow.handleModalCancel".


Published January 5, 2017 - 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