Sitecore Connect™ 1.0 software for Salesforce Marketing Cloud” installation on Sitecore 9.1 update 1 Issue

Hi,

I am facing issue during “Sitecore Connect™ 1.0 software for Salesforce Marketing Cloud ”installation.

I am trying to install it on sitecore 9.1 update 1.  Push button is present on Developer Tab.  

 

 I had reconfigured setting  on Sitecore.Connector.Sfmc.config present at "C:\inetpub\wwwroot\SitecoreSF.sc(my instance)\App_Config\Modules\Connector.Sfmc" as below .

 

Settings :--

<setting name="Sfmc.TokenEndpointUri" value="https://*****************.auth.marketingcloudapis.com/v2/token" />

<setting name="Sfmc.AssetEndpointUri" value="https://****************.marketingcloudapis.com/asset/v2" />

<setting name="Sfmc.TagEndpointUri" value="https://*****************.marketingcloudapis.com/v2/tags" />

 

Connection String As below :-

 

  <add name="Sfmc.ClientId" connectionString="************" />  

  <add name="Sfmc.ClientSecret" connectionString="****************"/>

 

Client Id And ClientSecrect taken from sales force marketing cloud( Integration Type - Server-to-Serve).  Try SFMC provided client id and secret on postman, it returns token.

 

 

But when push media button through Sitecore it return error in log file as below :-

 

3444 12:08:39 INFO  [SFMC Connector] PushCommand starting

3444 12:08:39 INFO  [SFMC Connector] PushCommand finished

1624 12:08:39 INFO  [SFMC Connector] Crawler starting.

1624 12:08:39 INFO  [SFMC Connector] Requesting a new access token.

4900 12:08:40 ERROR [SFMC Connector] An error occurred in Crawler thread

Exception: System.AggregateException

Message: One or more errors occurred.

 

Nested Exception

 

Exception: Sitecore.Connector.Sfmc.Exceptions.CommunicationException

Message: Exception of type 'Sitecore.Connector.Sfmc.Exceptions.CommunicationException' was thrown.

Source: Sitecore.Connector.Sfmc

   at Sitecore.Connector.Sfmc.DataAccess.RestDataAccessor.<PerformRequestAsync>d__15.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Sitecore.Connector.Sfmc.DataAccess.RestDataAccessor.<ProcessRequestAsync>d__9`1.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Sitecore.Connector.Sfmc.Core.Repository.<GetAllPagesAsync>d__7`2.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Sitecore.Connector.Sfmc.Core.DefaultCrawler.<PushFoldersAsync>d__14.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Sitecore.Connector.Sfmc.Core.DefaultCrawler.<PushAsync>d__13.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Sitecore.Connector.Sfmc.Core.DefaultCrawler.<PushAsync>d__12.MoveNext()

 

Nested Exception

 

Exception: Sitecore.Connector.Sfmc.Exceptions.ErrorResponseException

Message: Unable to obtain a Salesforce access token.

HttpStatusCode: 400 BadRequest

Response: {

  "ErrorCode": 400,

  "Message": null,

  "Documentation": null,

  "RetryAfter": null,

  "ValidationErrors": []

}

Source: Sitecore.Connector.Sfmc

   at Sitecore.Connector.Sfmc.DataAccess.DefaultSecurityTokenRepository.<GetAccessToken>d__12.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Sitecore.Connector.Sfmc.DataAccess.AuthRestDataAccessor.<CreateRequestMessageAsync>d__6.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Sitecore.Connector.Sfmc.DataAccess.RestDataAccessor.<>c__DisplayClass15_0.<<PerformRequestAsync>b__0>d.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Polly.Retry.RetryEngine.<ImplementationAsync>d__1`1.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at Polly.Retry.RetryEngine.<ImplementationAsync>d__1`1.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Polly.Policy`1.<ExecuteAsync>d__34.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Polly.Policy`1.<ExecuteAndCaptureAsync>d__54.MoveNext()

3 Replies

  • Got Reply from Sitecore Support team, they confirmed that OAuth 2.0 integration is not supported in the current version of Sitecore SFMC connector since the new approach to authentication (OAuth 2.0 integration) was released by Salesforce after our latest release.

    They have registered a feature request for the product to add an OAuth 2.0 integration support so that it can be considered for future implementation.
    To track the future status of this request, use reference number 332757.

    We can’t use the legacy v1/requestToken endpoint to request tokens for OAuth 2.0 integrations with SFMC. ( developer.salesforce.com/.../integration-considerations.htm ) .
  • Got Reply from Sitecore Support team, they confirmed that OAuth 2.0 integration is not supported in the current version of Sitecore SFMC connector since the new approach to authentication (OAuth 2.0 integration) was released by Salesforce after our latest release.

    They have registered a feature request for the product to add an OAuth 2.0 integration support so that it can be considered for future implementation.
    To track the future status of this request, use reference number 332757.

    We can’t use the legacy v1/requestToken endpoint to request tokens for OAuth 2.0 integrations with SFMC. ( developer.salesforce.com/.../integration-considerations.htm ) .
  • In reply to Pankaj Jha:

    Hi Pankaj - in case you did not see Sitecore released a new version of this connector to address this issue. I had implemented a workaround and when publishing the blog post, I realized the update was released earlier this month. Also released the Behavioral Data Exchange and Content Exchange for 9.2

    Update from Sitecore - dev.sitecore.net/.../Sitecore_Connect_software_for_Salesforce_Marketing_Cloud_20.aspx

    Post regarding how to customize this yourself - ryanohara.com/.../