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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans