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.

What’s New for Talend Spring ’19

Join us live for a sneak peek!

Sign up now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download