Asked by:
CRM integration with Dynamics Marketing

Question
-
Hello,
I'm trying to integrate MS Dynamics CRM 2015 Online with MS Dynamics Marketing.
Integration works for MDM -> CRM
When I created Contact in MDM it appeard in CRM.
Integration don't work for CRM -> MDM
When I created Contact in CRM it didn't appear in MDM.
The case is when I'm trying manually synchronize by Run Initial Sync in MDM everything is OK . Only automatic synchronization in CRM don't work. In system job I can see error:
The token provider was unable to provide a security token while accessing 'https://mdm-41d8005f-9ca5-431c-a649-3710976d13fa-sb.accesscontrol.windows.net/WRAPv0.9/'. Token provider returned message: 'Error:Code:401:SubCode:T0:Detail:ACS50008: SAML token is invalid.:TraceID:12c27bbe-cbec-481f-87fd-e8d39bd52dbd:TimeStamp:2015-07-21 09:49:56Z'.
Plugin Trace:
[Microsoft.Crm.ServiceBus: Microsoft.Crm.ServiceBus.ServiceBusPlugin]
[97e7e06c-892f-e511-80da-3863bb3610e8: crm2mdm: Update of contact]
Error Message:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: The token provider was unable to provide a security token while accessing 'https://mdm-41d8005f-9ca5-431c-a649-3710976d13fa-sb.accesscontrol.windows.net/WRAPv0.9/'. Token provider returned message: 'Error:Code:401:SubCode:T0:Detail:ACS50008: SAML token is invalid.:TraceID:12c27bbe-cbec-481f-87fd-e8d39bd52dbd:TimeStamp:2015-07-21 09:49:56Z'.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147204747</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>The token provider was unable to provide a security token while accessing 'https://mdm-41d8005f-9ca5-431c-a649-3710976d13fa-sb.accesscontrol.windows.net/WRAPv0.9/'. Token provider returned message: 'Error:Code:401:SubCode:T0:Detail:ACS50008: SAML token is invalid.:TraceID:12c27bbe-cbec-481f-87fd-e8d39bd52dbd:TimeStamp:2015-07-21 09:49:56Z'.</Message>
<Timestamp>2015-07-21T09:49:56.5958228Z</Timestamp>
<InnerFault>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>The token provider was unable to provide a security token while accessing 'https://mdm-41d8005f-9ca5-431c-a649-3710976d13fa-sb.accesscontrol.windows.net/WRAPv0.9/'. Token provider returned message: 'Error:Code:401:SubCode:T0:Detail:ACS50008: SAML token is invalid.:TraceID:12c27bbe-cbec-481f-87fd-e8d39bd52dbd:TimeStamp:2015-07-21 09:49:56Z'.</Message>
<Timestamp>2015-07-21T09:49:56.5958228Z</Timestamp>
<InnerFault>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>The token provider was unable to provide a security token while accessing 'https://mdm-41d8005f-9ca5-431c-a649-3710976d13fa-sb.accesscontrol.windows.net/WRAPv0.9/'. Token provider returned message: 'Error:Code:401:SubCode:T0:Detail:ACS50008: SAML token is invalid.:TraceID:12c27bbe-cbec-481f-87fd-e8d39bd52dbd:TimeStamp:2015-07-21 09:49:56Z'.</Message>
<Timestamp>2015-07-21T09:49:56.5958228Z</Timestamp>
<InnerFault>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d5p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>The remote server returned an error: (401) Unauthorized.</Message>
<Timestamp>2015-07-21T09:49:56.5958228Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<TraceText i:nil="true" />
</InnerFault>
<TraceText i:nil="true" />
</InnerFault>
<TraceText>[Microsoft.Crm.ServiceBus: Microsoft.Crm.ServiceBus.ServiceBusPlugin]
[97e7e06c-892f-e511-80da-3863bb3610e8: crm2mdm: Update of contact]
</TraceText>
</OrganizationServiceFault>
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Crm.ServiceBus.IRouterContract.Execute(RemoteExecutionContext context, ServiceBusEndpointInformation endpointInfo)
at Microsoft.Crm.ServiceBus.RouterClient.ExecuteInternal(RemoteExecutionContext context, ServiceBusEndpointInformation endpointInfo)
at Microsoft.Crm.ServiceBus.RouterClient.Execute(RemoteExecutionContext context, ServiceBusEndpointInformation endpointInfo)
at Microsoft.Crm.ServiceBus.ServiceBusService.Dispatch(ServiceBusEndpointInformation endpointInfo, IExecutionContext context)
at Microsoft.Crm.ServiceBus.ServiceBusService.PostInternal(String assemblyName, EntityReference serviceEndpoint, Boolean validateOnly, IExecutionContext context)
at Microsoft.Crm.ServiceBus.ServiceBusPlugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Asynchronous.V5ProxyPlugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Asynchronous.EventOperation.InvokePlugin(AsyncExecutionContext context, IPlugin pluginInstance)I'm using service bus queues managed by MS Dynamics Marketing. Anyone knows what's wrong?
Regards,
Paul
- Edited by Pablopavo Tuesday, July 21, 2015 10:03 AM
Tuesday, July 21, 2015 10:03 AM
All replies
-
Hi Paul,
Did you ever manage to resolve this issue?
If so could you please let me know, i have been facing the same issue without any resolution so far!
Regards,
Shahmoon
Wednesday, September 2, 2015 8:38 AM