Salesforce sandbox connection issue with OAuth JWT Flow

Problem Description

Salesforce OAuth authentication to https://test.salesforce.com, when using JWT Flow, fails with the following error message:

01:SFA_SalesForceInitialConnection_Check: Begin(Development) TalendPid:wcZfcN RunID:null
Paste this URL into a web browser to authorize access:
https://test.salesforce.com/services/oauth2/authorize?response_type=code&redirect_uri=https%3A%2F%2F...
Exception in component tSalesforceConnection_1 (SFA_SalesForceInitialConnection_Check)
java.lang.RuntimeException: RuntimeException: OAuthProblemException{error='invalid_grant', description='invalid authorization code', uri='null', state='null', scope='null', redirectUri='null', responseStatus=0, parameters={}}

 

Root Cause

Talend does not support sandbox audience in this version of the tSalesforceConnection component. So, you can't connect to a sandbox instance using the JWT Flow.

 

Solution

To resolve this issue, request the Patch_20190401_TPS-2945_v1_7.0.1 file from Talend Support. This is permanently fix in Talend 7.2.1.

 

Workaround

Use the other two available authentication methods Basic or OAuth (Implicite) to connect to Sandbox.

Version history
Revision #:
4 of 4
Last update:
‎04-18-2019 09:34 AM
Updated by: