CRM 2016 was upgraded to Dynamics 365(On-Premise). After the up-gradation to Dynamics 365 the DB version was not upgraded. While doing a upgraded to DB version from Deployment Manager getting following error.
InnerException:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlClient.SqlException: Cannot insert duplicate key row in object 'MetadataSchema.Attribute' with unique index 'ndx_Attribute_EntityId_ColumnNumber'.
*This post is locked for comments