ADF Pipeline fails in trigger mode with error: no client credentials user enabled"},Source=Microsoft.Connectors.Salesforce,, but runs successfully in debug mode

SW 20 Reputation points
2025-03-18T17:12:02.85+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.
{count} votes

Your answer

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