When attempting to import a solution in Dynamics 365, you encounter the following error:
"The import of solution: [solution name] failed.
Error code 8004f016"
The grid within the error dialog includes a row of Type = Mappings and Name = contact-lead. The detail text shown for this row is the following message:
"A managed solution cannot overwrite a AttributeMap component on the target system that 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."