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()