on 03-01-2019 8:44 AM
Hi guys.
i need an advice with error'd out workflow.
One of the workitems in a workflow is stuck in "started" state and workflow is interrupted with error 'execution interrupted'. There were entries in SM58, SWPC but nothing in SWPR. SM58 error made it clear that the record it was trying to update was locked by another instance of the same workflow. Even if i try to continue that workitem processing in SWPC nothing happens. I executed the SM58 entry as well which cleared the entry from there but workitem is still stuck.
Is there a way i can continue the wokflow processing or manually completing the stuck workitem is the only way left in this case?
Regards.
thank you all for your comments.
Below is the cause and the action taken. Probably it will be a help for others.
The workitem was stuck in started state because 2 different workflow instances tried to update the same SAP record which was locked by another instance. and in this case it did not create an error in SWPR but created an entry in SWPC (system crash entries) and error reason was logged in SM58.
I executed the entry in SM58 and ONLY AFTER THIS i was able to re-process the workitem from SWPC transaction.
To address this permanently i handled these locking issues with temporary errors so the batch job SWWERRE will keep trying to reprocess the workitem until the lock is released or set counter is reached.
More details for temporary errors can be found here : https://blogs.sap.com/2013/09/07/design-error-free-workflow-using-temporary-exception/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
from the workfow log you can manually complete the workitem, click the workitem, then goto technical details (CTRL+SHIFT+F6) and then click change, now you'll see a lot of options on the left side where you can complete the workitem, or execute it, or change the container contents.
Kind regards, Rob Dielemans
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Is this a custom workflow or task. Might be problem in the design.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Call transaction SWPR, you should read first online documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deepak,
I am not sure why you need to delete entries from SM58. I guess you should be able to see the workitem ID in SWPR. If you are able to see the workitem ID in SWPR then you can restart.
Thanks
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.