“Cannot update a published workflow definition” exception in Dynamics 365


We would get this exception if we try updating an Activated Workflow using Update Request.

So basically, if we need to update the activated\published workflow i.e. Activate or Deactivate it or change the Owner of the workflow, we would need to use the SetState and Assign Request. If we try doing it using the UpdateRequest we will the above error message.

Perform specialized operations using Update

Also, we noticed that if we try changing the state from Deactivated to Activated through Update Request, it will not change the State to Activated and it will not throw an exception as well.

However, if we use Update to Change the Owner for the deactivated workflow, it works fine.

Hope it helps..

Advertisements

Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

One thought on ““Cannot update a published workflow definition” exception in Dynamics 365”

Please share your thoughts

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.