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)

Error #96B46C06

(0) ShareShare
ReportReport
Posted on by

Hi all

where can i find more information regarding the Error Message "<Message>System.Collections.Generic.KeyNotFoundException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #96B46C06</Message>"

Thank you for your help in advance

Heinz

*This post is locked for comments

I have the same question (0)
  • Verified answer
    - Matt Bayes - Profile Picture
    890 on at

    Hello Heinz,

    Usually this error stems from you referencing a field that either does not exist or is spelled incorrectly in your custom workflow activity / plugin. KeyNotFound means it is trying to look for the passed in key and can't find it in the attributes dictionary for an entity. The best option would be to validate if the key exists prior to using it, see below:

    if (localContext.PluginExecutionContext.InputParameters.Contains("Target") && 
                    localContext.PluginExecutionContext.InputParameters["Target"] is Entity)
                {
                    Entity entity = localContext.PluginExecutionContext.InputParameters["Target"] as Entity;
    
                    if (entity.Contains("yourattributename"))
                    {
                        entity["yourattributename"] = "value";
                    }
                }

    In the above snippet, the "yourattributename" attribute is validated against the entity to see if it exists, and if it does, then it is assigned a value.

    Hopefully this helps!

    - Matt -

  • Verified answer
    Community Member Profile Picture
    on at

    Hi Heinzmeier,

    if you haven't solved please share your code to let us help you.

    If you found the answer helpful, please mark as Verified 

    Join my network on LinkedIn      Follow me on Twitter 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna+Milano, ITALY

    Independent Contractor

    http://www.francescopicchi.com

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