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 have a sharepoint designer workflow with many Log to history activities to know where the workflow is.

I also have 2 custom activities with some complex logic and try catch code.

I would like to put some code in he catch blocks that writes to the same workflow history list the details of the exception, because when an exception is thrown, sharepoint only shows error occurred.

Or any other options?

share|improve this question
up vote 1 down vote accepted

Use SPWorkflow.CreateHistoryEvent

share|improve this answer

Or (also) you can write detailed exception to the ULS logs. How to write to logs you can find, for example here

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.