Hi there,
I got the following errors while trying to import CRM organization from 1 environment to another environment. I know the custom table that it complained does not have primary key violation. I've also tried to remove all key constraints in DB level before reimporting but didn't work. Hope anyone can share some light. Thanks
15:51:29| Error| The following connections need to be closed before setup can continue:
15:51:29| Error| Login: CRM\crmservice, Host: Win2019.mmc, Database: xxxxxx_MSCRM, User: crmservice, Program: MSCRMmmc
15:51:29|Warning| Check SqlConnectionValidator : Warning: Existing SQL Server connections to the Dynamics 365 databases must be closed before setup can continue.
15:51:29|Verbose| Connecting to database Data Source=Win2019;Initial Catalog=xxxxxx_MSCRM;Integrated Security=SSPI.
15:51:30| Error| Check SqlPrimaryKeyConstraintValidator : Failure: Violation of PRIMARY KEY constraint 'PK__#Invalid__59D49277BDDB8448'. Cannot insert duplicate key in object 'dbo.#InvalidPrimaryKeys'. The duplicate key value is (CustomEntityBase, CustomEntityId).
The statement has been terminated.