简体   繁体   中英

Can't connect to Salesforce With Google Data Fusion

Trying to configure the salesforce connector to read data from salesforce using Google Data Fusion, but can't connect to Salesforce.

I keep getting "Connection to salesforce with plugin configurations failed" error message when hitting the "get schema" button on the connector. My guess is that this related to my salesforce connected app, but can't really tell. Is it related to the callback URL setting in the connected app? Did anyone succeed connecting to Salesforce using Data fusion?

It looks like the error is coming from https://github.com/data-integrations/salesforce/blob/abc563938e837b3bcfc42dbd4b26c0c6ef347451/src/main/java/io/cdap/plugin/salesforce/authenticator/Authenticator.java#L57 .

Unfortunately it looks like the error message doesn't include anything from the root cause, but most likely it's failing during the oauth login, which makes a POST request to: [login url]?grant_type=password&client_id=[client id]&client_secret=[client secret]&username=[username]&password=[password]

You could try making that request manually and see if you get an error back.

I was getting the same error, but I managed to solve it.

First things first, even though the Security Token is optional, I did not manage to make it work without it.

Apparently, depending on how your Salesforce instance is configured, if your password is mypassword, and your security token is XXXXXXXXXX, then the plugin uses mypasswordXXXXXXXXXX during the authentication.

Secondly, and most important, for the login URL field, this field is the oauth2 url. Therefore where before I was putting https://test.salesforce.com , I had to put https://test.salesforce.com/services/oauth2/token . With this final step, it worked. Below a screenshot of the field.

在此处输入图片说明

Has anyone had luck connecting Salesforce with Google Cloud Data Fusion yet? I'm looking for a guide if anyone has written one out.

I have questions like: - do I need an API user set up in Salesforce (or can I use my normal admin account) - What is the best "Call Back URL" which is asked during the installation.

I keep getting errors:

Error encountered while configuring the stage: 'Connection to salesforce with plugin configurations failed'

on the cloud Fusion side when configuring the Salesforce plugin (Data Fusion Studio > Hub > Salesforce > add to the canvas > Tap to configure Salesforce > Add Authentication details > Validate)

Anyone have any good insights? Thanks! ~T

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM