Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Error Importing Managed Solution – ImportAsHolding failed (EntityMap component)

(2) ShareShare
ReportReport
Posted on by 14
Hello everyone,

I am currently attempting to move a master solution from our DEV environment to QA as a managed solution, but I am encountering the following error:
"Solution {SolutionName} failed to import: ImportAsHolding failed with exception: The uninstall operation will delete the base layer for the component 'EntityMap' with id {GUID}. The operation cannot continue because there are other managed layers over the base layer. You can use the solution layers to find out which other solutions are blocking the operation."
Has anyone experienced this issue before and found a resolution? I would greatly appreciate any guidance or suggestions on how to resolve this.

Update 1 : I identified that guid mentioned in the error message is related to the 'opportunity_originating_lead' out-of-the-box relationship mapping, where we have added mappings for a few custom fields. I tried moving an unmanaged solution containing this relationship from DEV to QA to see if that would resolve the issue, but the error persists.
 
Thank you in advance for your help!
Categories:
  • Suggested answer
    CU25071753-1 Profile Picture
    7 on at
    Error Importing Managed Solution – ImportAsHolding failed (EntityMap component)
    For anyone facing the same issue while importing a solution with the opportunity_originating_lead relationship but no unmanaged changes in the target environment, here’s what I found:
     
    There is an AttributeMap table in D365 that stores individual field mappings, where each record represents a field mapping within a relationship. All of these AttributeMaps are linked together under the EntityMap which is associated with the relationship.
     
    In my case, there was another Managed Solution that I imported a while back in the QA which had ownership of these AttributeMap records. Since there is no direct way to view solution layers for the AttributeMap in D365, I used FetchXML Builder in XRMToolbox to display all the AttributeMaps associated with the EntityMap that was throwing the error. The solution field in the result showed that the ownership belonged to the older Managed Solution.
     
    In the main solution upgrade I was importing, I had added the opportunity_originating_lead relationship and had removed some of the field mappings(AttributeMaps) from it in DEV. However, in QA, the AttributeMaps I had deleted were owned by the older Managed Solution, which prevented their deletion during the import of my Main Solution and triggered the EntityMap error.
     

    I resolved the issue by adding all the components from the older Managed Solution into my Main Solution in DEV and then deleted the older managed solution in QA. After doing this, I was able to import the Main Solution without any issues.

    Alternatively, If you don't want to delete the older Managed Solution in QA and you're okay with keeping the field mappings, a temporary workaround would be to add back any field mappings you may have deleted. This will also allow the import to proceed successfully, but it’s not a permanent fix.

     
     
     
     
  • CU25071753-1 Profile Picture
    7 on at
    Error Importing Managed Solution – ImportAsHolding failed (EntityMap component)
    Has anyone identified a solution for this?
     
    I am facing the same issue while importing a solution containing opportunity_originating_lead. The suggested solution doesn't work as there is no unmanaged layers to remove. There is only a single entry under the solution layers and that is msdynce_Sales.
  • Suggested answer
    Anupam.khasia Profile Picture
    145 on at
    Error Importing Managed Solution – ImportAsHolding failed (EntityMap component)
    Hello @Saidev3,
     
    Fix you applied should not work as per my knowledge. What you need to do is
     
    * Remove unmanaged layers from entire solution from QA. 
    * Add changes which you directly made into QA in Dev environment
    * Add changes into your solution
    * Export your solution as managed
    * Import as Managed
     
    You have to remove any unmanaged layers in your solution of QA environment. 
     
    Thanks
  • Saidev3 Profile Picture
    14 on at
    Error Importing Managed Solution – ImportAsHolding failed (EntityMap component)
     
    Thank you for the response.
     
    I identified that GUID mentioned in the error message is related to the 'opportunity_originating_lead' out-of-the-box relationship mapping, where we have added mappings for a few custom fields. To fix the issue, I moved an unmanaged solution containing this relationship from DEV to QA to see if that would resolve the issue, the unmanaged solution got moved but when trying to move Master solution as managed the error persists and now when I am checking for solution layer on the relationship component, It is showing only 1 managed layer.
     
  • Anupam.khasia Profile Picture
    145 on at
    Error Importing Managed Solution – ImportAsHolding failed (EntityMap component)
    Hello @Saidev3,
     
    This is because you have directly made changes into components of your solution in QA environment.Whenever you directly modify components under "Default Solution" for components used in managed solutions , it will generate solution layer. You have to remove this solution layers before importing your solution. 
     
     
    You can remove solution layers from ... options for each component. 
     
     
     
    Please mark this as resolved if it helps you.
     
    Thanks
    Anupam
     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Mansi Soni Profile Picture

Mansi Soni 243 Super User 2025 Season 2

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 158 Most Valuable Professional

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 95 Super User 2025 Season 2

Product updates

Dynamics 365 release plans