We were upgrading Dynamics CRM 2011 On-Premises to CRM 2013 On-Premises. As every CRM developer would be aware that CRM upgrades are never a smooth sailing ride.
We stumbled upon an error while importing organization in Deployment Manager.
The error we came across was,
Violation of UNIQUE KEY constraint ‘UQ_LocalizedLabelCheck’. Cannot insert duplicate key in object ‘MetadataSchema.LocalizedLabel’. The duplicate key value is (e23fb506-2341-db11-898a-0007e9e17ebd, DisplayName, 1033, Jan 1 1900 12:00AM, 0).
Initially, we thought it would be the case of multiple languages in CRM 2011, but after investigating CRM 2011, it was not the case.
Once of the articles suggested this was planned to be addressed in an upcoming rollup. We decided to upgrade our CRM 2013 to the latest Rollup available i.e., Update Rollup 3.
Once it was upgraded to the latest rollup, importing the organization through the deployment manager, we still came across the same error.
The next step was to then upgrade CRM 2013 to SP1 and then retried the importing process.
BINGO!!! it worked.
Before upgrades, ensure that you have the latest rollup installed for the intermediary CRM versions to ensure the upgrade goes through smoothly.
You may also like to see : User Adoption Metrics that matter in your Dynamics CRM