Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

"The import of solution: [solution name] failed. Error code 8004f016" error occurs in Dynamics 365


View products that this article applies to.

Symptom

When attempting to import a solution in Dynamics 365, you encounter the following error:

"The import of solution: [solution name] failed.
Error code 8004f016"

Within the Detail column of the grid, you see the following message:

"A managed solution cannot overwrite a [component type] 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 [component type] component on the target system, and now a managed solution from the same publisher is trying to install that same [component type] component as managed. This will cause an invalid layering of solutions on the target system and is not allowed."

↑ Back to the top


Cause

As mentioned within the error details, the most likely scenario for this error is that an unmanaged solution has installed a new unmanaged component on the target system, and now a managed solution from the same publisher is trying to install that same component as managed. This will cause an invalid layering of solutions on the target system and is not allowed.

Example: Your Dynamics 365 instance already has a component such as a custom field (attribute) that was created using an unmanaged solution. If you later try to export a solution with that same field (component) as a managed solution, you will encounter this error if you try to import that solution into this instance where it already exists from an unmanaged solution.

↑ Back to the top


Resolution

If the component type is AttributeMap, see the following article:

Error importing AttributeMap in Dynamics 365
https://support.microsoft.com/help/4494576

If the component type is SavedQuery, see the following article:

Error importing SavedQuery in Dynamics 365
https://support.microsoft.com/help/4496853

Also verify you are importing the correct solution type. A solution can be exported as an unmanaged solution or a managed solution. Once a component is created/imported as part of an unmanaged solution, it cannot be reimported as a managed solution.

For more information on unmanaged and managed solutions, see Managed and unmanaged solutions.

↑ Back to the top


Keywords: 8004f016, dynamics 365, solution, import, error

↑ Back to the top

Article Info
Article ID : 4346904
Revision : 12
Created on : 3/27/2019
Published on : 3/27/2019
Exists online : False
Views : 327