talend job execution error after processing some records

Highlighted
Six Stars

talend job execution error after processing some records

I have around 7.5 Lakh records in my org....after processing 1 lakh records job got terminated with exception...so what would be the reason for termination ?

 

Error :

Exception in component tSalesforceOutput_1 (LDVMigration)
java.io.IOException: com.sforce.ws.ConnectionException: Failed to send request to https://ldv.cs10.my.salesforce.com/services/Soap/u/44.0/00DJ0000003QMFE
at org.talend.components.salesforce.runtime.SalesforceWriter.doInsert(SalesforceWriter.java:360)
at org.talend.components.salesforce.runtime.SalesforceWriter.insert(SalesforceWriter.java:328)
at org.talend.components.salesforce.runtime.SalesforceWriter.write(SalesforceWriter.java:185)
at local_project.ldvmigration_0_1.LDVMigration.tSalesforceInput_2Process(LDVMigration.java:3841)
at local_project.ldvmigration_0_1.LDVMigration.runJobInTOS(LDVMigration.java:4371)
at local_project.ldvmigration_0_1.LDVMigration.main(LDVMigration.java:4220)
Caused by: com.sforce.ws.ConnectionException: Failed to send request to https://ldv.cs10.my.salesforce.com/services/Soap/u/44.0/00DJ0000003QMFE
at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:121)
at com.sforce.soap.partner.PartnerConnection.create(PartnerConnection.java:1608)
at org.talend.components.salesforce.runtime.SalesforceWriter.doInsert(SalesforceWriter.java:345)
... 5 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
at com.sforce.ws.transport.JdkHttpTransport.connectRaw(JdkHttpTransport.java:143)
at com.sforce.ws.transport.JdkHttpTransport.connectLocal(JdkHttpTransport.java:103)
at com.sforce.ws.transport.JdkHttpTransport.connectLocal(JdkHttpTransport.java:98)
at com.sforce.ws.transport.JdkHttpTransport.connect(JdkHttpTransport.java:94)
at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:95)
... 7 more
[statistics] disconnected

Job LDVMigration ended at 14:13 08/03/2019. [exit code=1]

 

error2.PNG

Highlighted
Eleven Stars

Re: talend job execution error after processing some records

Do you have Die On Error selected ? Please uncheck and also capture the reject flow.

https://help.talend.com/reader/iYcvdknuprDzYycT3WRU8w/DdNFQ29mYUxqVhLa8fOMQw
Regards
Abhishek KUMAR
Highlighted
Six Stars

Re: talend job execution error after processing some records

I have unchecked and tried again but now this time it got terminated after processing 14 K records...

 

Error :

Exception in component tSalesforceInput_2 (LDVMigration)
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at sun.security.ssl.InputRecord.readFully(Unknown Source)
at sun.security.ssl.InputRecord.read(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
at sun.security.ssl.AppInputStream.read(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at sun.net.www.http.ChunkedInputStream.fastRead(Unknown Source)
at sun.net.www.http.ChunkedInputStream.read(Unknown Source)
at java.io.FilterInputStream.read(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.read1(Unknown Source)
at java.io.BufferedReader.read(Unknown Source)
at com.csvreader.CsvReader.checkDataLength(Unknown Source)
at com.csvreader.CsvReader.readRecord(Unknown Source)
at org.talend.components.salesforce.runtime.BulkResultSet.next(BulkResultSet.java:21)
at org.talend.components.salesforce.runtime.SalesforceBulkQueryInputReader.advance(SalesforceBulkQueryInputReader.java:69)
at org.talend.codegen.flowvariables.runtime.FlowVariablesReader.advance(FlowVariablesReader.java:78)
at local_project.ldvmigration_0_1.LDVMigration.tSalesforceInput_2Process(LDVMigration.java:4009)
at local_project.ldvmigration_0_1.LDVMigration.runJobInTOS(LDVMigration.java:6773)
at local_project.ldvmigration_0_1.LDVMigration.main(LDVMigration.java:6622)
[statistics] disconnected

Job LDVMigration ended at 15:37 08/03/2019. [exit code=1]

 

error3.PNG

Highlighted
Eleven Stars

Re: talend job execution error after processing some records

Hello ,

Connection error are usually Network issue between server. I suggest you to try with Bulk output Component instead and see if improve your result.

 

https://help.talend.com/reader/mjoDghHoMPI0yuyZ83a13Q/SZV3F78GskC5~01t5CpZJQ

 

below link is more appropriate 

https://help.talend.com/reader/mjoDghHoMPI0yuyZ83a13Q/gFN~fGYQEFkzLwRGqPvC8A

Regards
Abhishek KUMAR

2019 GARTNER 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

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog