web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Workflows are broken after import.

(0) ShareShare
ReportReport
Posted on by 790

Dear all

I have exported a solution from Dyn365-sandbox and tried to import it into production (both are same version), import was done with warnings regarding all workflow related to CASE update/create operations.

in another words, the only broken workflows are the ones involving creating or update a CASE.

below is some of the errors i got:

Error: This workflow has errors and cannot be published. Please remove the errors and try again., Worklfow Id: fa56e196-1094-4d0e-b656-2760c7e1275a, ErrorMap Details: {ConditionBranchStep3: InvalidGuidReference ; CreateStep6: InvalidGuidReference ; ConditionStep2: InvalidGuidReference ; StageStep1: InvalidGuidReference ; WorkflowStep0: InvalidGuidReference}

Error: This workflow has errors and cannot be published. Please remove the errors and try again., Worklfow Id: 687c3784-5873-4e0a-9795-2b87c0271b88, ErrorMap Details: {ConditionBranchStep3: InvalidGuidReference ; ConditionStep2: InvalidGuidReference ; WorkflowStep0: InvalidGuidReference}

Error: This workflow has errors and cannot be published. Please remove the errors and try again., Worklfow Id: 9322a560-2fe5-46dc-a0b1-4671d1104b5b, ErrorMap Details: {ConditionBranchStep2: InvalidGuidReference ; CreateStep3: InvalidGuidReference ; ConditionStep1: InvalidGuidReference ; WorkflowStep0: InvalidGuidReference}

Error: This workflow has errors and cannot be published. Please remove the errors and try again., Worklfow Id: dc383196-b1d4-49a5-9f23-4c21be7e920e, ErrorMap Details: {ConditionBranchStep2: InvalidGuidReference ; ConditionStep1: InvalidGuidReference ; WorkflowStep0: InvalidGuidReference}

02685.4.png

*This post is locked for comments

I have the same question (0)
  • David Jennaway Profile Picture
    14,065 on at

    Most likely cause of the InvalidGuidReference error is if the workflow references specific records, and you don't have a corresponding record with the same ID (Guid) in the destination organisation. If you open up the steps that have errors, and click on each lookup field in turn, any that are missing will give you a 'Record does not exist' error.

    If this is the case, the ideal resolution is to have a mechanism to ensure such reference data exists and has the same Guid in each organisation. If that's not possible, or it's too late, then you can change the lookup values directly, but you'll have the same problem again if you deploy the workflows in the future

  • Mohan Prasad MAni Profile Picture
    235 on at

    1) Verify all the lookups and "Remove" them and add them manually again. This should remove the Red Cross sign (X) and when you correct all the lookups the workflow can be published. This is a workaround when you have less number of lookups used in the workflow

    Alternatively, The lookups that have been referred in the workflow should come from common source. We ran into this issue on a WF which had like 200+ lookups in it. We were able to resolve this by adding the lookup value imported using the same excel sheet. This resolved the issue

    Please mark the answer as Suggested if this resolves/helps your issue!

  • Ahmad Saud Profile Picture
    790 on at

    Thanks Mohan

    i have only one lookup field, but there are 13 dependencies on this lookup, most of these dependencies are another workflows.

    so removing it is very difficult and risky. there should be another safer way!

    on the other hand, and since i am new to dynamics, i keep wondering how such silly bugs are still exist in such great product from microsoft!!

    thanks,  

  • Ahmad Saud Profile Picture
    790 on at

    thanks David, the production is almost new with very few customizations.

    secondly, is this "mechanism" a manual thing or there is a way to automate it.

    thanks.

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    in this case, you can use crm data migration tool in sdk folder. copy the data from source to destination with same guid.

    community.dynamics.com/.../crm-data-migration-tool

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans