Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

CRM2011 - Problem with Option Set values not showing in the DB

Posted on by

Hi

We have CRM2011 on premise and we have an issue with an Option Set that has been in use since our go live 4 years ago.

Between our DEV, TEST, Pre-Prod and Production environments we have normally just added new values to option sets manually on each environment instead of creating a solution for a single option set change and moving it through the environments.  This has never been a problem for us as we always ensure that the names and values are exactly the same on each environment.

However we recently added a new value to an option set in all our environment, and we can see it using Advanced Find and we can enter data into CRM using the new value.  However when one of our reporting gurus goes to query the DB they can see the code against the entry in the DB but when they query the StringMap table for the description there is nothing there.  so it seems the value is there in the front end but doesn't exist in the String Maptable

Can anyone help with this - I would like to know why its happened and how we fix it please

Thanks

K

*This post is locked for comments

  • CU01081401-2 Profile Picture
    CU01081401-2 15 on at
    RE: CRM2011 - Problem with Option Set values not showing in the DB

    Old post, but we had a similar issue (new value not showing in table StringMap) and after publishing the entity, it showed up. Wonder where it was (must be in some table, right?) until that moment...

  • greensweater Profile Picture
    greensweater 45 on at
    RE: CRM2011 - Problem with Option Set values not showing in the DB

    We had the same issue just now... option set was displayed correctly in Advanced Find, but value did not match in StringMap table. We had published all customizations after changing the global option set value. Our solution? Publish all customizations AGAIN.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM2011 - Problem with Option Set values not showing in the DB

    Hi K,

    Yes, I've had the same issue. I wasn't able to have the StringMap populated with the new labels so I queried the AttributePicklistValueView instead. I used the query below to return me all the values and labels of a particular Option Set, including those missing from the StringMap.

    SELECT 
      OSV.Name,
      APVV.[DisplayOrder],
      APVV.[Value],
      LLV.Label
      FROM [dbo].[AttributePicklistValueView] APVV
      LEFT JOIN [dbo].[OptionSetView] OSV ON APVV.OptionSetId = OSV.OptionSetId 
      LEFT JOIN [dbo].[LocalizedLabelView] LLV ON LLV.ObjectId = APVV.AttributePicklistValueId
      WHERE LLV.Label != ''
      ORDER BY OSV.Name, APVV.DisplayOrder


  • Suggested answer
    prt33k Profile Picture
    prt33k 6,907 on at
    RE: CRM2011 - Problem with Option Set values not showing in the DB

    Hi,
    Can you post your SQL query here? The 3 column that should suffice are AttributeName, AttributeValue and Value. Please query the stringmap table and do share the screenshot.
    Techincally, this appears to be not feasible since CRM store data in SQL and not on frontend.

    To debug it further, please enable SQL profiler and then try to set the optionset from UI. Cross validate in profiler whihc table is being hit while retrieving the optionset value.

    Also, this can be raised with premier support team incase you table/views are corrupted. You can d othat from customerportal.

    Thanks,
    Prateek

  • KRHJ Profile Picture
    KRHJ on at
    RE: CRM2011 - Problem with Option Set values not showing in the DB

    Hi Paul

    Apologies for the late response - I was on leave.  I still have no resolution to this.  I raised it at the CRMUG EMEA conference in April with some of the MS MVP's and no one had a solution for it.  At the moment we are having to work around it for reporting

    Do you have the same issue?

    Regards

    K

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM2011 - Problem with Option Set values not showing in the DB

    Hi K,

    Did you ever find a resolution for this issue to get the new option set value into the StringMap table?

    Thanks,

    Paul

  • KRHJ Profile Picture
    KRHJ on at
    RE: CRM2011 - Problem with Option Set values not showing in the DB

    Thanks for all your responses Alex

    It is definitely the right DB as it is an established query that she is running and she can see all the other values present in the option set, just not the new one.  I will ask her to check the filteredview again though

    Thanks

    K

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: CRM2011 - Problem with Option Set values not showing in the DB

    Hi K,

     What's bugging me is that you can see the value in CRM but not in the stringmap. I would still try the filteredview to make sure it's not a query error. If it does not show up there but it does show up in CRM.. I'm wondering if it's the right database (though it sounds sort of far-fetched). Other than that, I'm pretty much out of ideas, too.

  • KRHJ Profile Picture
    KRHJ on at
    RE: CRM2011 - Problem with Option Set values not showing in the DB

    Hi Alex

    Its established SQL that has worked before and is working for all the other values in the Option Set, its only the new value they cant retrieve.  We also asked someone else to check using their own query and the values aren't showing in the StringMap or StringMapBase tables for them either.  

    We haven't seen this before so no idea why

    K

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: CRM2011 - Problem with Option Set values not showing in the DB

    Hi K,

     might be a human error then. Could you ask them to query data from the filtered view for that entity? If they find the value there, it means something is wrong with the joins they are using in the report query. Filtered views are pulling data from the stringmap table as well (actually, CRM is pulling data from there, too.. so I'm almost sure it's an error in the query but who knows.. at least if they can see it in the filteredview they can probably have a look at how stringmap is linked there)

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans