Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

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

Posted on by 417

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
    bernhards 417 on at
    RE: CRM cannot retrieve some E-Mails from the Exchange Server (Server-Side-Sync)

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans