RE: Solution import fails due to missing relationship
Hi Partner,
The issue here is the contact field "parent_contactid" that is added in the unmanaged layer on contact.
This field is created when customers use the Open Org Chart feature. The feature will create a relationship from contact to itself so that you can represent a customer org chart. It is doing this in the unmanaged layer since it is not already in your schema.
"parent_contactid" is used for hierarchy enablement for OrgChart functionality. When OrgChart is used for the first time, if there is no hierarchy relationship on contact entity, it is auto created. More details can be found here:
Here is the documentation page on that – note the important blue box that is on the top of the page. https://docs.microsoft.com/en-us/dynamics365/customer-engagement/sales-enterprise/live-org-chart
I believe the issue is that someone configured your source environment using the org chart functionality, which added the unmanaged property. If this property is desired, you should be able to simply add the field to your solution and ship it to the other environment. If it is not desired to be shipped, then the best practice is to remove it from your source environment.
So you can import the solution by manual removing the <missing dependency> tag in the solution.xml file
Hope this helps.
Best regards,
Akash
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.