E-mail Router error

I recently worked on an installation that required the E-mail Router configured for SMTP.  An additional requirement was to create a Queue for incoming support requests.  I created the queue and completed the configuration on the E-mail Router but for some reason, the e-mails were not delivered to the Queue.  I opened the event viewer to see if there were any error messages and found the following:
 

9628 – An error occurred while delivering the e-mail message with subject "email trouble ticket" in mailbox "……..com for delivery to http://crmServerUrl. System.Web.Services.Protocols.SoapException: Server was unable to process request. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Microsoft.Crm.Sdk.Proxy.CrmService.Execute(Request Request) at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.DeliverMessageInternal(EmailMessage emailMessage) at Microsoft.Crm.Tools.Email.Providers.Pop3PollingMailboxProvider.DeliverMessageInternal(EmailMessage emailMessage) at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.DeliverMessage(EmailMessage emailMessage) at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.Run()rn 0x80044331 A validation error occurred. The length of the ‘messageid’ attribute of the ’email’ entity exceeded the maximum allowed length of ‘100’. Platform

 

The hint for the fix is in the last line of the error message, "The length of the ‘messageid’ attribute of the ’email’ entity exceeded the maximum allowed length of ‘100’".

 

To fix this issue, I went to Settings, Customization, Customize Entities, and opened the E-mail entity.  I increased the size of the messageid attribute to 250.  It is set to a 100 character length by default.  I published the changes and the e-mails were delivered as expected.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s