Skip to main content

Notifications

Dynamics 365 general forum

Error connecting Dynamics 365 (on-prem) with Exchange Online

Posted on by 75

We are trying to connect our Dynamics 365 on prem version with exchange online.

The following steps are complete

1. IFD is done

2. Server side sync was completed successfully and tenant id being generated sucessfully. 

But when i am trying to create an email profile, i get the error which says   "The certificate used for S2S authentication is not installed"

Can you please let me know what i am missing?

When i try to do "Test Connection" it fails as well. Below is the error trace i get

*********************
Message from 365::
*********************
Aquiring Token from ACS has failed. Please check if your tenantId is specified correctly in your Email Server Profile, and make sure your Exchange and CRM are under the same tenant

  • Suggested answer
    JaydenPerez17 Profile Picture
    JaydenPerez17 112 on at
    Error connecting Dynamics 365 (on-prem) with Exchange Online
    Hi Sudeep and whomever comes across this issue seeking hope.
     
    I have been bashing my head against the wall encountering the same symptoms and the documentation led me around the bend.
     
    In my case the solution happened to be a quite simple one, found the answer here: 
     
     
    The kicker in our case required the Certificate being used in IFD to be installed on the servers running the Async service, effectively any servers running Backend Roles.
     
    Import the certificate, Restart the Async services (Production and Maintenance), Test Connection success immediately.
     
    If that helps anyone i'm glad, it was a frustrating one.
     
    Good hunting,
     
    Jayden.
     
  • TheErroristt Profile Picture
    TheErroristt 35 on at
    RE: Error connecting Dynamics 365 (on-prem) with Exchange Online

    Anyone succeeded to fix this issue??

  • Romulo Duarte Profile Picture
    Romulo Duarte 10 on at
    RE: Error connecting Dynamics 365 (on-prem) with Exchange Online

    Were you successful, my friend?

  • Romulo Duarte Profile Picture
    Romulo Duarte 10 on at
    RE: Error connecting Dynamics 365 (on-prem) with Exchange Online

    Hi, how are you?
    did anyone manage to solve it? I am also having the same problem!

  • Sudeep Profile Picture
    Sudeep 75 on at
    RE: Error connecting Dynamics 365 (on-prem) with Exchange Online

    Yes. Checked those ones as well. But did not work.

  • Suggested answer
    Andreas Cieslik Profile Picture
    Andreas Cieslik 9,265 on at
    RE: Error connecting Dynamics 365 (on-prem) with Exchange Online

    Have you checked this:

    community.dynamics.com/.../276990

    community.dynamics.com/.../207762

  • Sudeep Profile Picture
    Sudeep 75 on at
    RE: Error connecting Dynamics 365 (on-prem) with Exchange Online

    Andreas,

    I used the exact same link you provided to perform all the steps. All the steps were success till the step where it tells me to create an email profile. On that window i get an error as attached. Also when i try to test the connection all 3 points fail as attached. 

    Test-Connection.jpg

    Test-Connection.jpg

  • Andreas Cieslik Profile Picture
    Andreas Cieslik 9,265 on at
    RE: Error connecting Dynamics 365 (on-prem) with Exchange Online

    Looks like you missed a step along the way in your configuration...

    There is an excellent guide here:

    us.hitachi-solutions.com/.../setup-dynamics-365-server-side-synchronization-premise-exchange-online

    versus the official guide:

    technet.microsoft.com/.../mt703269.aspx

    Please review your steps.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans