Wednesday, September 26, 2018

Workflow has errors and cannot be published in Dynamic 365 CRM


The selected workflow has errors and cannot be published. Please open the workflow, remove the errors and try again.

Just another day, I deployed my solution from development to test environment and was doing just sanity checking if everything is all OK.

To my surprise, I saw few workflows were in Draft instead of being in Active state. There was a Red Cross icon at the very first step of the workflow and it did not help with nothing.

No Specific row was highlighted to at which might be the culprit and causing an error.




Bug Identified:
  • The lookup value in workflow conditions, were missing in the source environment.
  • The lookup value can also be a part of email template Sender or Recipient (To or CC) which might not exists.
  • Especially when we have Email Queues created for specific environment and get missed every time when we promote workflow.



No comments: