locked
CRM 4.0: Email Router fails and gets stuck, because of "invalid characters" in incoming messages RRS feed

  • Question

  • We recently upgraded to CRM 4.0 and I am having a problem with the Incoming profile on our email router.  This profile is configured to connect to the Exchange mailbox of our mail forwarder account to retrieve and import incoming email messages.  Typically, when the email router is unable to process a message, it tries again for a few hours, before giving up on it and moving it to the Undeliverable mailbox.

     

    The problem is that for some messages the router simply stops processing (it skips all messages that arrived since the problem messages) and continues to try indefinitely.  As you can imagine, this is a huge problem, because incoming messages get stuck in the forwarder's inbox until somebody manually deletes the problem message.

     

    We have seen this problem be caused by "invalid characters" in messages that use asian character sets.  Here's what I see in the event log:

     

    #6511 - An error occurred while checking the e-mail message with subject "地元のオバサンを抱きたいですか?レベ" in mailbox crmemail@MyCompany.com for delivery to http://crmserver/MyCompany. 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.AcceptMessageInternal(EmailMessage emailMessage)
       at Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.AcceptMessageInternal(EmailMessage emailMessage)
       at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.AcceptMessage(EmailMessage emailMessage)
       at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.Run()\r\n
      0x80040b08
      The sender does not have an email address on the party record
      Platform

     

    Followed by:

     

    #26234 - The E-mail Router service could not process a provider work item using assembly: Microsoft.Crm.Tools.EmailProviders.dll and class: Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider. System.ArgumentException: Specified value has invalid Control characters.
    Parameter name: value
       at System.Net.WebHeaderCollection.CheckBadChars(String name, Boolean isHeaderValue)
       at System.Net.WebHeaderCollection.Set(String name, String value)
       at Microsoft.Crm.Tools.Email.Providers.HttpDavRequest.PrepareCommand(String verb, String headerName, String headerValue, Int32 maxRange)
       at Microsoft.Crm.Tools.Email.Providers.HttpDavRequest.Move(Uri moveFolderUri)
       at Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.MoveMessage(EmailMessage emailMessage)
       at Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.MoveMessageIfNeeded(Exception e, EmailMessage emailMessage)
       at Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.HandleAcceptMessageError(Exception e, EmailMessage emailMessage)
       at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.Run()
       at Microsoft.Crm.Tools.Email.Agent.ServiceCore.ExecuteProviderWork(Object providerQueueRequestObject)

     

    This sounds like a bug to me.  Does anybody have the same problem?  Is there a work-around?

     

    Thanks,

    Pando

     

     

     

    Tuesday, May 13, 2008 10:26 PM

Answers

All replies

  •  

    Dear,

     

    see updates and hotfixes of Dynamics 4.0

     

    http://support.microsoft.com/kb/949256/en-us

     

    Regards,

    Imran

     

    http://microsoftcrm3.blogspot.com

     

    Wednesday, May 14, 2008 2:42 PM
    Moderator
  • Hi.

     

    I am also having this problem, which update did you mean should fix this?

     

    Regards

    Thomas

    Wednesday, May 21, 2008 1:46 PM
  • I have exactly teh same problem - 6511 and 26234. The behavior is exhibited on:

    - Japanese subject mails (as seen below)

    - some HTML mails

    - some Undelivarable message mail form Exchange attandant

    - some Meeting requests

    - any direct mail send to crm-box

     

    I carefuly observed HOTFIXes and there is not any that would seem to correct the problem.

     

    Please, can you specify more precisely what hotfix is extected to correct it ?

     

    Regards

     

    Jiri

     

    #6511 - An error occurred while checking the e-mail message with subject "--メール・携帯・PCを使わない出会い" in mailbox crm-box@xxxxx.cz  for delivery to http://sqlserver.xxxxx.cz

    . System.Web.Services.Protocols.SoapException: Server was unable to process request.
       v System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       v System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       v Microsoft.Crm.Sdk.Proxy.CrmService.Execute(Request Request)
       v Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.AcceptMessageInternal(EmailMessage emailMessage)
       v Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.AcceptMessageInternal(EmailMessage emailMessage)
       v Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.AcceptMessage(EmailMessage emailMessage)
       v Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.Run()\r\n
      0x80040b08
      The sender does not have an email address on the party record
      Platform

    Wednesday, August 13, 2008 3:44 PM
  • Same Problem here with russian letters. Can you give us the link only to the specific Hotfix ?

    thx in advance....

    greets,

    Uter
    Thursday, August 28, 2008 12:59 PM
  • Installing this hotfix on the Server running the email router fixes the problem. Tested this AM. The email router leaves the emails it can't process in the Queue, but does not hang anymore.

     

    952019 (http://support.microsoft.com/kb/952019/EN-US/)

     

    Steve Noe Blog

    http://mscrmmaster.com

    Thursday, October 2, 2008 2:13 PM
  • Ooops, I take that back, this hotfix does NOT solve the problem. I have not found anthing that fixes this BUG in the email router. If japanese characters are encountered in the CRM mailbox by the CRM 4.0 email router, it hangs and does not process any further messages untill you delete the offending message from the CRM router mailbox.

     

    Microsoft, please look into this one. Very annoying since we get several spam emails per day with asian characters in them, causing the email router to hang.

     

    Monday, October 6, 2008 4:04 AM
  • any news to this problem ? We still have this Problem (the most invalid characters are chinese or krylian text)

    Cheers,
    Uter
    Monday, January 12, 2009 11:55 AM
  • 1. Several non-public hotfixes were needed to solve the problem

    2. December 08 Rollup1 has them all and solves the problem

     

    Monday, January 12, 2009 1:08 PM