Importing managed solutions that contain Wall Enabled entities fail for Microsoft Dynamics CRM Online

Symptoms

A managed solution that contains an entity that is 'Wall Enabled' is imported. When attempting to import the managed solution, it fails with error:

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

Cause

When an entity is wall enabled, two unmanaged Views are added to that entity:

  • <Entity>s Being Followed

  • <Entity>s I Follow


As the entity is exported into a managed solution, these unmanaged Views are exported into a managed state. Upon trying to import the managed solution in another environment, the import will fail if the destination organization has that same entity in a 'Wall Enabled' state.

As the error message indicates, the problem is because the destination environment already contains these same views, but in an unmanaged state. The managed solution cannot overwrite these components as it will cause an invalid layering of solutions on the target system and is not allowed.

Resolution

Before exporting the solution, deactivate the Activity Feed configuration for the entities being exported. To do this, perform the following steps:

 1. Navigate to Settings and click Post Configurations

a. Select each entity that will be exported

b. Click on the 'Deactivate' button in the Post Configurations ribbon control

c. Once you have deactivated the desired entities, publish all customizations. 2. Export the new solution again in a managed state

By deactivating the Post Configurations for these entities, the unmanaged views are temporarily removed from the entity and will not be included when the entities are exported. Since the views will not exist in the managed solution, there will be no conflict with the views when importing into the destination environment.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×