Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

SyncError Dependency Issue

Posted on by 15

Since we installed the December 2016 update (8.2.0000.0749) in our development and test environment we are having issues. We are preparing an upgrade from CRM4 to CRM 365. Issues arise when the organization database has been imported to CRM 365. First a managed solution was applied to change all customization to managed. 

After importing a new solution version it is not possible to apply the upgrade anymore (it was before the December update).The new solution version would delete custom entities from the system that have been in the organization prior to the upgrade. (initially all cutomizations were unmanaged. We applied a managed solution to change all customization to managed. We now want to install and apply a solution upgrade that will remove redundant entities from the system.) When we apply the upgrade we get the following error:

apply_2D00_upgrade_2D00_error.png

The list of details displayed when clicking on Details is empty.

apply_2D00_upgrade_2D00_dependency_2D00_list.png

A very similar issue, which is assumed to have the same cause

Technically the same issue arises in a development organization that is upgraded to CRM 365 after applying the December 2016 upgrade, i.e. by importing the organization's CRM 2015 database into a new organization in dynamics CRM 365 using the deployment manager.  Deleting one of the custom entities after the upgrade fails. Error message:

delete_2D00_entity_2D00_error.png

In this case error details are not empty:

delete_2D00_entity_2D00_dependency_2D00_list.png

This is a CRM issue, since the relationship to the Sync Error entity should not be blocking the deletion of a custom entity. It is a relationship that is implicitly added to any custom entity.

Impact

If I only were removing a single entity at one point of the migration process, it would be possible to delete the 1-n relationship of the custom entity to the Sync Error entity, but due to a whole list of necessary deletions during the migration of our large database this is not an option.

We need another solution to resolve this issue.

Database Script?

By comparing an upgraded database that was upgraded before the December 2016 upgrade was installed to a database that was upgraded after the upgrade was installed, I have come up with a script that deletes entries in the DependencyBase and DependencyNodeBase tables. This is definitely not a supported route for the migration process. Since this will be performed on a customer's production database, we think it is necessary to have a supported solution from Microsoft for this issue.

*This post is locked for comments

  • Kjeld Poulsen Profile Picture
    Kjeld Poulsen 180 on at
    RE: SyncError Dependency Issue

    Long time since this thread started but it is still an issue.

    Does anybody know it there is a workaround for this. I have the problem on an on-prem developer instance.

    I am not able to delete a custom entity because it has a reference to syncErrors. I am on this version: Version 2104 (9.1.1.914) (DB 9.1.1.914) on-premises

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans