Workflow does not resume when a delay activity is triggered

I ran into this issue with a client project.

The Visual Studio workflow contains a Delay activity. The first time the workflow was deployed to the environment, everything worked fine. The delay activity resumed the workflow at the appropriate time. We proceeded with UAT and made a few changes to the process and redeployed an update to the workflow. The delay activity would never resume after the update!

What I suspect was happening is documented in the Microsoft KB article cause #5.

I was able to recreate the problem in my environment and to resolve the issue I followed the following steps.

  1. Deactivated the workflow feature which removes the workflow from the site.
  2. Retracted the solution from SharePoint
  3. Gave the assembly a new version #. (Updated all of my references)
  4. Added and Deployed the updated solution to SharePoint
  5. Reactivated the workflow features and reattached them to the list

The workflow worked fine after completing this process!

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

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