MS CRM 4.0 Workflow won’t publish after deleting an attribute.

Bitp Tags: ,

Mitch Milam and I were working on this problem together. I had removed a series of custom attributes from the Opportunity entity and we could no longer publish some of the workflows associated with the entity.We got the following message: An Error has occurred. (Very helpful message)

WindowsLiveWriterMSCRM41

After lots of #$%^& words, we finally found that all of the workflows with the problem were updating the Opportunity entity.

WindowsLiveWriterMSCRM42

Once we clicked the ‘Set Properties’ of the Update and then clicked on Save & Close of Update Opportunity Web Page Dialog, the problem went away.

WindowsLiveWriterMSCRM44

We think that it may be a bug in CRM 4.0, but that is the workaround! It looks like the attribute is referenced in the workflow code, even if you don’t make any changes to the deleted attribute. Opening and re-saving the Update web dialog seems to clear out the reference to the newly missing attribute.

HTH!

Steve (& Mitch)

Advertisements

About stephenvnoe

Dynamics CRM solution architect, consultant, trainer & project manager. I provide CRM design, services, mentoring & support to all manner of Dynamics CRM projects.
This entry was posted in Workarounds & fixes and tagged . Bookmark the permalink.

4 Responses to MS CRM 4.0 Workflow won’t publish after deleting an attribute.

  1. sonia says:

    is there any way
    if the workflows are unpublished based on their attachment with the Specific entities “Case” and “Booking” they have to be un attach with both entities in order to stop their executions ?

    Like

  2. sonia says:

    if the workflows are unpublished but are attached with Specific entities “Booking” .
    do they have to be un attach with entities in order to stop their executions ?
    any way to do this?

    Like

    • stephenvnoe says:

      Unpublishing a workflow will prevent it from starting any new instances. So even if the trigger in the workflow is satisfied, it means that the workflow can’t possibly start because it’s not published. On the other hand, workflows that are already running with continue to run even if the workflow is unpublished. To get these workflows to stop, you must cancel them manually. Hopefully that will help.

      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 )

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