RealActivity is a specialized healthcare services and solution advisory firm.

Error Handling in SharePoint Workflow’s Created with Visual Studio

I am working with one of the  largest Insurance companies who will be processing thousands of workflow’s to approve reports stored in report libraries.

Earlier we created a Visual Studio workflow which reads metadata from the report libraries to determine where to publish reports once submitted and approved.

The focus now is on error handling and logging.

One key point to note is that using the workflow designer in Visual Studio you can enable fault handling.

Read this MSDN article to learn about fault handling.

David Mann’s post adds much value to the MSDN information.

In addition the are other links I found useful during the process. In particular I liked Robin’s post below regarding writing to the event logs.

http://msdn.microsoft.com/en-us/library/aa543980.aspx

http://glorix.blogspot.com/2007/03/spd-workflow-activity-creating-document.html

http://rdacollab.blogspot.com/2008/07/logging-sharepoint-workflow-errors-in.html

Another option is to write to the SharePoint logs under the infamous “12 hive” using the unified logging service

I’ll post an update with the pros and cons of each approach at a later date.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: