Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

"The given key was not present in the dictionary" error occurs when tracking an email in Dynamics 365 for Outlook


Symptom

When you attempt to track an email in Dynamics 365 for Outlook, you encounter the following error:

"The given key was not present in the dictionary."

If you click details, you see the following additional details:

"The given key was not present in the dictionary.
   at System.Collections.Generic.Dictionary2.get_item(Tkey key)
   at
Microsoft.Crm.AppIication.SMWrappers.AttachmentForOutIook.Get... clientOrganizationContext, IDynamicEntityCoIIectionForOutIook dynamicEntityCoIIectionAttachments) atMicrosoft.Crm.AppIicationSMWrappers.EmaiIForOutIook.Microsoft.... messageld, String subject, String from, String to, String cc, String bcc, Double receivedon, String submitted8y, String importance, String body, IDynamicEntityCoIIectionForOutIook attachments, Int32 attachmentCount, IDynamicEntityForOutIook extraProperties, String entityXmI, String regardingld, Int64 regardingObjectType, String crmld, Int32& notification)"



↑ Back to the top


Cause

This error can occur for one of the following conditions:

  1. The email includes an attachment that is larger than the size allowed in Dynamics 365. 
  2. The email includes an attachment with a file extension that is blocked by Dynamics 365. 

↑ Back to the top


Resolution

Resolution 1
If the email includes an attachment that is over the size limit, either remove the attachment or increase the size of attachments allowed in Dynamics 365.  The default maximum size is 5MB. 

If you have the System Administrator role in Dynamics 365, you can view and modify this setting by navigating to Settings, Administration, and then clicking System Settings.  Click the Email tab and locate the Maximum file size (in kilobytes) setting under the Set file size limit for attachments heading. 

Resolution 2
If the email includes an attachment with an extension that is blocked by Dynamics 365, either remove the attachment or modify which file extension are blocked by Dynamics 365. 

If you have the System Administrator role in Dynamics 365, you can view and modify this setting by navigating to Settings, Administration, and then clicking System Settings.  On the General tab, locate the setting Set blocked file extensions for attachments

↑ Back to the top


Keywords: error, tracking, crm for outlook, dynamics 365 for outlook, given key was not present in the dictionary

↑ Back to the top

Article Info
Article ID : 4010462
Revision : 7
Created on : 1/20/2017
Published on : 1/20/2017
Exists online : False
Views : 81