Skip to Content
Author's profile photo Former Member

Restart Workflow After Error

During the execution of workflow it is possible to that workflow instance execution is interrupted due to an error. Usually this may be a programming error or any other unexpected situation. The errors can be easily detected in workflow log transaction (SWI1)

In the detail view of workflow log we see can see the error details.

/wp-content/uploads/2013/08/wferror_261712.png

Here we got an error in the execution of background task because of a syntax error in the method of a class.

This situation is not desired and workflow hangs out with error. It’s possible to fix programming error for future runs of the workflow but what about the current errornous ones? SAP provides transaction  SWPR in order to recover workflows that got error.

In SWPR it’s possible to search by workflow definition or workitemid or by date

/wp-content/uploads/2013/08/swpr_261728.png

When we run the report in the second screen we see the list of workflows that got error

/wp-content/uploads/2013/08/errrolist_261730.png

We can select the worklfow instance(s) that we want to restart. When we click on “Restart Workflow” workflow the workflows we selected are executed.

The good thing is that workflow is not started from the beginning. Only the step that got error is executed. This avoids the previous steps to be executed again and undesired result as a result of repeated execution of steps.

Assigned tags

      6 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Crisp document.

      Author's profile photo Gaurav Jayprakash Madav
      Gaurav Jayprakash Madav

      Very good document sir. Thanks for sharing.

      Author's profile photo Oleg Artyukhin
      Oleg Artyukhin

      Thanks!

      Author's profile photo ujjwal jain
      ujjwal jain

      Hi, this is very helpful document but you didnt tell us that how can we correct that error.  i mean what approach we should follow and how to deal with error one.

      Thanks

      Author's profile photo Former Member
      Former Member

      Excellent document.

      Author's profile photo MelissaM Dorn
      MelissaM Dorn

      Can you please tell me if it is possible to do an emergency restart of the computer? How often can you do this if your computer starts to run very slowly?