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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Option set values & solutions

(0) ShareShare
ReportReport
Posted on by 20

Dear all, when I move an option set through different enviroments with a solution (dev/test/acc/prod) I notice that new picklist values are added, but deleted values are not removed.

So for example:

  • in environment Dev I have options A, B and C
  • in environment Test I had prior to the import of the solution the options D, E and F
    • These options are not used/there is no data against it
  • after the import of the solution in Test I have A, B, C, D, E and F, so cumulative.

I except to have options A, B and C in Test, and D, E and F deleted.

Is this by design, and should I manually remove the old/unused values?

Thanks in advance,

Arjan

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi,

    This is by design, if you have an extra optionset values for the same attributes in the solution which you are importing then new values get added, system will not delete the old values

  • Suggested answer
    razdynamics Profile Picture
    17,308 User Group Leader on at

    Hi Arjan

    Solutions by Design are Additive so by removing a component from a new solution will not remove it from the Target, It will only add the new customisations.

    So if you deleted the option from your dev, then imported the new solution to UAT, it will still exist in UAT, and Prod Also.

    PS. are you using Managed or Unmanaged Solutions in UAT/Prod?

    Best Wishes, Raz

  • Arjan Grobben Profile Picture
    20 on at

    Thanks Raz, we use unmanaged solutions.

    Regards,

    Arjan

  • Community Member Profile Picture
    on at

    [quote user="Raz Dynamics"]Solutions by Design are Additive so by removing a component from a new solution will not remove it from the Target, It will only add the new customisations.

    So if you deleted the option from your dev, then imported the new solution to UAT, it will still exist in UAT, and Prod Also.

    PS. are you using Managed or Unmanaged Solutions in UAT/Prod?[/quote]

    My team has hit this same problem also, in that we had some old Status Reason values that we'd previously used, but now no longer want to be selectable.

    As there was no "De-activate" option, (Why?), we had to delete these from our Dev environment, however due to Solution imports being additive, when we imported the Solution to our Production environments (Managed), it just performed a Merge, and the old values were still selectable.

    Fortunately as we have IsCustomisable=True on, we can manually delete these values from the Default Solution on the Production environments. This is risky though of course if a mistake is made it could cause a de-sync. Also what happens to the records that previously referenced these values?

    Is there a better way of dealing with this situation? Especially for Managed solutions. Unfortunately we can't use the Stage For Upgrade option as we're not yet on 2016, and the state of our solutions means the manual "Holding Solution" method would be impossible too.

    (I'm trying to push my team to sort out our Solution structure, as it's currently terrible. I even showed some slides from your MS Reading HQ Presentation Raz, that listed the exact same problems we've hit ourselves heh. Still struggling to force them to change though..).

    I can't see any other way around this other than manually deleting the Option Set values that we no longer want. If only there was a de-activate option like there is for everything else..

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans