Deprecation of the Workflow in Workflow Manager

Damir Dobric Posts

Next talks:



Follow me on Twitter: #ddobric




When Working with Share Point Workflows (Workflow Manager) you might notice following error in the event log.

The associated workflow has been deprecated.

In the normal system state this error should never happen. However the Workflow Manager Client API allows you to write peace of code which does not have to always
be aligned to expected system behavior. IN other words you can damage lot of things if you are not careful.

For example, following command would simply delete all workflows from the system:


The next one would delete specific workflow:

client.Workflows.Delete(“Workflow Name”);

Another way to delete the workflow is to remove manually scope from database.
This article describes why should you do this:

The error above is not dangerous for the system. It is only dangerous for the “associated workflow”. It basically means that Service Bus has pending messages in the Workflow Subscription (this is how Workflow Manage dispatch messages internally), but there is no workflow (it is deleted) which should consume them.In this case this is good, because keeping of messages in subscription queues would continually increase amount of data in database if no subscribe receives them.

Posted Mar 13 2014, 08:00 AM by Damir Dobric is a .Net Community Blog powered by daenet GmbH.