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

Work object lock unreleased



You notice that locks on open work objects are not always released when users close the tab containing the item.

Error Messages


Steps to Reproduce

  1. Create a covered item
  2. Include a custom link that opens the item's cover item in the same tab
  3. Open the cover item from that custom link
  4. Close the tab

Root Cause

When the tab is closed it calls the activity Work-.Close. Close will return the locks for the item in pyWorkPage and pyWorkCover. When the child item was opened, locks were acquired on both the cover and covered items. When the contents of the tab were changed to contain just the cover, the lock was never returned for the covered item. At the time Work-.Close was called, the pyWorkPage contained the cover item and there was no pyWorkCover.


Use an explicit call to activity Work-.WorkUnlock to close the covered object when replacing it with its cover object.


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