<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Salesforce Bulk API java.net.SocketException: Connection reset in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-Bulk-API-java-net-SocketException-Connection-reset/m-p/2266148#M45466</link>
    <description>Generally this error is caused by a network problem and so far no communication with SalesForce has taken place. Therefore changing parameters of the query or similiar cannot help.
&lt;BR /&gt;Increasing the timeout will in this case probably only lead to a longer time until you get this error.
&lt;BR /&gt;I would suggest you check if you need to use a proxy or if some firewall rules prevents TCP traffic to SalesForce.
&lt;BR /&gt;At a first simple test you could start a ping from the server where your job runs to the SalesForce server.</description>
    <pubDate>Wed, 19 Nov 2014 06:45:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-11-19T06:45:00Z</dc:date>
    <item>
      <title>Salesforce Bulk API java.net.SocketException: Connection reset</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-Bulk-API-java-net-SocketException-Connection-reset/m-p/2266144#M45462</link>
      <description>Hi all, 
&lt;BR /&gt;I am using Talend 5.6.0_20141024_1545 
&lt;BR /&gt;My organization is trailing Talend for ELT and we are testing with Salesforce. 
&lt;BR /&gt;We have a large LEADS table ~3 million rows with ~400+ columns. 
&lt;BR /&gt;This means that the bulk component is necessary to pull data. 
&lt;BR /&gt;I have tried many ways to get this data, including splitting the SOQL query by createddate as a filter. 
&lt;BR /&gt;I get this error 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;Exception in component tSalesforceInput_1&lt;BR /&gt;java.net.SocketException: Connection reset&lt;BR /&gt;	at java.net.SocketInputStream.read(Unknown Source)&lt;BR /&gt;	at java.net.SocketInputStream.read(Unknown Source)&lt;BR /&gt;	at sun.security.ssl.InputRecord.readFully(Unknown Source)&lt;BR /&gt;	at sun.security.ssl.InputRecord.read(Unknown Source)&lt;BR /&gt;	at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)&lt;BR /&gt;	at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source)&lt;BR /&gt;	at sun.security.ssl.AppInputStream.read(Unknown Source)&lt;BR /&gt;	at java.io.BufferedInputStream.fill(Unknown Source)&lt;BR /&gt;	at java.io.BufferedInputStream.read1(Unknown Source)&lt;BR /&gt;	at java.io.BufferedInputStream.read(Unknown Source)&lt;BR /&gt;	at sun.net.www.http.ChunkedInputStream.fastRead(Unknown Source)&lt;BR /&gt;	at sun.net.www.http.ChunkedInputStream.read(Unknown Source)&lt;BR /&gt;	at java.io.FilterInputStream.read(Unknown Source)&lt;BR /&gt;	at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unknown Source)&lt;BR /&gt;	at java.util.zip.InflaterInputStream.fill(Unknown Source)&lt;BR /&gt;	at java.util.zip.InflaterInputStream.read(Unknown Source)&lt;BR /&gt; disconnected&lt;BR /&gt;	at java.util.zip.GZIPInputStream.read(Unknown Source)&lt;BR /&gt;	at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)&lt;BR /&gt;	at sun.nio.cs.StreamDecoder.implRead(Unknown Source)&lt;BR /&gt;	at sun.nio.cs.StreamDecoder.read(Unknown Source)&lt;BR /&gt;	at java.io.InputStreamReader.read(Unknown Source)&lt;BR /&gt;	at java.io.BufferedReader.fill(Unknown Source)&lt;BR /&gt;	at java.io.BufferedReader.read1(Unknown Source)&lt;BR /&gt;	at java.io.BufferedReader.read(Unknown Source)&lt;BR /&gt;	at java.io.BufferedReader.fill(Unknown Source)&lt;BR /&gt;	at java.io.BufferedReader.read1(Unknown Source)&lt;BR /&gt;	at java.io.BufferedReader.read(Unknown Source)&lt;BR /&gt;	at com.talend.csv.CSVReader.fill(CSVReader.java:444)&lt;BR /&gt;	at com.talend.csv.CSVReader.readNext(CSVReader.java:189)&lt;BR /&gt;	at org.talend.salesforceBulk.SalesforceBulkAPI.getQueryResult(SalesforceBulkAPI.java:370)&lt;BR /&gt;	at dw2.bulk_lead_pt1_0_1.bulk_lead_pt1.tSalesforceInput_1Process(bulk_lead_pt1.java:16439)&lt;BR /&gt;	at dw2.bulk_lead_pt1_0_1.bulk_lead_pt1$6.run(bulk_lead_pt1.java:23414)&lt;/PRE&gt; 
&lt;BR /&gt;This is my batch info from the console 
&lt;BR /&gt; 
&lt;PRE&gt;-------------- waiting ----------,firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2014,MONTH=10,WEEK_OF_YEAR=46,WEEK_OF_MONTH=3,DAY_OF_MONTH=13,DAY_OF_YEAR=317,DAY_OF_WEEK=5,DAY_OF_WEEK_IN_MONTH=2,AM_PM=0,HOUR=5,HOUR_OF_DAY=5,MINUTE=48,SECOND=50,MILLISECOND=0,ZONE_OFFSET=0,DST_OFFSET=0]'&lt;BR /&gt; systemModstamp='java.util.GregorianCalendar,firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2014,MONTH=10,WEEK_OF_YEAR=46,WEEK_OF_MONTH=3,DAY_OF_MONTH=13,DAY_OF_YEAR=317,DAY_OF_WEEK=5,DAY_OF_WEEK_IN_MONTH=2,AM_PM=0,HOUR=6,HOUR_OF_DAY=6,MINUTE=44,SECOND=23,MILLISECOND=0,ZONE_OFFSET=0,DST_OFFSET=0]'&lt;BR /&gt; numberRecordsProcessed='1345006'&lt;BR /&gt; numberRecordsFailed='0'&lt;BR /&gt; totalProcessingTime='0'&lt;BR /&gt; apiActiveProcessingTime='0'&lt;BR /&gt; apexProcessingTime='0'&lt;BR /&gt;]&lt;/PRE&gt; 
&lt;BR /&gt;As you can see, it only processed 390,949 rows out of 1,345,006 before failing. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBYz.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131718iE08466DB238DFCCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBYz.jpg" alt="0683p000009MBYz.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-Bulk-API-java-net-SocketException-Connection-reset/m-p/2266144#M45462</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce Bulk API java.net.SocketException: Connection reset</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-Bulk-API-java-net-SocketException-Connection-reset/m-p/2266145#M45463</link>
      <description>I have tried on a much smaller table, 219 columns and 133932 rows. 
