Support Article
Got 90 minutes of "Unable to unlock this work object"
SA-18762
Summary
While attempting to create a new work object, all users experienced the following error for 90 minutes.
Error Messages
Unable to unlock this work object
Steps to Reproduce
Try to create a new work object while referring to another object in the workPage parameter for creeateWorkPage.
Root Cause
creeateWorkPage has an optional parameter called workPage. In an effort to clean up the contents of the workPage, creeateWorkPage calls Close which calls UnlockWork. If the work object on that page is locked by another requestor, the call to createWorkPage fails with the above page message. 90 minutes later when the lock timeout occurs, the other requestor's lock is released, and the error stops occurring. In this case, the custom code always passed the same work object in for the workPage parameter and it happened to be locked.
Resolution
When calling createWorkPage, either make sure if no one else has the object locked, or clear the workPage before calling createWorkPage.
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.