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

Child cover open count starts at -1 and continues to decrease



Error message displays while resolving a Child case. The count in the error message decreases on resubmitting the screen.

Error Messages

The cover open count is incorrect; it is -1

Steps to Reproduce

  1. Create a hierarchal parent-child case structure.
  2. Deselect the 'Lock parent case when child case is locked' checkbox in the Case type settings.
  3. Resolve the child case.

Root Cause

A defect in Pegasystems’ code or rules.


Perform the following local-change:
  1. In a child case flow, the lock on the parent case is acquired through the obj-refresh. The lock of the parent case performs an obj-open-by-handle followed by an obj-save (as in the getWorkObjectLock activity). This is because in certain scenarios, the parent case is already locked, and if an obj-refresh-and-lock is performed, the Clipboard page is not updated.
  2. In the prConfig.xml, set <env name="database/maxlockattempts" value="1"/>

    The default value is 3. That is, the value represents the number of times the server attempted to lock a work object before displaying an error. 

    Any value higher than 1 causes the system to read the page from the database before checking if the object is lockable. This introduces a Timing window in which another requestor may have updated the page beyond what is read from the database. As a result, a stale page is delivered.
  3. Write a custom activity as below to set the pxCoveredCountOpen,

    In the Method Parameters,

    Set the PageName to any page of the code-pega-list. This stores the browse results.
    Set the ObjClass to a class to search to obtain child cases.

Published July 18, 2020 - 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