Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer 1

I'm not sure you can do that.

Why not add a better error handling?

http://msdn.microsoft.com/en-us/magazine/dd419656.aspx

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
add comment

Your Answer

 
discard

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.