Support Article
Work object lock unreleased
SA-5238
Summary
You notice that locks on open work objects are not always released when users close the tab containing the item.
Error Messages
N/A
Steps to Reproduce
- Create a covered item
- Include a custom link that opens the item's cover item in the same tab
- Open the cover item from that custom link
- 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.
Resolution
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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.