Error when using Salesforce connection from metadata as context variab

One Star

Error when using Salesforce connection from metadata as context variab

hi All,
I have create a metadata connection for salesforce and mysql and exporting these connection settings as context variables. 
When i conver mysql parameters, i can test the job successfully, but when i do the same with salesforce connection, i get the error below. I have check the username and password a lot of times. there are no firewall issues as well. Please suggest a resolution for this 
connecting to socket on port 3660
connected
Exception in component tSalesforceInput_2
java.lang.RuntimeException: Login failed! Please check the username,password and endpoint
at org.talend.salesforce.SforceBasicConnection.check(SforceBasicConnection.java:55)
at org.talend.salesforce.SforceBasicConnection.<init>(SforceBasicConnection.java:47)
at org.talend.salesforce.SforceBasicConnection.<init>(SforceBasicConnection.java:25)
at org.talend.salesforce.SforceBasicConnection$Builder.build(SforceBasicConnection.java:120)
at sfdc.extractsfdc_emailmessage_attachmentcopy_1_0_1.ExtractSFDC_EmailMessage_AttachmentCopy_1.tSalesforceInput_2Process(ExtractSFDC_EmailMessage_AttachmentCopy_1.java:1402)
at sfdc.extractsfdc_emailmessage_attachmentcopy_1_0_1.ExtractSFDC_EmailMessage_AttachmentCopy_1.runJobInTOS(ExtractSFDC_EmailMessage_AttachmentCopy_1.java:6432)
at sfdc.extractsfdc_emailmessage_attachmentcopy_1_0_1.ExtractSFDC_EmailMessage_AttachmentCopy_1.main(ExtractSFDC_EmailMessage_AttachmentCopy_1.java:6122)
disconnected
Seventeen Stars

Re: Error when using Salesforce connection from metadata as context variab

Open the context view of the job and check if the variables have values set. If not delete them from the job and add them again.
Next all values of context variables are depending of the actual context (if not configured there is only one: "Default"). If you have multiple contexts check if you run the job with the correct one.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download