cancel
Showing results for 
Search instead for 
Did you mean: 

Salesforce API skills; Error in "GetTokenActive" in authenticate credential process

NavithaK
Level 3
Hi,

When I am running "GetTokenActive" step in authenticate page, I am getting the below error.
6408.png

------------------------------
Navitha K
------------------------------
15 REPLIES 15

You're talking about right here? 

6352.png
If so, can you show the definition of the Get Token Expiry stage. It should look like this:

6353.png

Lastly, what does your Salesforce Token credential definition look like?

6354.png
Ultimately, the expiry date at the top of the flow shouldn't cause a problem because it will be set lower in the flow once you have a valid authentication. Look at the stages after GetTokenActive.

Cheers,





------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------

Yeah, it is same as shown. still getting the error as invalid credentials.

------------------------------
Navitha K
------------------------------

I'm about out of ideas. Ultimately the error response is being returned from Salesforce.com, so we know you're getting there. However, Salesforce doesn't like the credentials you're providing. You are getting an HTTP 200 response from the Authenticate stage, just before GetTokenActive, correct? And the values for Response Content, SFDC Access Token, and Instance URL data items are being populated?

6363.png


------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------

Hi I was fighting with this issue few weeks later, and this setting works form me, maybe it will help you:

Use 2 credentials:
  • Salesforce Authentication (for password and username)(GRANT):

6370.png
*Consumer Key and Consumer Secret you can find in SF under your API Account

  • Salesforce Token (for secured tokens from SF) (TOKEN):
6371.png
*this works only as temp envelop for saving Expiry and Instance URL params, no credentials (username and password) set in this

In Web API  - Salesforce authentication check this setting on "Common Authenticatiuon" - there must be set Credentilas where you have stored Expiry and Instance URL - In my case its named Salesforce Token UAT
6372.png
In process:
1. Authenticate

6373.png
6374.png
2. Get Active Token

6375.png
6376.png
Sorry for long post, but sometimes picture can say more then words.

Jan

------------------------------
Jan Čech
Senior RPA Specialist
VWFS
Europe/London
------------------------------

Hi,

Thank you for your response.
In additional to the above settings you have mentioned, I have checked the expires in salesforce grant and salesforce token.

6383.png
After checking that in credentials, the process is running successfully without error.


------------------------------
Navitha K
------------------------------

Thank you Wilson and Jan for your responses

------------------------------
Navitha K
------------------------------