Share via

ADF pipeline to Salesforce fails in Trigger mode, but runs in Debug mode

SW 20 Reputation points
2025-03-20T13:05:06.4766667+00:00

I have an ADF Pipeline that is connected to Salesforce. It runs fine in debug mode. But when I trigger it, it fails with user credential error: Failure happened on 'Source' side. ErrorCode=SalesforceOAuth2ClientCredentialFailure,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Unable to establish connection to the Salesforce environment using provided client id and client secret, please verify the details. Error message: {"error":"invalid_grant","error_description":"no client credentials user enabled"},Source=Microsoft.Connectors.Salesforce,'

I am running from the Master branch, and I do not have any local branch. In other words, published branch is the same as the Master. So why this error?

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.

0 comments No comments

Answer accepted by question author

  1. Venkat Reddy Navari 5,840 Reputation points Microsoft External Staff Moderator
    2025-03-20T15:03:07.6966667+00:00

    Hi @SW

    It looks like you're facing issues while setting up a new linked service for Salesforce in Azure Data Factory. Since Salesforce has transitioned from username-password authentication to client ID and client secret, the error message suggests there might be an issue with the credentials you entered.

    To resolve this issue, please follow the steps below:

    • Make sure that you have created a connected app in Salesforce and obtained the client ID and client secret. If you have not done so, please follow the instructions in this Salesforce documentation to create a connected app.

    enter image description here

    • In Azure Data Factory, create a new linked service for Salesforce.
    • Configure the service details, test the connection, and create the new linked service. Enter the client ID and client secret that you obtained from Salesforce in the corresponding fields and save the linked service and test the connection.

    Screenshot of linked service configuration for Salesforce.

    • The following properties are supported for the Salesforce linked service.

    enter image description here

    For more details, refer to Copy data from and to Salesforce using Azure Data Factory or Azure Synapse Analytics.

    If you are still unable to establish a connection, please double-check that the client ID and client secret are correct and that the connected app has the necessary permissions to access the Salesforce environment. If you continue to experience issues, please let me know and I will do my best to assist you further.

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.