com.sforce.ws.ConnectionException: Failed to send request to https://gam.my.salesforce.com/services/Soap/u/34.0/00D0Y000001IXCh

Five Stars

com.sforce.ws.ConnectionException: Failed to send request to https://gam.my.salesforce.com/services/Soap/u/34.0/00D0Y000001IXCh

Hello People,

I am trying to establish connection with salesforce using valid credentials.

I have this error in PROD.

But same is not the case with REC.

I never have this error in REC and most often in PROD.

Please suggest a possible reason behind this error or a way to avoid this error.

Thanks

Moderator

Re: com.sforce.ws.ConnectionException: Failed to send request to https://gam.my.salesforce.com/services/Soap/u/34.0/00D0Y000001IXCh

Hello,

We need more information to address your issue.

Are you try to connect to a production or a sandbox environment? Does this error arrives immediately or do you have to wait for some seconds before?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Highlighted
Forteen Stars TRF
Forteen Stars

Re: com.sforce.ws.ConnectionException: Failed to send request to https://gam.my.salesforce.com/services/Soap/u/34.0/00D0Y000001IXCh

Try with Salesforce API version 39.0 instead of 34.0 (see the URL). Also verify the URL is https;//login.salesforce.com and not https;//test.salesforce.com (as you want to connect to production).

TRF
Five Stars

Re: com.sforce.ws.ConnectionException: Failed to send request to https://gam.my.salesforce.com/services/Soap/u/34.0/00D0Y000001IXCh

@xdshi 
Hey
1) We are trying to connect to Production.
2) This error does not occur immediately, It occurs very randomly.Sometimes the job runs is without this error and sometime I have this error.




Five Stars

Re: com.sforce.ws.ConnectionException: Failed to send request to https://gam.my.salesforce.com/services/Soap/u/34.0/00D0Y000001IXCh

How do we use this API v 39.0 ?
Apart from providing the URL in context variable , is there anything else that we need to do?
Could you please guide on how do we implement the change you suggested ?
Forteen Stars TRF
Forteen Stars

Re: com.sforce.ws.ConnectionException: Failed to send request to https://gam.my.salesforce.com/services/Soap/u/34.0/00D0Y000001IXCh

You just have to change the version in the URL, that's all.
Based on your previous message, if the job works sometimes and sometimes not or the error occurs after a moment, you probably have a problem with your internet connection.

TRF

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

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