Support Article
CloseDefaults called multiple times
SA-3679
Summary
When using "Get Most Urgent" from the Work User Portal, you observe the PreClose activity is not called but in some cases CloseDefaults is called multiple times.
Error Messages
N/A
Steps to Reproduce
- Turn on tracer
- Ask another user open the most urgent work item associated to your profile
- Click on "Get Most Urgent"
- Observe CloseDefaults called multiple times.
Root Cause
During the course of opening the next most urgent work item, the system will load onto the clipboard the contents of the most urgent item then check if its lock is available. If the lock is not available the system will call closedefaults on said item. So depending on the lock availability of workitems CloseDefaults can be called multiple times.
Resolution
This issue is resolved through the following local change:
Add a when condition to the CloseDefaults activity to guard around auditing on workitems on which the lock is not held.
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.