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

On a large SharePoint Farm, we have several worflows designed.

Some of them are Visual Studio Workflow.

When something goes wrong in the workflow only few evidence are visible (some in the uls logs, and sometimes in the workflow history).

I would like to be able to detail what data is persisted in the workflow, in order to diagnose what's wrong.

Is there any way to dump the workflow persisted state?

I've tried using Powershell :

$web = Get-SPWeb http://my_sp_web
$list = $web.Lists["MyList"]
$item = $list.Items.GetItemById(42)
$wf = $item.Workflows[0]

But unfortunately, my $wf variable does contains anything useful.

share|improve this question

I'm not sure you can do that.

Why not add a better error handling?

Best regards,

share|improve this answer
You are right. This would be the better solution. Unfortunately it's hardly applicable immediately. There is a very large code base, and each modification should be budgetised, developed, tested, etc. This won't solve my immediate issue. – Steve B Oct 8 '12 at 17:45

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.