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 Wes MacDonald

Wes MacDonald is a DevOps Consultant for LIKE 10 INC., a DevOps consulting firm providing premium support, guidance and services for Azure, Microsoft 365 and Azure DevOps.

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?

    Like

  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.

    Like

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 )

Facebook photo

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

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: