Emails aren't automatically tracked or synchronized using server-side synchronization

This article provides troubleshooting information for email synchronization issues when you use server-side synchronization in Microsoft Dataverse.

Common causes

When emails fail to synchronize to Dataverse, it is often due to one of these reasons:

  • A failure occurs when processing the email due to a customization (plugin or workflow) error in Dataverse.
  • No known Dataverse users or email queue recipients automatically accept the email based on their incoming email filtering method configurations.
  • The Dataverse user who owns the receiving mailbox or queue record doesn't have a license or sufficient privileges to synchronize emails. Learn more about the required privileges for email synchronization.
  • The received email isn't in the root Inbox of the target mailbox. Emails must remain in the root Inbox until they're tracked. Moving emails between folders can cause server-side synchronization to omit them.
  • The mailbox isn't properly configured in the remote email system (Microsoft Exchange or Google Gmail), or there are connectivity issues between the mailbox and the remote email system. Configuration and connectivity errors can be found on the mailbox alert wall.

Troubleshoot using the "Server-Side Synchronization Item Level Monitoring" dashboard

You can use the Server-Side Synchronization Item Level Monitoring dashboard to understand why emails, appointments, contacts, and tasks aren't synchronized.

To get troubleshooting information in the Server-Side Synchronization Item Level Monitoring dashboard:

  1. In Microsoft Dataverse, go to the Email Configuration area, and then select the Server-Side Synchronization Item Level Monitoring navigation link.

    Screenshot that shows how to open the Server-Side Synchronization Item Level Monitoring dashboard.

    Note

    Dashboard failures are visible to the user who owns the mailbox or a user who has the out-of-the-box System Administrator security role.

  2. The Sync Error column contains information about why an item didn't synchronize. Selecting the link directs you to an article about the error, if available. For example:

    • This screenshot shows a "Question about service" email that isn't automatically tracked due to an IsvAborted error that occurs during processing. This error indicates a failure within a plugin or workflow that needs to be addressed by the solution owner.

      Screenshot that shows an IsvAborted error in a Question about service email.

    • This screenshot shows a "Can we meet tomorrow?" email that isn't automatically tracked due to a NoCorrelationMatch error. This error occurs because none of the resolved (known) Dataverse email recipients automatically accept the email based on their personal option settings.

      Screenshot that shows a NoCorrelationMatch error in a Can we meet tomorrow email.

Troubleshoot using mailbox alerts

Review mailbox alerts in the target Dataverse recipient's mailbox to identify and address synchronization issues and processing errors.

To get the information:

  1. In the Power Platform admin center, select an environment.

  2. Select Settings > Email > Mailboxes.

  3. Open the affected mailbox record, and then on the left navigation bar, under Common, select Alerts.

    Screenshot that shows the Alerts section in mailbox settings.

For example, the following alert message indicates that emails can't be processed due to an error in the "1 Test" custom workflow.

Starting sync workflow '1 Test', id:<ID> Entering UpdateStep1_step:
Sync workflow '1 Test' terminated with error 'Entity 'Contact' With Id = <ID> Does Not Exist'

Screenshot that shows an alert message indicating that emails can't be processed due to an error in a custom workflow.

A closer examination of the error reveals that the workflow was trying to set a contact that no longer existed in the system, thus causing the email creation to fail.

Specific emails aren't automatically tracked

Emails in the Inbox folder are automatically tracked by server-side synchronization into Dataverse if any of the resolved (known) users or email queue recipients accept them based on their incoming email filtering method configurations. For more information, see Set personal options that affect tracking and synchronization between customer engagement apps and Outlook or Exchange.

To narrow down why an email might not be automatically tracked, check each of the following:

  1. For the email in question, ensure the email is in the Inbox folder of the target Dataverse mailbox. Emails outside the Inbox folder can't be processed, even if they're moved back to the Inbox later.

    • If you want to reprocess an email that was moved back to the Inbox folder, you can reset the processing date (ProcessEmailsReceivedAfter) on the Dataverse mailbox record. This action allows server-side synchronization to discover and process the email. The details are outlined in the Note section of this best practices page.
    • If you want to automatically track email responses sent from Outlook (in your Sent Items folder), see Outlook replies aren't automatically synchronized.
    • If you want to track emails that were moved to subfolders, you need to enable Folder-Based tracking.
  2. Examine the recipient email addresses in the To: and Cc: lines and ensure that at least one of them is associated with a Dataverse mailbox, which is tested and enabled for server-side synchronization and is configured to automatically track the email based on its associated incoming email filtering method. If the email is sent to a distribution group or has a Bcc recipient, refer to the topic below to ensure that the underlining Dataverse mailbox is correctly configured.

  3. Ensure that the recipient email addresses in Exchange or Gmail match the corresponding email address of the Dataverse user or queue mailbox.

Emails to distribution groups and BCC recipients aren't automatically tracked

Dataverse will resolve the recipient email addresses on the email to known Dataverse users or queue records. If the recipient email addresses include a distribution group or Bcc recipients, Dataverse can't resolve these recipients to known Dataverse users or queues.

Resolution

To automatically track emails that are addressed to distribution groups or Bcc recipients, set up the underlining Dataverse user or queue mailbox that receives the email to accept All Email Messages. For more information, see Set personal options that affect tracking and synchronization between customer engagement apps and Outlook or Exchange.

Emails assigned the Undeliverable category in Exchange

Cause

When server-side synchronization processes an email but can't create an email activity record in Dataverse, the "Undeliverable" category is assigned to the email. This issue typically occurs due to a custom plugin, workflow failure, or privilege issue when processing the email. Privilege issues usually occur when the user who owns the receiving mailbox or queue doesn't have sufficient privileges to synchronize the email records.

Screenshot that shows an email that is assigned to the Undeliverable category.

Resolution

To solve this issue, review the the required privileges for email synchronization and ensure the required privileges are set up.

You can review information about failed emails by inspecting the Server-Side Synchronization Item Level Monitoring dashboard.

Outlook replies aren't automatically synchronized

Ensure that the synchronization settings are correctly configured for Outlook replies. An administrator can configure the AutoTrackSentFolderItems value of OrgDBOrgSettings. This action will enable server-side synchronization to process emails in the Sent Items folder in Exchange and automatically track reply emails to Microsoft Dynamics 365 by honoring the email acceptance options in Set Personal Options.

Important

  • Automatic tracking of sent items is disabled by default, and you must enable it by configuring the AutoTrackSentFolderItems value in OrgDBOrgSettings.
  • Enabling tracking for sent items is only supported with a Microsoft Exchange mailbox.

For more information, see Automatically track sent folder items with server-side synchronization.

More information

Incoming emails are unexpectedly synchronized or contain unexpected or missing data