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

Optimistic locking not working for child cases



Developers have setup a parent/child work object relationship. As per business requirement multiple users can access the same child work object. To achieve this functionality we set the Optimistic locking in the child work object (modified pyDefault case type advance tab as shown below). However, on the case designer it still shows as default locking. When the same child work object is accessed by different users or same users in different requestor sessions (like in different browsers or using different machines) a lock error is observed.

Error Messages

"The case is already locked...."

Steps to Reproduce

Not Applicable

Root Cause

A software use or operation error: Child cases always take their locking schema from their parent.


Child cases always take their locking scheme from their parent.  As the locking schema for the parent case was not changed from the default, the child cases were also using the default locking schema.  This is explained on the Locking section of the Advanced tab of the Case Type rule: "Note:  This locking schema will be used when the case is instantiated as top case.  If instantiated under a parent case, it will inherit the parent's locking schema."


Published February 27, 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