Forum Discussion

saisantosh25's avatar
saisantosh25
New Contributor II
8 years ago

Salesforce_snap

Hi ,

I ma trying to build a pipeline using salesforce snap. I just got my Trail version of salesforce instance and i am trying to login from snaplogic salesforce snap. I am getting below error .can some one pls help me on this .

Failed to validate account: Failed to login to Salesforce.com for username: saisantosh.gunda@astrazeneca.com Cause: com.snaplogic.snap.api.SnapDataException: Failed to get an access token from Salesforce.com (Reason: com.snaplogic.snap.api.SnapDataException: Failed to get an access token from Salesforce.com; Resolution: Please check your Salesforce.com credentials.)

But i am succesfully logged in the salesforce instance with same credentials through chrome. please help me out .

7 Replies

  • dmiller's avatar
    dmiller
    Former Employee

    In SnapLogic, which of the two Salesforce account types did you select and how do you have the account configured?

  • aleung's avatar
    aleung
    Contributor III

    Keep in mind logging in via login.salesforce.com isn’t exactly the same when logging in via Snaplogic. Since Snaplogic is hitting the Salesforce REST API. Depends on your Salesforce security settings, you might have to pass a security token with your credentials. In case you don’t know your security token.

    name > Setup > Personal Setup > My Personal Information > Reset My Security Token.
    OR
    You can whitelist your cloudplex or groundplex IP to omit the need to pass the security token:

    1. Go to profile detail page.(User can see ‘Login IP Ranges’ related list on Profile detail page.)
    2. Go to Login IP Ranges related list of profile.
    3. Click New button(To Enter the IP Range)
    4. Enter IP Range:

    Another possibility is that your profile doesn’t have API enable checked.

    An easy way to validate your access is to use a SOQL client like SoqlXplorer (Mac) or ForceExplorer (PC) to test your API access.

      • sanjaynayak's avatar
        sanjaynayak
        New Contributor III

        @aleung , I found some clue about account set up for sales force, right now, node I am running is groundplex not cloudplex , seems like this is the problem.

    • sanjaynayak's avatar
      sanjaynayak
      New Contributor III

      I am not getting into it , only my case snap logic is trial one!

      • aleung's avatar
        aleung
        Contributor III

        not sure I understand what you meant

  • sanjaynayak's avatar
    sanjaynayak
    New Contributor III

    I have tested below two option to connect sales force from snap logic, it didn’t work for me, not sure is it sales force or snap logic gap,
    I am able to login directly sales force by same token,

    Security token
    API enabled