web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM cannot retrieve some E-Mails from the Exchange Server (Server-Side-Sync)

(0) ShareShare
ReportReport
Posted on by 423

I had this issue before (see: https://community.dynamics.com/crm/f/117/t/306079) but now it is different. The CRM did not retrieve sometimes E-Mails that are waiting in our Exchange mailbox. First we thought only SMIME E-Mails are a problem, but now it also happens for E-Mails that are IPM.Note.

Here is the error we found in the log.

      at EmailConnectorTraceHandler.EmailConnectorTraceFormat(Guid orgId, Object mailbox, Guid asyncEventId, TraceCategory traceCategory, TraceLevel traceLevel, String data)  ilOffset = 0x163
      at EmailConnectorTrafficMonitor.LogAllHeaders(TraceLevel logLevel, String logHeading)  ilOffset = 0xA1
      at <>c__DisplayClass4.<.ctor>b__2(Object sender, EventArgs args)  ilOffset = 0x83
      at EventHandler.Invoke(Object sender, EventArgs e)  ilOffset = 0xFFFFFFFF
      at ErrorHandler`1.HandleError(IErrorInfo errorInfo)  ilOffset = 0x34
      at IncomingEmailProviderBase.DeliverMessageInternal(IEmailMessage emailMessage, Boolean validateBeforeCreate)  ilOffset = 0x5D7
      at GetAttachmentStep.DoesAllAttachmentProcessed(IExchangeEmailMessage emailMessage)  ilOffset = 0x76
      at GetAttachmentStep.ProcessResponse()  ilOffset = 0x55D
      at ExchangeIncomingEmailProviderStep.EndOperation()  ilOffset = 0x2F6
      at ExchangeIncomingEmailProvider.ReceiveEmails()  ilOffset = 0x86
      at IncomingActivityProviderBase.Run()  ilOffset = 0x42
      at MailboxEmailOperation.PerformOperation()  ilOffset = 0x2C
      at MailboxOperationBase`1.Execute()  ilOffset = 0xA4
      at MailboxProcessingOperation.PerformOperation()  ilOffset = 0x1A
      at MailboxOperationBase`1.Execute()  ilOffset = 0xA4
      at MailboxOperationCommand.InternalExecute(MailboxAsyncEvent asyncEvent)  ilOffset = 0xAA
      at AsyncCallbackHandler`2.ResumeExecution(IAsyncEvent asyncEvent)  ilOffset = 0x5B
      at AsyncEventExecutionManager`2.ExecuteHandler(IAsyncEventHandlerFactory handlerFactory)  ilOffset = 0x63
      at PoolHandler.ProcessAsyncEvent(IAsyncEventExecutionManager asyncEventExecutionManager)  ilOffset = 0x22A
      at AsyncEventOperation.<.ctor>b__2(IServiceOperation operation)  ilOffset = 0x0
      at FaultToleranceBehavior.Execute(ServiceOperationAction operation, IServiceOperation operationParameter)  ilOffset = 0x18
      at IsolatedOperation.Execute()  ilOffset = 0x27
      at MonitoredOperation.Execute()  ilOffset = 0xD
      at ThreadPoolQueueExecutionEngine.InvokeNextOperationInThreadPool(Object state)  ilOffset = 0x16
      at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x79
      at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x9
      at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()  ilOffset = 0x35
      at ThreadPoolWorkQueue.Dispatch()  ilOffset = 0xA4
Logging request/response headers in: ExchangeIncomingEmailProvider for AsyncEvent: a8750b09-a5aa-4e95-9af3-48a8b1bfea95, Mailbox: a53f4111-b852-e811-9662-00155d0f380f --
Persistent-Auth: false,
Connection: close,
Cache-Control: private,
Content-Type: text/xml; charset=utf-8,
Date: Thu, 11 Apr 2019 09:10:36 GMT,
Server: Microsoft-IIS/7.5,
WWW-Authenticate: Negotiate oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvsfvLx1VjFsAVCbJJ1q4KIRQ1sQ4Ufz5ThshvRmG5Zn47o+u7rS4OWVBdzwAlE/D82mLTdPmTwzoXPWwS1VCqCoLGjKw/YlefMbijNlKrIkfHEgwLVuiYREFOYinip3w32+f+Eo8+LglHtPG0AJpo,
X-AspNet-Version: 2.0.50727,
X-Powered-By: ASP.NET,

I did a test and simulated this E-Mail with the .Net SmtpClient. This E-Mail was retrieved by the CRM. See EWS-Editor:

crm_2D00_missing_2D00_emails.png

(from top to bottom)

  1. A E-Mail from the customer that was not retrieved before (5)
  2. SmtpClient Test with same sender address as the customer has.
  3. E-Mail from the same domain but send by his colleague.
  4. Same as 3.
  5. Missing E-Mail, sender like in 1.

If I could simulate the problem I could enable the verbose trace. But it only happens sometimes and I have no clue why it does happen. We already updated CRM to the latest version 8.2.5.0004 in the hope that this would fix the issue.

*This post is locked for comments

  • bernhards Profile Picture
    423 on at

    Ok, I made some mistake. The E-Mail that could not be synchronized by the CRM was received before we did our update. I just asked if my colleagues can give me a newer example. Maybe the update fixed it already.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
TNJ_CRM_Team Profile Picture

TNJ_CRM_Team 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans