连接到Salesforce Marketing Cloud使用ADF时出现连接失败。

huangapple go评论105阅读模式
英文:

Connection failure to Salesforce Marketing Cloud using ADF

问题

我们想要使用Azure数据工厂的内置连接器从SFMC获取数据。

连接器需要两个参数:客户端ID客户端密钥。负责SFMC的团队已经提供了这些值,但当我尝试使用它们时,出现了错误:

身份验证失败:从身份验证服务器接收到的响应格式错误,不包括下一个身份验证步骤所需的以下参数:"Auth_AccessToken",位于服务器响应中的"accessToken";"Auth_expires",位于服务器响应中的"expiresIn"。

SFMC开发团队不知道问题出在哪里。我们也提出了Salesforce帮助请求,但他们也不知道问题出在哪里。

编辑-1

我使用了这里的示例创建了一个POST请求,我得到了响应,其中我可以看到access_tokenexpires_in。但ADF正在寻找accessTokenexpiresIn

英文:

We want to ingest data from SFMC using the in-built connector from Azure Data Factory.

The connector needs two things: client ID and client secret. The team managing SFMC has given me these values but when I try the, I get an error:

Authentication failed: Malformed response received from the authentication server that does not include the following required parameters for the next authentication step: "Auth_AccessToken" located at "accessToken" from the server response; "Auth_expires" located at "expiresIn" from the server response.

The SFMC dev team does not what the problem is. We have also raised Salesforce help ticket but they don't know what the problem is either.

EDIT-1

I created a POST request using an example here and I am getting the response where I can see access_token and expires_in. But ADF is looking for accessToken and expiresIn.

答案1

得分: 1

根据MS文档中的描述:

"Salesforce Marketing Cloud连接器支持OAuth 2身份验证。它是基于Salesforce Marketing Cloud REST API构建的。"

只需在ADF连接器中设置客户端ID和客户端密钥,这些信息可以从Marketing Cloud | Installed Packages获取。请参考此链接:您无需Marketing Cloud用户来调用API,但在Installed Packages中创建API集成时需要Marketing Cloud用户。Marketing Cloud用户必须具有Installed Package | Administer权限。

根据您的问题,似乎访问令牌生成失败。您需要检查上述步骤或ADF的Installed Packages的Admin Permission设置。更多详情,请参考:

  1. https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/your-subdomain-tenant-specific-endpoints.htm

  2. https://developer.salesforce.com/docs/atlas.en-us.mc-app-development.meta/mc-app-development/install-packages.htm

英文:

Based on the statement in the MS doc:

> The Salesforce Marketing Cloud connector supports OAuth 2
> authentication. It is built on top of the Salesforce Marketing Cloud
> REST API.

Only client id and client secret need to be set in the ADF connector which is obtained from Marketing Cloud | Installed Packages. Please refer to this link: You do not need a Marketing Cloud user to call the APIs, but you do need a Marketing Cloud user when creating an API integration in Installed Packages. The Marketing Cloud user must have the Installed Package | Administer permission.

According to your issue,it seems that the generation of access token fails.You need to check the above steps or settings of Admin Permission of Installed Packages for ADF.More details,please refer to:

1.https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/your-subdomain-tenant-specific-endpoints.htm

2.https://developer.salesforce.com/docs/atlas.en-us.mc-app-development.meta/mc-app-development/install-packages.htm

huangapple
  • 本文由 发表于 2020年1月4日 01:21:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/59582745.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定