AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 21.10.2013, 20:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,631 / 848 (80) +++++++
Регистрация: 28.10.2006
crminthefield: CRM 2011 Email Router – NullReferenceException error
Источник: http://blogs.msdn.com/b/crminthefiel...ion-error.aspx
==============

Lately I’ve been working with a customer on re-configuring their CRM Email Router, which also means addressing a few issues they currently are running into.

- Issue -

In this case, the customer is using the “Email Router” configuration for incoming emails, meaning that users have their “E-mail access type – Incoming” set to E-mail Router. If you need an Email Router refresher, the Dynamics CRM Support Blog has a good FAQ.

The problem this particular customer was running into was that intermittently, messages from certain mailboxes would not be promoted into CRM and an error similar to the following would be generated in the application event log:
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) at Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.RetrieveNextMessageInternal() at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.RetrieveNextMessage() at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.Run()

In addition, when tracing was enabled for the Email Router as described here, the following error was captured:
#27938 - An error occurred while checking for e-mail messages to process in mailbox test@contoso.com. 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)

at Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.RetrieveNextMessageInternal()

at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.RetrieveNextMessage()

at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.Run()

- Resolution -

After further research, this error was traced back to an issue that was fixed in Update Rollup 14 for CRM 2011. In this case, this issue was occurring because the email did not have a From field, or it was a Null value. However, this can also occur if other fields are missing such as Subject, To, CC…etc. In addition, if this issue is generated, other emails in the mailbox after the problem message may not be processed. After applying UR14, this issue was fixed and the messages began to flow properly.

If installing UR14 (or greater) is not an option right now, a workaround may be to delete the problematic emails from the user mailbox. However, while you may be able to identify the mailbox where the issue is happening by enabling tracing for the Email Router, it may not be easily apparent which message in particular is causing the problem. To capture more detailed information, use Fiddler to capture a trace and review messages there. Remember that in order for Fiddler to capture Email Router traffic, you will need to change the account the Email Router service is running under to a domain account, and then log into the server with that account.

A simpler option may be just to log into the mailbox and review messages there for any missing fields as well. Those messages could either be deleted or moved to another folder.

As always our CRM PFE and CRM Support teams are ready to help if you need the assistance. In addition, we have a plethora of other services we offer such as developer training, admin workshops, and code reviews. If you would like to have another Microsoft PFE or I visit your company and assist with the ideas presented on our blog, contact your Microsoft Premier Technical Account Manager (TAM) for booking information. For more information about becoming a Microsoft Premier customer email PremSale@microsoft.com, tell them CRMInTheField or I sent you.

Thanks!

Ryan Anderson @PFEDynamics

Microsoft Premier Field Engineer





Источник: http://blogs.msdn.com/b/crminthefiel...ion-error.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 15 Blog bot Dynamics CRM: Blogs 1 10.02.2016 10:26
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 14 Blog bot Dynamics CRM: Blogs 0 12.07.2013 07:13
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 13 Blog bot Dynamics CRM: Blogs 0 27.03.2013 22:12
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 10 Blog bot Dynamics CRM: Blogs 0 17.08.2012 03:27
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 4 Blog bot Dynamics CRM: Blogs 0 24.09.2011 01:16

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 21:29.