&lt;BR /&gt;I get the same error. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBKl.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157466iD8D89A355495846E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBKl.jpg" alt="0683p000009MBKl.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 13 Nov 2014 16:02:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-Bulk-API-java-net-SocketException-Connection-reset/m-p/2266145#M45463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-13T16:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce Bulk API java.net.SocketException: Connection reset</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-Bulk-API-java-net-SocketException-Connection-reset/m-p/2266146#M45464</link>
      <description>I have also tried storing the tMap on disk and writing the CSV in row mode to see if it would help, but it does not.
&lt;BR /&gt;Additionally, I tried increasing the TimeOut to 600000 ms on the Salesforce connection, but this does not seem to help either.
&lt;BR /&gt;Can anyone give some tips on how else to troubleshoot?&amp;nbsp; 
&lt;BR /&gt;Has anyone else experienced this problem before?&amp;nbsp; I have tried to search the forums and the rest of the web but I can't find anything.</description>
      <pubDate>Fri, 14 Nov 2014 05:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-Bulk-API-java-net-SocketException-Connection-reset/m-p/2266146#M45464</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-14T05:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce Bulk API java.net.SocketException: Connection reset</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-Bulk-API-java-net-SocketException-Connection-reset/m-p/2266147#M45465</link>
      <description>Update: 
&lt;BR /&gt;Created a JIRA ticket 
&lt;BR /&gt; 
&lt;A href="https://jira.talendforge.org/browse/TDI-31213" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TDI-31213&lt;/A&gt;</description>
      <pubDate>Mon, 17 Nov 2014 18:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-Bulk-API-java-net-SocketException-Connection-reset/m-p/2266147#M45465</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-17T18:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce Bulk API java.net.SocketException: Connection reset</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-Bulk-API-java-net-SocketException-Connection-reset/m-p/2266148#M45466</link>
      <description>Generally this error is caused by a network problem and so far no communication with SalesForce has taken place. Therefore changing parameters of the query or similiar cannot help.
&lt;BR /&gt;Increasing the timeout will in this case probably only lead to a longer time until you get this error.
&lt;BR /&gt;I would suggest you check if you need to use a proxy or if some firewall rules prevents TCP traffic to SalesForce.
&lt;BR /&gt;At a first simple test you could start a ping from the server where your job runs to the SalesForce server.</description>
      <pubDate>Wed, 19 Nov 2014 06:45:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-Bulk-API-java-net-SocketException-Connection-reset/m-p/2266148#M45466</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-19T06:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce Bulk API java.net.SocketException: Connection reset</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-Bulk-API-java-net-SocketException-Connection-reset/m-p/2266149#M45467</link>
      <description>Thanks for the feedback, Jan. 
&lt;BR /&gt;Unfortunately, I think that this is not a causing my problems. 
&lt;BR /&gt;For one, I have been able to use the bulk query many many times, and it only fails on very large (3mm++ rows and 300+ column) objects. 
&lt;BR /&gt;Secondly, you can clearly see in the first screenshot, that data has actually been transferred. 
&lt;BR /&gt;Finally, I am also able to run the same query using the regular query, although it takes 20+ hours to complete. 
&lt;BR /&gt;Additionally, I am also able to monitor the inbound traffic, and can see data coming in from salesforce. 
&lt;BR /&gt;Thanks again! 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBZ4.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137374iC5DECF7372ED5A6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBZ4.jpg" alt="0683p000009MBZ4.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 19 Nov 2014 07:21:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-Bulk-API-java-net-SocketException-Connection-reset/m-p/2266149#M45467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-19T07:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce Bulk API java.net.SocketException: Connection reset</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-Bulk-API-java-net-SocketException-Connection-reset/m-p/2266150#M45468</link>
      <description>I have also checked, and I can ping salesforce. I also do not need to change any firewall rules, or use a proxy.</description>
      <pubDate>Thu, 20 Nov 2014 23:13:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-Bulk-API-java-net-SocketException-Connection-reset/m-p/2266150#M45468</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-20T23:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce Bulk API java.net.SocketException: Connection reset</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-Bulk-API-java-net-SocketException-Connection-reset/m-p/2266151#M45469</link>
      <description>Hi, I have the same problem. 
&lt;BR /&gt;I was using Talend TOS DI&amp;nbsp; 5.3 and upgraded to 5.6 hoping the Salesforce Bulk Query will work as I have a table with more than 100 k rows. Unfortunately it does not work because of 10 k limit .
&lt;BR /&gt;Does anyone have suggestions? I really need to speed the SQL.
&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 04 Dec 2014 16:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-Bulk-API-java-net-SocketException-Connection-reset/m-p/2266151#M45469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-04T16:34:23Z</dc:date>
    </item>
  </channel>
</rss>

