Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Emails arrive days later before arriving in CRM with Server-Side Sync

Posted on by 112

We are in a CRM 2016 v8.2 environment On-Premise (8.2.2.112) using Server-Side Sync.


Users report that sometimes they receive old mails in the queue.
In CRM they are marked as if they just arrived in the system based (createdon) on the audit history on the email record:

3404.audit.png

But in fact the users has sent it already 3 months earlier as we can see in the "actualend" field. So now it happens that Customer Service Agents reply to 3 months old emails. 

I checked one of the queues where the problem occurred (but it happens on all queues / mailboxes) and there was no change in the last years:

audit_5F00_queue.png

I checked with the Exchange team and they confirmed that the mail was received on the time that the client has sent the email. So the problem must be somewhere between Exchange and CRM. So probably the server-side sync. 

After I checked the database if there were more emails with the same problem and it seemed so. Some emails take 258 days to arrive in the CRM.

sql_5F00_results.png

I used the following query to come the the above screenshot: 

SELECT subject as 'subject', directioncode as 'directioncode',ActualEnd as 'sent on (actualend)',CreatedOn as 'in crm since (createdon)',DATEDIFF(d, actualend, createdon) as 'delay in days', SubmittedBy, ToRecipients
FROM email (nolock)
WHERE actualend > '2018-01-01' -- only check emails after 2018
AND DATEDIFF(d, actualend, createdon) > 1 -- that arrived more than 1 day later in CRM
ORDER BY [delay in days] desc -- in order they arrived in CRM

Extra details: 

  • There is no outlook client or any other option for users to track emails manually. All emails enter the CRM trough the Server-Side Sync;
  • There are no workflows on create of email that are in status waiting;
  • There is no plugin registered on the Create of an email;
  • It happens not only on 1 or multiple specific queues. It happens both for personal queues and public queues. 
  • It does not only happen for emails coming from outside the organization. The problem also happens for emails sent within the organization;

Does anyone has any idea? All help / tips are welcome.
Is there a way for me to know which emails are queried by the server side sync and why some are picked up immediately and others are not? 

Many thanks in advance.
Kind regards
Sven V. 

*This post is locked for comments

  • skhan Profile Picture
    skhan 120 on at
    RE: Emails arrive days later before arriving in CRM with Server-Side Sync

    Dear Sven, Were you able to resolve it?

    we are having the same issue but only with 1 Mailbox. Email are received after 1 day in that mailbox and there are no errors.

    I have also enabled CRM tracing but there are no related errors.

  • skhan Profile Picture
    skhan 120 on at
    RE: Emails arrive days later before arriving in CRM with Server-Side Sync

    Dear Sven, Were you able to resolve it?

    we are having the same issue but only with 1 Mailbox. Email are received after 1 day in that mailbox and there are no errors.

    I have also enabled CRM tracing but there are no related errors.

  • SunilJ Profile Picture
    SunilJ 10 on at
    RE: Emails arrive days later before arriving in CRM with Server-Side Sync

    Dear, Currently one of my client facing same issue posted by Sven. If any one got the solution of this issue please reply. It would be great help. CRM v. 8.2.xxx on-premise  Thank you.

  • Sven Vervynckt Profile Picture
    Sven Vervynckt 112 on at
    RE: Emails arrive days later before arriving in CRM with Server-Side Sync

    We've updated the CRM server with Windows Updates, to upgrade the CRM server to 8.2.3.
    Then we enabled the dashboard for "Server-Side Synchronization Failures" in DEV and TEST but there was nothing there indicating there are were any issues.
    We didn't check the production environment yet (because we would need to install windows updates first), as we are planning a CRM upgrade to v9.
    As soon as we have upgraded our environment I will update this post.

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Emails arrive days later before arriving in CRM with Server-Side Sync

    Hi

    The delays mostly likely caused by Server Side Sync issue, i have come across other users reporting same issue, emails sent or received days after.

    Could you enable Server-Side Sync failures dashboards, and use both SSS failure and monitoring dashboard and see if it surfaces error.

    You could have your Sys Admin team monitoring these dashboards on a regular basis to make sure actions are taken sooner for failed emails

    support.microsoft.com/.../troubleshoot-item-level-server-side-synchronization-issues-with-dynami

    docs.microsoft.com/.../troubleshooting-monitoring-server-side-synchronization

    community.dynamics.com/.../311976

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans