web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Server Side Sync with Exchange Online (hybrid)

(0) ShareShare
ReportReport
Posted on by

We have CRM 2016 on premise.  I am trying to configure SSS with Exchange Online hybrid.  I have already added the Dynamics 365 hybrid connector to our 365 account.  I am following the guide from Microsoft seen here: https://docs.microsoft.com/en-us/dynamics365/customer-engagement/on-premises/connect-dynamics-365-on-premises-exchange-online

Everything works until the last section of powershell commands, seen here:

$organizationName = “OrganizationName”
$CRMContextId = “ExchangeOnlineTenantId”
$orgInfo = Get-CrmOrganization -Name $organizationName
$ID = $orgInfo.id 

    if($ID)
        {
          Set-CrmAdvancedSetting -ID $orgInfo.ID -configurationEntityName "Organization" -setting "S2STenantId" -value $CRMContextId
        }


Changing "OrganizationName" to match my on prem CRM organization name, obviously.  When running this code, I receive an error:

Set-CrmAdvancedSetting : Source : mscorlib
Method  : HandleReturnMessage
Date    : 9:25:49 AM
Time    : 6/14/2019
Error   : Message: The Deployment Service cannot process the request because one or more validation checks failed.
ErrorCode: -2147167645
Stack Trace     :
======================================================================================================================
Inner Exception Level 1 :
==DeploymentServiceFault Info==========================================================================================
Error   : The Deployment Service cannot process the request because one or more validation checks failed.
Time    : 6/14/2019 2:25:49 PM
ErrorCode       : -2147167645
Date    : 9:25:49 AM
Time    : 6/14/2019
Error Items:
        VerifyAllSpecifiedAtributesAreWritable raising error : One or more of the specified attributes are not valid fo

update:  S2STenantId
======================================================================================================================
At line:3 char:3
+   Set-CrmAdvancedSetting -ID $orgInfo.ID -configurationEntityName "Or ...
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (Microsoft.Crm.P...AdvancedSetting:SetCrmAdvancedSetting) [Set-CrmAdvancedS
   etting], FaultException`1
    + FullyQualifiedErrorId : CRM Deployment Cmdlet Error,Microsoft.Crm.PowerShell.SetCrmAdvancedSetting


I cannot find any info on Microsoft's website as to what this error means or what to do about it.

I also found another guide, seen here: https://blog.apex.it/2016/09/how-to-connect-dynamics-crm-2016-on-premise-to-exchange-online/

The script ConfigureCrmServerSideSync.ps1 does not exist anywhere that I can find, so this guide was not useful.

*This post is locked for comments

I have the same question (0)
  • Joe Woltering Profile Picture
    12,163 on at

    One of the guides from this page should point you in the right direction.

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

    The scripts you need to run, including the CertificateReconfiguration.ps1 script can be found in the Tools folder under the CRM install directory on your server.

    Most likely the error you are getting is because you haven't run that script yet.

  • bpoindexter Profile Picture
    on at

    I, in fact, did run CertificateReconfiguration.ps1 already.

  • Lvinay Profile Picture
    35 on at

    Hi, 

    I am getting the same issue.

    If you have been able to get a solution, plz share.

    many thanks

  • Suggested answer
    Dan30383 Profile Picture
    5 on at

    For anyone else who requires the solution to this, it was to do with CRM 2016 being the RTM version.  I upgraded to Service pack 1.1, which then gives you the option to create an Exchange Online (Hybrid) email profile.  At this point the script will work fine, as it's trying to populate the Exchange Online tenant ID within CRM, which will only be a valid field once the Exchange Online (Hybrid) profile exists.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans