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

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Error #96B46C06

    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

  • Verified answer
    - Matt Bayes - Profile Picture
    890 on at
    RE: Error #96B46C06

    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 -

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans