I have just migrated a Dynamics 365 8.2 Organization (On-Premise) to a new server with Dynamics 365 v.9 (upgrade during import of organization). This Organization also has a SharePoint (2016 On-Premise) integration, but the SharePoint server is staying as it is. I was hoping to get the SharePoint site / integration validated on the new Dynaics 365 server, but that seems to not work. I have followed the same guide as I did on the old server: https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/administering-dynamics-365/dn949332(v=crm.8)?redirectedfrom=MSDN
I have verified and gone though the Microsoft documentation several times. Checked permissions, certificates etc and everything seems to be normal. But when I try to validate the SharePoint site I get the following error message:
I cant find any error messages in the event log on either Dynamics 365 server or the SharePoint server, but when I enabled tracing on the Dynamics 365 server I get this error message in the log:
>Crm Exception: Message: Failed to connect to SharePointSite., ErrorCode: -2147088543, InnerException: Microsoft.Crm.CrmException: Failed to connect to SharePointSite.
at Microsoft.Crm.ObjectModel.SharePointManagedApiWrapper.GetClientContext(Uri sharePointSite, Boolean addClaims)
at Microsoft.Crm.ObjectModel.SharePointDataProcessor.Setup(String siteUrl, String documentLocation, String referencedEntity, ExecutionContext userContext)
at Microsoft.Crm.ObjectModel.SharePointDataProcessor.ValidateSharePointFolder(String[] folderUrls, List`1 locationId, Int32 parentType, ExecutionContext context)
at Microsoft.Crm.ObjectModel.SPCommands.ValidateUrl.execute()
at Microsoft.Crm.ObjectModel.SharePointSDKGlobalExecutor`1.execute()
[2020-11-18 16:52:39.122] Process: w3wp |Organization:c2529bf4-6d41-49e1-9a8b-6fc2f401097d |Thread: 20 |Category: Platform |User: 70054d77-9a10-e811-80d1-0050569c4ec3 |Level: Error |ReqId: 6d624ed5-8eaa-44da-8e4b-c9a9475a9169 |ActivityId: 27908da9-6c59-43f2-bdb9-a033e4163ea2 | MessageProcessor.Execute ilOffset = 0x237
>MessageProcessor fail to process message 'ValidateUrl' for 'sharepointdocument'.
[2020-11-18 16:52:40.773] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 16(MSCRM:-NotificationManager.NotificationWatcherThreadProc) |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 |ActivityId: 0092c4e0-114b-4e4e-882a-6ddbd12f3364 | <>c__DisplayClass8_0.<ProcessQueue>b__0 ilOffset = 0x2B
Any help with this problem is very much appreciated :-)