web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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 28
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:
I have the same question (0)
  • Anupam.khasia Profile Picture
    170 on at
    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
     
  • Saidev3 Profile Picture
    28 on at
     
    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.
     
  • Suggested answer
    Anupam.khasia Profile Picture
    170 on at
    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
  • CU25071753-1 Profile Picture
    13 on at
    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
    CU25071753-1 Profile Picture
    13 on at
    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.

     
     
     
     
  • Suggested answer
    DAnny3211 Profile Picture
    11,397 on at

    Hello,

    Thank you for providing the detailed context.

    The error message:

    “ImportAsHolding failed with exception: The uninstall operation will delete the base layer for the component ‘EntityMap’... because there are other managed layers over the base layer.”

    typically occurs when a managed solution attempts to overwrite or remove a component (in this case, an EntityMap) that is already part of another managed solution in the target environment. This is a common issue when dealing with solution layering in Dynamics 365.

    Recommended Resolution Steps:

    1. Use Solution Layers Tool
      In the Power Platform Admin Center or Advanced Settings, navigate to the Solution Layers view for the affected component (e.g., opportunity_originating_lead relationship). This will show you:

      • Which solutions are contributing layers to the component.
      • Whether the base layer is part of a managed solution that cannot be removed.
    2. Remove Dependent Managed Layers
      If possible, uninstall the managed solutions that are layering over the base component before importing your new managed solution. Be cautious, as this may affect other dependencies.

    3. Convert to Unmanaged for Migration
      As a workaround, consider importing the solution as unmanaged into QA, especially if this is a non-production environment. This avoids the layering conflict and allows you to validate the changes.

    4. Split the Solution
      If the issue is isolated to a specific relationship or mapping, create a separate solution containing only that component and import it first. This can help isolate and resolve the conflict before importing the full solution.

    5. Avoid Customizing OOTB Relationships in Managed Layers
      If possible, avoid adding custom mappings to out-of-the-box relationships in managed solutions. Instead, consider using custom relationships or handling mappings via code or workflows.

    If this response helps resolve your issue, please consider marking it as accepted so it may assist others facing similar challenges.

    Best regards.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 45 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 36

#3
Satyam Prakash Profile Picture

Satyam Prakash 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans