Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Exchange server returned UnknownIncomingEmailIntegrationError -2147220891

Posted on by 350

HI, we have the following scenario:

* Dynamics 365 OnPremise Version 1612 (8.2.2.112) (DB 8.2.2.112) 

* Exchange Online in Office 365 subscription

* Dynamics 365 and Exchange Online integrated using Server Side Sync

* Mail and appointments flow seems to be working fine

A few weeks ago, some mailboxes in Dynamics 365 started to see the following alert in the Dynamics 365 log: 

An unknown error occurred while receiving email through one or more mailboxes. The system will try to receive email again later. For more information, open the associated email server profile *****.
Email Server Error Code: Exchange server returned UnknownIncomingEmailIntegrationError -2147220891 exception. 

I googled the error and found several references to items with the value 1 in CRMLinkState. Those mailboxes are not using CRM App for Outlook but in any case I used the EWS Editor for Dynamics 365 in order to find such e-mails but there are no any of them in the affected mailboxes. I double checked the e-mail profile and the Tests were performed with no error. I even tried to test and enable the mailboxes again but even though the process finishes successfully, the error is still being logged.

So, what else could be causing this error in those mailboxes. As usual, I will appreciate your guidance.

*This post is locked for comments

  • Erik42 Profile Picture
    Erik42 70 on at
    RE: Exchange server returned UnknownIncomingEmailIntegrationError -2147220891

    Exactly that worked for me too!

  • Suggested answer
    Peter Hanna Profile Picture
    Peter Hanna on at
    RE: Exchange server returned UnknownIncomingEmailIntegrationError -2147220891

    I have had that same issue. but it turns out that it were much simpler than Microsoft suggested. the owner of the mailbox record on dynamics didn't have any roles assigned.

  • Xavier Villafuerte Profile Picture
    Xavier Villafuerte 350 on at
    RE: Exchange server returned UnknownIncomingEmailIntegrationError -2147220891

    Hi Tom, mixed feelings about this. I configured again the integration but this time I managed to use other  user (not a CRM user with license) to act as the one used by the integration process. After that, I have not seen the error again however, although the mailboxes are enabled, the connection test failed. In any case, at least the e-mail flow is working.

  • TomSmelser Profile Picture
    TomSmelser 1,570 on at
    RE: Exchange server returned UnknownIncomingEmailIntegrationError -2147220891

    Xavier did you ever get a solution to this issue? We are experiencing the same. Thank you.

  • Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: Exchange server returned UnknownIncomingEmailIntegrationError -2147220891

    Hi Xavier,

    Can you try to enable CRM Platform traces at an error level? Server Side Synchronization is performed by the Async Service - so those are the logs you'd need to check.

    Additionally, you can also collect a Fiddler trace (you need to run Fiddler as the Async Service Account on the machine where the Async Service is running) - This might give you some more details on the exception.

    If that doesn't get you are step further - I suggest you reach out to MS Support as SSS is always a tricky topic - they would have better tools to diagnose & troubleshoot (Considering also that Exchange is Online)

    Hope this helps

    Radu

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans