web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Overwriting unmanaged changes with a managed solution

(0) ShareShare
ReportReport
Posted on by

Hi,

I've done some searching but can't really find and answer. 

We have three environments - DEV, UAT and LIVE.  I've created a new solution in DEV which contains some entity changes, a new web resource and some business rules.  I've exported the solution as managed and gone to import it in to UAT and received the error:

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


It seems that changes may have been made directly to the default solution in UAT (and probably LIVE).  Is there a way I can force my managed solution from DEV to overwrite them or do I need to export it as unmanaged to force an overwrite?

Thanks,

Stewart

*This post is locked for comments

I have the same question (0)
  • stranter2 Profile Picture
    on at
    RE: Overwriting unmanaged changes with a managed solution

    Thanks Kokulan, as I suspected, importing it as unmanaged worked fine.

    Thanks,

    Stewart

  • stranter2 Profile Picture
    on at
    RE: Overwriting unmanaged changes with a managed solution

    Thanks for the reply.

    I can't delete the unmanaged solution because these changes were made directly in the UAT default solution (Settings-->Customizations-->Customize the Solution) and I can't delete the components as they are already heavily in use.

    Any more ideas?

    Thanks,

    Stewart

  • Verified answer
    Kokulan Profile Picture
    18,054 on at
    RE: Overwriting unmanaged changes with a managed solution

    Hi

    In your UAT environment check the mentioned option set and see if its in an unmanaged solution, if so, you might have to export as unmanaged and deployed unmanaged solution.

    Normally there should be deployment guides or notes that should say how the deployment is done.

    If the solutions were deployed before as unmanaged to UAT and LIve, there will be many more components that will be in this state.  If so, I would recommend you export solution from Dev as Unamanged and import on UAT.

    Its perfectly normally to have an internal or in-house solution to be unmanaged all the way through to Prod.  

  • Suggested answer
    Pawar Pravin  Profile Picture
    5,237 on at
    RE: Overwriting unmanaged changes with a managed solution

    Hi,

    Please refer below thread for your reference:

    community.dynamics.com/.../236909

    us.hitachi-solutions.com/.../managed-solution-replacement-in-microsoft-dynamics-crm

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#3
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans