Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
Hello, I'm trying to export a custom entity from production to sandbox, and it fails to import on System Views with the following message:
The INSERT statement conflicted with the FOREIGN KEY constraint "owner_userquerys". The conflict occurred in database "Sandbox_MSCRM", table "dbo.OwnerBase", column 'OwnerId'. The statement has been terminated.
The entity does not already exist at all in the Sandbox environment, and the solution is unmanaged. If anyone knows anything that could help me, that would be great, thank you
I think you create a saved query in sandbox with certain user which not exists in Production environment.
try to remove the saved query and import again or , change the owner of saved query from current owner to one exist in production
Hi Michelle C I hope you are doing good.
You could try defining an alternative key for the custom entity so then the conflict between entities should be solve. Here more documentation that can be useful:
Define alternate keys for an entity (Developer Guide for Dynamics 365 Customer Engagement (on-premises)) | Microsoft Docs
If this answers your question, please check it as verified.
Welcome to this amazing community.
Business Applications communities