Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Issues importing managed solution

Posted on by 169

Hi,

Dynamics 365 CE 9.x

I have the typical 3 environments - Dev, UAT, Production.  UAT and Production are Managed solutions.

I'm having trouble importing a managed package from Dev, as it wants to overwrite a (what I think is OOB) relationship: contact_parent_contact.  The relationship is unmanaged within the UAT managed solution (for reasons I don't understand- I inherited these environments), and the relationship is identical in both environments.  UAT Import is failing because of this (can't import managed over the top of an unmanaged relationship - will cause solution layer issues).

What's the tidiest way of remedying this?  I really want to avoid uninstalling the UAT solution if I can....

thanks,

Steve

  • ErikLm Profile Picture
    ErikLm 55 on at
    RE: Issues importing managed solution

    Hi,

    I've encountered the exact same problem as you, did you manage to solve the problem?

  • M.Nauman Profile Picture
    M.Nauman 5 on at
    RE: Issues importing managed solution

    Hi,

    Has anyone solved this issue apart from removing the relation from customizations.xml?

    Best

    Nauman

  • Marx2020 Profile Picture
    Marx2020 169 on at
    RE: Issues importing managed solution

    The alternate approach above also worked.

  • RE: Issues importing managed solution

    Yeah this is the issue. I believe that you can use the temporary solution and create a ticket for follow up.

  • Jetj25 Profile Picture
    Jetj25 532 on at
    RE: Issues importing managed solution

    We have the same problem today

  • Marx2020 Profile Picture
    Marx2020 169 on at
    RE: Issues importing managed solution

    here's the error message:

    A managed solution cannot overwrite the Relationship component 'contact_parent_contact' with Id=d43f93ee-867b-407a-938a-441786eb1eff which has an unmanaged base instance.  The most likely scenario for this error is that an unmanaged solution has installed a new unmanaged Relationship component on the target system, and now a managed solution from the same publisher is trying to install that same Relationship component as managed.  This will cause an invalid layering of solutions on the target system and is not allowed.

  • Marx2020 Profile Picture
    Marx2020 169 on at
    RE: Issues importing managed solution

    Hi Jean Joel,

    I removed the relationship and entity from the upgrade package and it upgrade successfully.  Interestingly, I have another problem which suggests that the (existing) relationship in UAT is the issue.  Would it work to delete the relationship and field from the default solution in UAT and reimport a full upgrade from Dev?

    Cheers,

    Steve.

  • RE: Issues importing managed solution

    Hello Steve,

    In Addition, I dont think it is a suitable solution for a long run because you will always do that when you will want to import your solution.

    The unmanaged component on the target will always throw an error if you are importing your solution managed.

    Could you please paste the exact error message that you have?  I will update if you will have to raise a ticket for follow up on the issue?

    Thank you

  • Verified answer
    RE: Issues importing managed solution

    Hello Steve,  

    I understand, the only way would be to remove the relationship on the solution on the source.

    If the contact_parent_contact / parent_contactid  are unmanaged on the target org:

    You will have to remove the contact_parent_contact relationship and parent_contactid  attribute from customizations.xml of solution managed and reimport the solution to the target

    1. Extract the solution zip, open customizations.xml, remove the contact_parent_contact  highlighted node

      pastedimage1612244901559v1.png
    2. Zip the solution and import and upgrade again.
  • Marx2020 Profile Picture
    Marx2020 169 on at
    RE: Issues importing managed solution

    Hi Jean Joel,

    Thanks for your response.  Is an alternative to remove the relationship from my unmanaged solution before I export?  Am I correct in assuming that the import/upgrade process will just ignore the existing relationship in the target (i.e. it will not remove it)?

    cheers,

    Steve.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans