概要
Azure Data Factory にて Salesforce コネクターを利用してコピーアクティビティを実施する際の client credentials flow not enabled エラーへの対応方法を共有します。
{"error":"invalid_grant","error_description":"client credentials flow not enabled"}
Azure Data Factory のドキュメントにてEnable Client Credentials Flow
(クライアントログイン情報フローを有効化
)を有効化することが求められており、OAuth 2.0 クライアントログイン情報フロー
による認証が必要なようです。
OAuth 2.0 クライアントログイン情報フロー
による認証については、下記の Salesfoce ドキュメントにてご確認ください。
エラーの再現方法
Salesforce にて Enable Client Credentials Flow
(クライアントログイン情報フローを有効化
)の設定を無効化した接続情報を作成
リンクサービスのテスト接続でエラーとなることを確認
リンクサービスからテスト接続した際に、エラーとなることを確認。
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":"client credentials flow not enabled"}
Azure Data Factory にて Salesfoce コネクターを利用したコピーアクティビティのパイプラインを実行してエラーとなることを確認。
Failure happened on 'Sink' 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":"client credentials flow not enabled"},Source=Microsoft.Connectors.Salesforce,'