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.

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


View products that this article applies to.

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."

↑ Back to the top


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.

↑ Back to the top


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.

↑ Back to the top


Keywords: kbmbspartner, kbmbsmigrate, kbsurveynew, kbmbscrmonline, kb

↑ Back to the top

Article Info
Article ID : 2817226
Revision : 1
Created on : 1/7/2017
Published on : 9/6/2013
Exists online : False
Views : 190