SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to be able to recover long-running workflows, analyze the fault and maybe deploy a new package that handles the error gracefully. I can't do it if the workflow just up and dies on me.

share|improve this question
up vote 3 down vote accepted

There isn't anything that would do this automatically.

You could, however, create a separate column in the list that simply stores status information. Then, everytime your workflow kicks off, it starts by seeing if you have an existing status in that column and then skips to that step if it was part way through the workflow previously.

share|improve this answer
Thanks for your feedback. I feel that, for large workflows, this would significantly complicate the logic, plus we would have to store the workflow state somewhere, and recreate just the workflow tasks that haven't been completed by that point. I'd like to see if someone found a way to use the default Sharepoint mechanisms for this. – Mihai Sep 29 '11 at 12:59
It doesn't overly complicate things too much, you just have to include additional logic to check that column. If the additional tracking column = x (which would be your previous state) and tracking column equals current state, do x. – Eric Alexander Sep 30 '11 at 15:58
Just add an IF statement on each step before it starts. Easy enough. – John Chapman Oct 1 '11 at 20:07
That would double the amount of work needed to build a workflow :-( I still feel that there should be an easier way, but I'll try your suggestions and see what comes of it. – Mihai Oct 5 '11 at 20:14
Just an idea: In a fault handler for each activity (or group of activities) have a onWorkflowModified event and have a workflow modification form at hand - so when error occurs, the workflow waits when you initiate "continue" at your workflow modification. Its just an idea and not sure if that would work. – Janis Veinbergs Oct 7 '11 at 10:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.