While trying to import a managed solution I was getting the below error.
The reason being the SavedQuery component created by the Activity Feeds Solution in source and target environment has the same id. And it is unmanaged component in the target environment and the managed solution that we were trying to import has the same component as managed.
Commenting out all the savedquery from the customizations.xml and importing the solution back solved the issue
Hope it helps.
2 thoughts on “A managed solution cannot overwrite a Saved Query component on the target system that has unmanaged base instance error while importing a managed solution in CRM 2011”
Sometimes, just commenting that Saved Query doesn’t work. In my case, I checked in all entities, there were some unmanaged views as well in the default online solution. These views were in Account, Contact, Case, Lead, Opportunity entities. Just delete those unmanaged views and dont remove that saved query part will resolve the problem.