"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)"



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. 

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
Propriedades

ID do Artigo: 4010462 - Última Revisão: 20/01/2017 - Revisão: 7

Comentários