<?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 tSalesforceInput with Bulk Query - error parsing integers and doubles in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-with-Bulk-Query-error-parsing-integers-and/m-p/2198667#M1900</link>
    <description>Hi - I am using tSalesforceInput to perform a Bulk Query on Account which has a total of 12 records.&amp;nbsp; When I run the job I receive the&amp;nbsp; errors below, depending on if the records contain Integers or Doubles.&amp;nbsp; If I change the schema of the tSalesforceInput and either delete the integer/double fields, or change the field types to strings, the job runs successfully. 
&lt;BR /&gt;Has anyone seen this before? 
&lt;BR /&gt;The errors received are as follows: 
&lt;BR /&gt;For Integers: 
&lt;BR /&gt;Exception in component tSalesforceInput_2 
&lt;BR /&gt;java.lang.NumberFormatException: For input string: "" 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.NumberFormatException.forInputString(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.Integer.parseInt(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.Integer.parseInt(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at routines.system.ParserUtils.parseTo_int(ParserUtils.java:105) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at routines.system.ParserUtils.parseTo_Integer(ParserUtils.java:112) 
&lt;BR /&gt;For Doubles: 
&lt;BR /&gt;Exception in component tSalesforceInput_2 
&lt;BR /&gt;java.lang.NumberFormatException: empty String 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.Double.parseDouble(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at routines.system.ParserUtils.parseTo_Double(ParserUtils.java:86) 
&lt;BR /&gt; 
&lt;BR /&gt;My Configuration details: 
&lt;BR /&gt;Talend version 5.6.0 - also happens on Talend 5.5.1, (32 bit and 64 bit) 
&lt;BR /&gt;Java version: 7 (also happens with 6) 
&lt;BR /&gt;tSalesforceInput --&amp;gt; tLogRow 
&lt;BR /&gt;tSalesforceInput settings: 
&lt;BR /&gt;Query Mode: Bulk Query 
&lt;BR /&gt;Login Type: Basic 
&lt;BR /&gt;WebService URL:&amp;nbsp; ""&amp;nbsp; -&amp;nbsp; ths is a recently created Developer edition on Winter 15, but this also happens on our Enterprise org also on Winter 15. 
&lt;BR /&gt;Salesforce Version: "21.0"&amp;nbsp; - have also tried 30 on both webservice URL and this setting. 
&lt;BR /&gt;Module:&amp;nbsp; Account 
&lt;BR /&gt;Proxy Settings:&amp;nbsp; uses enterprise proxy settings - no authentication required 
&lt;BR /&gt;Use Soap Compression:&amp;nbsp; On</description>
    <pubDate>Sat, 16 Nov 2024 11:25:11 GMT</pubDate>
    <dc:creator>d416</dc:creator>
    <dc:date>2024-11-16T11:25:11Z</dc:date>
    <item>
      <title>tSalesforceInput with Bulk Query - error parsing integers and doubles</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-with-Bulk-Query-error-parsing-integers-and/m-p/2198667#M1900</link>
      <description>Hi - I am using tSalesforceInput to perform a Bulk Query on Account which has a total of 12 records.&amp;nbsp; When I run the job I receive the&amp;nbsp; errors below, depending on if the records contain Integers or Doubles.&amp;nbsp; If I change the schema of the tSalesforceInput and either delete the integer/double fields, or change the field types to strings, the job runs successfully. 
&lt;BR /&gt;Has anyone seen this before? 
&lt;BR /&gt;The errors received are as follows: 
&lt;BR /&gt;For Integers: 
&lt;BR /&gt;Exception in component tSalesforceInput_2 
&lt;BR /&gt;java.lang.NumberFormatException: For input string: "" 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.NumberFormatException.forInputString(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.Integer.parseInt(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.Integer.parseInt(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at routines.system.ParserUtils.parseTo_int(ParserUtils.java:105) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at routines.system.ParserUtils.parseTo_Integer(ParserUtils.java:112) 
&lt;BR /&gt;For Doubles: 
&lt;BR /&gt;Exception in component tSalesforceInput_2 
&lt;BR /&gt;java.lang.NumberFormatException: empty String 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.Double.parseDouble(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at routines.system.ParserUtils.parseTo_Double(ParserUtils.java:86) 
&lt;BR /&gt; 
&lt;BR /&gt;My Configuration details: 
&lt;BR /&gt;Talend version 5.6.0 - also happens on Talend 5.5.1, (32 bit and 64 bit) 
&lt;BR /&gt;Java version: 7 (also happens with 6) 
&lt;BR /&gt;tSalesforceInput --&amp;gt; tLogRow 
&lt;BR /&gt;tSalesforceInput settings: 
&lt;BR /&gt;Query Mode: Bulk Query 
&lt;BR /&gt;Login Type: Basic 
&lt;BR /&gt;WebService URL:&amp;nbsp; ""&amp;nbsp; -&amp;nbsp; ths is a recently created Developer edition on Winter 15, but this also happens on our Enterprise org also on Winter 15. 
&lt;BR /&gt;Salesforce Version: "21.0"&amp;nbsp; - have also tried 30 on both webservice URL and this setting. 
&lt;BR /&gt;Module:&amp;nbsp; Account 
&lt;BR /&gt;Proxy Settings:&amp;nbsp; uses enterprise proxy settings - no authentication required 
&lt;BR /&gt;Use Soap Compression:&amp;nbsp; On</description>
      <pubDate>Sat, 16 Nov 2024 11:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-with-Bulk-Query-error-parsing-integers-and/m-p/2198667#M1900</guid>
      <dc:creator>d416</dc:creator>
      <dc:date>2024-11-16T11:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: tSalesforceInput with Bulk Query - error parsing integers and doubles</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-with-Bulk-Query-error-parsing-integers-and/m-p/2198668#M1901</link>
      <description>It's a limitation in the bulk query.&lt;BR /&gt;Bulk query cannot return nulls, it returns them as empty strings.&lt;BR /&gt;Talend has no automated capability to handle this, so you have to change type to id_String and then change in tMap later.&lt;BR /&gt;Also, if you try to run a bulk query on large data (2m+ rows with 300+ columns) it will fail on Talend end.</description>
      <pubDate>Thu, 20 Nov 2014 23:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-with-Bulk-Query-error-parsing-integers-and/m-p/2198668#M1901</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-20T23:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: tSalesforceInput with Bulk Query - error parsing integers and doubles</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-with-Bulk-Query-error-parsing-integers-and/m-p/2198669#M1902</link>
      <description>This issue did not exist in version 5.4 and is new to 5.6. Given that the bulk query will only ever return empty strings, Talend should check for an empty string prior to parsing it.&amp;nbsp;</description>
      <pubDate>Wed, 31 Dec 2014 01:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-with-Bulk-Query-error-parsing-integers-and/m-p/2198669#M1902</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-31T01:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: tSalesforceInput with Bulk Query - error parsing integers and doubles</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-with-Bulk-Query-error-parsing-integers-and/m-p/2198670#M1903</link>
      <description>I did a bit more digging with this. I fixed it by editing the ParserUtils.java file and changing the logic to also check for empty strings. I'm on a Mac, so the path to do this on a PC might be different (I'd be surprised if it was though). 
&lt;BR /&gt;TalendV561 ? plugins ? org.talend.librariesmanager_5.6.1.20141207_1530 ? resources ? java ? routines ? system 
&lt;BR /&gt;You'll see a number of if statements where it's checking if s == null. I simply changed this to also check for an empty string by adding &amp;nbsp;|| "".equals(s) : 
&lt;BR /&gt;public static Double parseTo_Double(String s) { 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (s == null || "".equals(s)) { 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return null; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Double.parseDouble(s); 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; } 
&lt;BR /&gt;If it finds an empty string, it will return null (which is fine for what I'm doing). If you really do need it to return an empty string, you'll need to expand on the logic above. 
&lt;BR /&gt;Once you've done the above, restart Talend and try and run your job again.</description>
      <pubDate>Wed, 31 Dec 2014 02:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-with-Bulk-Query-error-parsing-integers-and/m-p/2198670#M1903</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-31T02:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: tSalesforceInput with Bulk Query - error parsing integers and doubles</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-with-Bulk-Query-error-parsing-integers-and/m-p/2198671#M1904</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I did a bit more digging with this. I fixed it by editing the ParserUtils.java file and changing the logic to also check for empty strings. I'm on a Mac, so the path to do this on a PC might be different (I'd be surprised if it was though).&lt;BR /&gt;TalendV561 ? plugins ? org.talend.librariesmanager_5.6.1.20141207_1530 ? resources ? java ? routines ? system&lt;BR /&gt;You'll see a number of if statements where it's checking if s == null. I simply changed this to also check for an empty string by adding &amp;nbsp;|| "".equals(s) :&lt;BR /&gt;public static Double parseTo_Double(String s) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (s == null || "".equals(s)) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return null;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Double.parseDouble(s);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;If it finds an empty string, it will return null (which is fine for what I'm doing). If you really do need it to return an empty string, you'll need to expand on the logic above.&lt;BR /&gt;Once you've done the above, restart Talend and try and run your job again.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Thanks! This was the hack/fix I needed to get passed this error. I'm using tSalesforceOutputBulkExec and when Talend was in the process of writing the success/error records to some files it bombed when a Salesforce numeric field came back as empty string when it should have been null. Hopefully this is resolved in future release!</description>
      <pubDate>Tue, 14 Jun 2016 01:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-with-Bulk-Query-error-parsing-integers-and/m-p/2198671#M1904</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-14T01:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: tSalesforceInput with Bulk Query - error parsing integers and doubles</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-with-Bulk-Query-error-parsing-integers-and/m-p/2198672#M1905</link>
      <description>This fixed my issue as well!&lt;BR /&gt;Thank you</description>
      <pubDate>Thu, 06 Oct 2016 15:00:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-with-Bulk-Query-error-parsing-integers-and/m-p/2198672#M1905</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-10-06T15:00:30Z</dc:date>
    </item>
  </channel>
</rss>

