on 03-15-2022 3:15 PM
Hi All,
I am trying to connect Salesforce (REST API) from SAP CPI through Rojo Salesforce adapter. The connected app was created in Salesforce and the respective credential details from salesforce was given below was configured in CPI.
1.Username & Password : (saved as user credential type in CPI security material)
2.Security Token : (saved as secure parameter type in CPI security material)
3.Consumer key and Consumer Secret : (saved as user credential type in CPI security material)
But we are getting the below error in CPI :
org.apache.camel.CamelException: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<array>
<error>invalid_grant</error>
<error_description>authentication failure</error_description>
</array>
Does anyone face the similar issue and let us know the resolution ?
Thanks,
Suresh
Hi Sapians,
I have identified that the error message "Invalid grant" may be caused by an error in the configuration or a mismatch of credentials or URL.
To resolve this issue, please take note of the following suggestions:
1. If you are connecting to a sandbox or non-production Salesforce instance, please use the URL "https://test.salesforce.com".For production, please use "https://login.salesforce.com".
2. Please ensure that no value is passed to the "Security Token Alias" field if there are no IP blockages from Salesforce's end.
I trust that these recommendations will help resolve the issue at hand. If you require any further assistance, please do not hesitate to reach out to me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suresh,
Did you get the solution. I also facing same error.
Regards
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
11 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.