Windows Workflow and SharePoint Server 2007: An error has occurred in


SharePoint Workflow: An Error has occured

You will experience this error if you’ve added a Delay Activity to your Workflow and you have an object in memory that is unable to be serialized when the workflow executes the DelayFor.  The error isn’t really clear and nothing is written to the Event Log either when this error occurs.

image

If you have a class that you store information for your workflow ensure it is marked as [Serializable], if you have a property of your class that you don’t want/can’t serialize then mark it as [NonSerialized].

 

About wesmacdonald

Wes MacDonald is a Visual Studio ALM MVP, PSD, MCT and a Principal Consultant for LIKE 10 INC., a SharePoint Server, Visual Studio and Team Foundation Server Consulting Firm providing premium support and guidance services.

2 Responses to “Windows Workflow and SharePoint Server 2007: An error has occurred in”

  1. I had the same problem, even after I have marked my classes as [Serializable], the error is still there. Any help?

  2. It is quite possible you are trying to serialize an object that cannot be serialized, example if you try to persist an SPWeb or SPSite object this error can also happen.

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: