Are you getting below error when trying to import managed solution exported from your dev environment where Activity feed is configured.
A managed solution cannot overwrite the SavedQuery component with Id=xxxx-xxx-xxx-xxx-xxxx which 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.
If yes, you need to remove Activity feed configuration from source system before exporting your solution. You need to follow below steps
- Open your Dev envornment.
- Navigate to Activity Feeds Configuration under Setting->System.
- Delete all configuration records except for user entity.
- Delete user entity record.
Now you can export your solution, make sure to click on “Publish All Customization” during export step.
Once solution imported into production envirnment, you can configure activity feed again.