CRM E-mail Router Performance Based Error Messages
There are many times the following errors can be seen in verbose E-mail Router logs or in the Event Viewer of the E-mail Router machine:
#14494 - A provider work item using assembly: Microsoft.Crm.Tools.EmailProviders.dll and class: Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider has been aborted because it has been running for longer than the allowed execution time. .
#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.Threading.ThreadAbortException:
#26090 - An error occurred while opening mailbox Microsoft.Crm.Tools.Email.Providers.EmailException
The most common steps to resolve these errors are below:
1. Increase the MaxThreadExecution value in the EmailAgent.xml file located in the following directory: C:\Program Files\Microsoft CRM Email\Service
Increase this value to 1200000 as shown below. This is the maximum time interval a thread can execute for.
<MaxThreadExecution>1200000</MaxThreadExecution>
2. In E-mail Router Configuration Manager, open the outgoing and incoming Configuration Profiles and change the Max Messages per cycle to 250 and increase the Polling Period to 120.
3. Finally, navigate back to C:\Program Files\Microsoft CRM Email\Service
4. Open the Microsoft.Crm.Tools.Email.Management.config
5. Add the following within the Configuration tags
<system.net>
<connectionManagement>
<add address="*" maxconnection = "24" />
</connectionManagement>
</system.net>
<system.web>
<httpRuntime executionTimeout="900"/>
</system.web>
6. Next, open the Microsoft.Crm.Tools.EmailAgent.exe.config in the same location. If it does not exist, create it 5.Then, replace the contents of this file with the following:
<configuration>
<system.net>
<connectionManagement>
<add address="*" maxconnection = "24" />
</connectionManagement>
</system.net>
<system.web>
<httpRuntime executionTimeout="900"/>
</system.web>
</configuration>
Comments
-
Hi,
We have successfully installed CRM Email Router 2016. Our CRM application is CRM online 2016 version. We have configured the outgoing profile. And also configure deployment option to connect to CRM 2016 online. URL is disco.crm.dynamics.com/OrgName and provided service account user name and password. Service account is having system admin role in CRM. When we click on load data we are getting below error.
The E-mail Router Configuration Manager was unable to retrieve user and queue information from the Microsoft Dynamics CRM server. This may indicate that the Microsoft Dynamics CRM server is busy. Verify that URL 'dev.crm.dynamics.com/CrmOrgName' is correct. Additionally, this problem can occur if specified access credentials are insufficient. To try again, click Load Data. (GetAuthState() - Request Status:.).
Event log error
#26234 - The Email Router service could not process a provider work item using assembly: Microsoft.Crm.Tools.EmailProviders.dll and class: Microsoft.Crm.Tools.Email.Providers.SmtpPollingSendEmailProvider. Microsoft.Crm.Passport.IdCrl.IdCrlException: GetAuthStateEx() - Request Status: at Microsoft.Crm.ServiceProxyCache`1.BuildServiceProxy(Uri serviceUrl, Credential credentials, Uri homeRealmUrl, String passportEnvironment, String onlineServiceEnvironment, IServiceConfiguration`1 serviceConfiguration) at Microsoft.Crm.ServiceProxyCache`1.GetNewServiceProxy(Uri serviceUrl, Credential credentials, Uri homeRealmUrl, String passportEnvironment, String onlineServiceEnvironment) at Microsoft.Crm.Tools.Email.Providers.Utility.BuildOrganizationService(Uri organizationServiceUrl, String authMode, Credential credentials) at Microsoft.Crm.Tools.Email.Providers.CrmPollingSendEmailProvider.Run() at Microsoft.Crm.Tools.Email.Agent.ServiceCore.ExecuteProviderWork(Object providerQueueRequestObject)
When we are using any particular user credential instead of service account it is working fine. However when we used service account it is giving this error.
-
Hi Everyone,
There are many kb articles and blogs about email router configuration and troubleshooting
*This post is locked for comments