cancel
Showing results for 
Search instead for 
Did you mean: 

How to continue workflow processing after "Execution interrupted" error ?

former_member567509
Participant
0 Kudos

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.

former_member184495
Active Contributor
0 Kudos

Hi,

SM58 entries need to be processed, I guess there is a report which can be run in backend to process them. So, 2 things check with BASIS, one on report which can process error'ed SM58 entires and second such issues occur due to authorization issues too, so check which user is processing that particular thing.

Aditya V

Accepted Solutions (1)

Accepted Solutions (1)

former_member567509
Participant
0 Kudos

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/

Answers (4)

Answers (4)

former_member186746
Active Contributor

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

anjan_paul
Active Contributor
0 Kudos

Hi,

Is this a custom workflow or task. Might be problem in the design.

Thanks.

raymond_giuseppi
Active Contributor
0 Kudos

Call transaction SWPR, you should read first online documentation.

bpawanchand
Active Contributor
0 Kudos

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