ADF Pipeline fails in trigger mode with error: no client credentials user enabled"},Source=Microsoft.Connectors.Salesforce,, but runs successfully in debug mode
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?