Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

The given key was not present in the dictionary

Posted on by Microsoft Employee

Hi everyone,

I am the IT/Help desk person at a company and we are using CRM and seem to have some issues.

The first one, is when a user goes to choose a lead in CRM it gets stuck at the loading screen at "requesting data from server" and does not load.

I found out the fix for that is to just have them clear the cache and restart the browser, and that works but it's happened to multiple members of our sales team and at the same time. I would rather like to know if there's a specific issue that might be causing the cache to have a problem on the server side and if it's something I can look into via the admin panel OR have information to put into a support ticket.

The second one is this:

When user goes to qualify a lead this pop up occurs.

"Unexpected exception from plug in (execute):
M****CRMPlugins.QualifyLeadWorkFlowExtension:
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary"

I'm looking more into ways to resolve this, but I'm still learning CRM along the way. Any help is greatly appreciated.

Thanks,

Trev

*This post is locked for comments

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: The given key was not present in the dictionary

    Hi,

    This is the problem with the plugin you have registered in the CRM named QualifyLeadWorkFlowExtension.

    I think you are reading an attribute which does not exist or does not have value in the plugin code.

    See the links below.

    community.dynamics.com/.../the-given-key-was-not-present-in-the-dictionary-what-it-means-and-how-to-avoid-it

    crmtipsbyprm.wordpress.com/.../the-given-key-was-not-present-in-the-dictionary-dynamic-crm/

      

  • Suggested answer
    BadrinathB Profile Picture
    BadrinathB 970 on at
    RE: The given key was not present in the dictionary

    For the first issue check the eventlogs for more information. Check if the services are running or not.

    For the second one it looks like your plugin/workflow is unable to find any attribute which is there in your condition.

    Check if your are trying to fetch value from any attribute which is null. You can use GetAttributeValue instead of directly accessing the attribute else check if the attribute is present or not using Attribute.Contains function

    crmentropy.blogspot.com.au/.../entitygetattributevalue-explained.html

    the other option is enable traces and debug your custom code plugin/workflow.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans