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've built a state machine workflow with several states.

I have not incorporated any form of error control. I was reading about error control within state machine workflows and have come to the conclusion that there is no global form of error control but only per activity. Hence every activity will need its own form of error control. This would take me a lot of time to do and am wondering if its worth the effort. ?

What I think I require is to be informed if a workflow fails, the workflow has a status column, can this be used to email a admin of error ?

What are my choices on this ? Do developers always add error control in state machine workflows ?

share|improve this question

If you only want information about failing workflows without doing any compensation for already occured actions then it's propbably easiest to implement a SPWorkflowEventReceiver listening for SPWorkflowEventReceiver.WorkflowCompleted and then check SPWorkflowEventProperties.CompletionType.

This requires SP2010 and will not work if you want to do any real error handling.

share|improve this answer

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.