Hi,
While importing a managed solution, the following error occurs on the entity mapping 'incident-incident':
A managed solution cannot overwrite the AttributeMap component with Id=6c6480d1-5aa9-e511-80fc-3863bb348bb0 which has an unmanaged base instance. The most likely scenario for this error is that an unmanaged solution has installed a new unmanaged AttributeMap component on the target system, and now a managed solution from the same publisher is trying to install that same AttributeMap component as managed. This will cause an invalid layering of solutions on the target system and is not allowed.
I'm working on a CRM online 2015 organization but I've been able to reproduce it on a 30 days trial (CRM 2016).
The target environment does not contain any unmanaged solution.
I've been able to narrow the source of the problem :
- At the first import of the solution, no problem.
- Then, on the target environment, I set the cascade closure preference in "Parent and Child case settings" to "Don't allow parent case closure until all child cases are closed"
- If I try to update the solution , I get the error "Cannot overwrite the attributeMap..."
Note that I can perfectly update the solution before step 2 without any trouble.
According to msdn : When Parent and Child case settings are configured in the application, data is stored in the organization entity
What I don't understand is why it prevents me from importing my solution, since this settings is not included in it (that's why I change the setting on the target environment directly).
My only workaround so far is to manually edit the customizations.xml in the zip solution file to remove the content of the "AttributeMaps" node under the "EntityMap" node refering to the incident-incident mapping. Basically, I'm removing from the solution the mapping of attributes between a parent and child case. When I do that, I can import the solution without any trouble.
Any Ideas ?