0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Azure Data Factory にて Salesforce コネクターを利用してコピーアクティビティを実施する際の client credentials flow not enabled エラーへの対応方法

Last updated at Posted at 2024-06-23

概要

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 クライアントログイン情報フローによる認証が必要なようです。

image.png

引用元:Salesforce と Salesforce Service Cloud コネクタのトラブルシューティング - Azure Data Factory & Azure Synapse | Microsoft Learn

OAuth 2.0 クライアントログイン情報フローによる認証については、下記の Salesfoce ドキュメントにてご確認ください。

エラーの再現方法

Salesforce にて Enable Client Credentials Flowクライアントログイン情報フローを有効化)の設定を無効化した接続情報を作成

image.png

リンクサービスのテスト接続でエラーとなることを確認

リンクサービスからテスト接続した際に、エラーとなることを確認。

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"}

image.png

Azure Data Factory にて Salesfoce コネクターを利用したコピーアクティビティのパイプラインを実行してエラーとなることを確認。

image.png

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,'

image.png

対応方法

Salesforce にてEnable Client Credentials Flowクライアントログイン情報フローを有効化)の設定を有効化

image.png

Azure Data Factory にてパイプラインを実行して正常終了することを確認

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?