We have configured the Microsoft Dynamics CRM 2011 E-mail Router for one of our clients who receive thousands of incoming e-mail messages to different mailboxes. As they rely on e-mail as their main source of communication, it is important that the E-mail Router can process incoming e-mail messages without any issues.
One of the issues we have seen recently is an error stating:
#27938 – An error occurred while checking for e-mail messages to process in mailbox firstname.lastname@example.org. System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Crm.Tools.Email.Providers.ExchangeWSConnector.RetrieveMessage(ArrayList ids, Int32 index, ServiceLogger serviceLogger)
This error occurs due to spam e-mail messages inside the mailbox. It is difficult to identify exactly which e-mails are causing issue but if you try to clear all spam, you will notice that the E-mail Router will continue to process incoming e-mail messages.