<?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: tFileInputExcel ignoring values after 000 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322283#M92242</link>
    <description>Is there a solution to this issue yet? 
&lt;BR /&gt;I have a similar problem in TOS 5.2.1, with the 'Read real values for numbers' checked, but TOS seems to round up values if the forth digit after the decimal point is &amp;gt;= 5. That is 0.9995 and above is rounded up to 1.0, although i have the length set to 12 and precision set to 6.
&lt;BR /&gt;I have tried using float (which is really what i want), bigDecimal and double - but same issue.</description>
    <pubDate>Thu, 08 Aug 2013 08:20:55 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2013-08-08T08:20:55Z</dc:date>
    <item>
      <title>tFileInputExcel ignoring values after 000</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322271#M92230</link>
      <description>Hello all,&lt;BR /&gt;I have isolated this case to tFileInputExcel component that just refuses to read values after "000".&lt;BR /&gt;For example: the following value reads fine: 9.001&lt;BR /&gt;but the following 9.0001 reads in as 9&lt;BR /&gt;I have tried quiet a few things to get this to work without any luck.&lt;BR /&gt;I'm attaching the screenshots and a link to Talend job and sample excel file.&lt;BR /&gt;Feel free to download entire thing from here:&lt;BR /&gt;&lt;A href="http://db.tt/p7LzArAu" target="_blank" rel="nofollow noopener noreferrer"&gt;http://db.tt/p7LzArAu&lt;/A&gt;&lt;BR /&gt;I'm on Ubuntu 10.10 64 Bit.&lt;BR /&gt;I'm using TOS-All-r63143-V4.2.2</description>
      <pubDate>Sat, 16 Nov 2024 12:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322271#M92230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputExcel ignoring values after 000</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322272#M92231</link>
      <description>I have to assume this is a problem with your Open Office. Real Microsoft Excel generated from Windows does work. I will attach the file but below you can see the results coming from my Windows VM:&lt;BR /&gt;&lt;BR /&gt;tarting job test at 14:36 19/11/2011.&lt;BR /&gt; connecting to socket on port 3633&lt;BR /&gt; connected&lt;BR /&gt;Debug: format string is 0.0000&lt;BR /&gt;.-------------------.&lt;BR /&gt;|   #1. tLogRow_1   |&lt;BR /&gt;+----------+--------+&lt;BR /&gt;| key      | value  |&lt;BR /&gt;+----------+--------+&lt;BR /&gt;| Quantity | 1      |&lt;BR /&gt;| Price    | 1.0735 |&lt;BR /&gt;+----------+--------+&lt;BR /&gt;.-------------------.&lt;BR /&gt;|   #2. tLogRow_1   |&lt;BR /&gt;+----------+--------+&lt;BR /&gt;| key      | value  |&lt;BR /&gt;+----------+--------+&lt;BR /&gt;| Quantity | 2      |&lt;BR /&gt;| Price    | 9.0001 |&lt;BR /&gt;+----------+--------+&lt;BR /&gt;.------------------.&lt;BR /&gt;|  #3. tLogRow_1   |&lt;BR /&gt;+----------+-------+&lt;BR /&gt;| key      | value |&lt;BR /&gt;+----------+-------+&lt;BR /&gt;| Quantity | 3     |&lt;BR /&gt;| Price    | 9.001 |&lt;BR /&gt;+----------+-------+&lt;BR /&gt;.-------------------.&lt;BR /&gt;|   #4. tLogRow_1   |&lt;BR /&gt;+----------+--------+&lt;BR /&gt;| key      | value  |&lt;BR /&gt;+----------+--------+&lt;BR /&gt;| Quantity | 4      |&lt;BR /&gt;| Price    | 1.0001 |&lt;BR /&gt;+----------+--------+&lt;BR /&gt; disconnected&lt;BR /&gt;Job test ended at 14:36 19/11/2011. &lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;-Nestor</description>
      <pubDate>Sat, 19 Nov 2011 19:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322272#M92231</guid>
      <dc:creator>nestoru</dc:creator>
      <dc:date>2011-11-19T19:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputExcel ignoring values after 000</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322273#M92232</link>
      <description>See the file that works for me here: &lt;A href="http://db.tt/3vTiWBrt" rel="nofollow noopener noreferrer"&gt;http://db.tt/3vTiWBrt&lt;/A&gt;</description>
      <pubDate>Sat, 19 Nov 2011 19:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322273#M92232</guid>
      <dc:creator>nestoru</dc:creator>
      <dc:date>2011-11-19T19:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputExcel ignoring values after 000</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322274#M92233</link>
      <description>And just to eliminate any doubts below is the result of running the Talend exported job in OSX (which is BSD alike so it should worn in Ubuntu as well)&lt;BR /&gt;&lt;BR /&gt;nestor-krfs:test nestor$ ./test_run.sh&lt;BR /&gt;Debug: format string is 0.0000&lt;BR /&gt;.-------------------.&lt;BR /&gt;|   #1. tLogRow_1   |&lt;BR /&gt;+----------+--------+&lt;BR /&gt;| key      | value  |&lt;BR /&gt;+----------+--------+&lt;BR /&gt;| Quantity | 1      |&lt;BR /&gt;| Price    | 1.0735 |&lt;BR /&gt;+----------+--------+&lt;BR /&gt;.-------------------.&lt;BR /&gt;|   #2. tLogRow_1   |&lt;BR /&gt;+----------+--------+&lt;BR /&gt;| key      | value  |&lt;BR /&gt;+----------+--------+&lt;BR /&gt;| Quantity | 2      |&lt;BR /&gt;| Price    | 9.0001 |&lt;BR /&gt;+----------+--------+&lt;BR /&gt;.------------------.&lt;BR /&gt;|  #3. tLogRow_1   |&lt;BR /&gt;+----------+-------+&lt;BR /&gt;| key      | value |&lt;BR /&gt;+----------+-------+&lt;BR /&gt;| Quantity | 3     |&lt;BR /&gt;| Price    | 9.001 |&lt;BR /&gt;+----------+-------+&lt;BR /&gt;.-------------------.&lt;BR /&gt;|   #4. tLogRow_1   |&lt;BR /&gt;+----------+--------+&lt;BR /&gt;| key      | value  |&lt;BR /&gt;+----------+--------+&lt;BR /&gt;| Quantity | 4      |&lt;BR /&gt;| Price    | 1.0001 |&lt;BR /&gt;+----------+--------+</description>
      <pubDate>Sat, 19 Nov 2011 20:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322274#M92233</guid>
      <dc:creator>nestoru</dc:creator>
      <dc:date>2011-11-19T20:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputExcel ignoring values after 000</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322275#M92234</link>
      <description>I just saw the excel inside the zip file. The cells are not formatted correctly. They are type General instead of Number. Change it to Number, 4 decimal places and it will work.</description>
      <pubDate>Sun, 20 Nov 2011 19:45:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322275#M92234</guid>
      <dc:creator>nestoru</dc:creator>
      <dc:date>2011-11-20T19:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputExcel ignoring values after 000</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322276#M92235</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;=nestor.urquiza@gmail.com]I have to assume this is a problem with your Open Office. Real Microsoft Excel generated from Windows does work. I will attach the file but below you can see the results coming from my Windows VM:&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;There is nothing wrong wtih OO-generated file.
&lt;BR /&gt;In my file, cell formating is Number:General. Once, I change it to Number: 4 digit rounding it works. Even with OO.
&lt;BR /&gt;I need to read the file as is from Talend.
&lt;BR /&gt;It's a work around, but it is not a very good one.
&lt;BR /&gt;I need to read vales, how they are stored. Visually they also look proper.
&lt;BR /&gt;In my Talend job, I just try to read them in as Strings.</description>
      <pubDate>Sun, 20 Nov 2011 23:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322276#M92235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-20T23:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputExcel ignoring values after 000</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322277#M92236</link>
      <description>I have seen this to fail with several API's and even from SSIS before. That is why I went the extra mile debugging this problem and I found out there is a bug in the JXL API. I have reported so in the Yahoo group 
&lt;A href="http://tech.groups.yahoo.com/group/JExcelApi/messages" rel="nofollow noopener noreferrer"&gt;http://tech.groups.yahoo.com/group/JExcelApi/messages&lt;/A&gt;. My message is still not showing up ther eprobably because is going through moderation at the moment. 
&lt;BR /&gt;Definitely it would be great if Talend/JXL can accept the General format as text without losing any part of the content of the cell. Talend uses the JXL library. You realize that if you switch to debug mode, put a break point on the component and examine the code there. 
&lt;BR /&gt;Can you try converting with POI directly? Look into here for a quick try 
&lt;A href="https://github.com/anjlab/excel2csv-java" rel="nofollow noopener noreferrer"&gt;https://github.com/anjlab/excel2csv-java&lt;/A&gt;. If the resulting CSV does come correct then you can convert to CSV before feeding the file into Talend. That way you will have a temporary solution while you wait for the bug to be fixed. Below is an approximate copy of what I posted to JXL Yahoo user group: 
&lt;BR /&gt;There is a problem with precision in the jxl api. This is a continuation of this post: 
&lt;A href="http://www.talendforge.org/forum/viewtopic.php?pid=69610" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/forum/viewtopic.php?pid=69610&lt;/A&gt; 
&lt;BR /&gt;1. Compile source code from 
&lt;A href="http://www.java-tips.org/other-api-tips/jexcel/converting-excel-documents-to-csv-files.html" rel="nofollow noopener noreferrer"&gt;http://www.java-tips.org/other-api-tips/jexcel/converting-excel-documents-to-csv-files.html&lt;/A&gt; for example: 
&lt;BR /&gt;javac -cp jxl-2.6.12.jar ConvertCSV.java 
&lt;BR /&gt;2. Put the attached input.xls in the same directory where the compiled class is and run the program, for example: 
&lt;BR /&gt;java -cp jxl-2.6.12.jar:. ConvertCSV 
&lt;BR /&gt;3. Look at the resulting file input.csv. It should be: 
&lt;BR /&gt;1,1.0735 
&lt;BR /&gt;2,9.0001 
&lt;BR /&gt;3,9.0010 
&lt;BR /&gt;4,1.0001 
&lt;BR /&gt;But instead you get: 
&lt;BR /&gt;1,1.074 
&lt;BR /&gt;2,9 
&lt;BR /&gt;3,9.001 
&lt;BR /&gt;4,1 
&lt;BR /&gt;BTW I tested this with latest version of JXL 
&lt;A href="http://mvnrepository.com/artifact/net.sourceforge.jexcelapi/jxl/2.6.12" rel="nofollow noopener noreferrer"&gt;http://mvnrepository.com/artifact/net.sourceforge.jexcelapi/jxl/2.6.12&lt;/A&gt; and also with the one Talend 4.2.2 ships with (c:\TOS-Win32-r63143-V4.2.2\lib\java\jxl.jar) just in case I had the opportunity to patch Talend but they both failed.</description>
      <pubDate>Mon, 21 Nov 2011 02:20:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322277#M92236</guid>
      <dc:creator>nestoru</dc:creator>
      <dc:date>2011-11-21T02:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputExcel ignoring values after 000</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322278#M92237</link>
      <description>My post is now showing up there &lt;A href="http://tech.groups.yahoo.com/group/JExcelApi/message/13790" rel="nofollow noopener noreferrer"&gt;http://tech.groups.yahoo.com/group/JExcelApi/message/13790&lt;/A&gt;</description>
      <pubDate>Mon, 21 Nov 2011 03:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322278#M92237</guid>
      <dc:creator>nestoru</dc:creator>
      <dc:date>2011-11-21T03:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputExcel ignoring values after 000</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322279#M92238</link>
      <description>The post has been responded and indeed there is a bug in Talend. Anybody from the Talend team reading this? I think we need to open a bug ticket. Here is the content of my post: 
&lt;BR /&gt;I will get to the Talend team now as clearly there are two things missing in their component: 
&lt;BR /&gt;1. A way to specify precision. 
&lt;BR /&gt;2. A correction so they stop to use getValue() instead of getContents() 
&lt;BR /&gt;In the generated code I can see: 
&lt;BR /&gt; if (true &amp;amp;&amp;amp; jxl.CellType.NUMBER == cell_tFileInputExcel_2 
&lt;BR /&gt; .getType()) { 
&lt;BR /&gt; temp_row_tFileInputExcel_2 
&lt;I&gt; = String&lt;BR /&gt; .valueOf(((jxl.NumberCell) cell_tFileInputExcel_2)&lt;BR /&gt; .getValue());&lt;BR /&gt; String content = cell_tFileInputExcel_2&lt;BR /&gt; .getContents();&lt;BR /&gt; if (content != null&lt;BR /&gt; &amp;amp;&amp;amp; content.indexOf(separatorChar) == -1&lt;BR /&gt; &amp;amp;&amp;amp; (temp_row_tFileInputExcel_2&lt;I&gt;&lt;BR /&gt; .indexOf("E") == -1)) {&lt;BR /&gt; temp_row_tFileInputExcel_2&lt;I&gt; = content;&lt;BR /&gt; } else {&lt;BR /&gt; String literal = temp_row_tFileInputExcel_2&lt;I&gt;;&lt;BR /&gt; if (literal != null) {&lt;BR /&gt; literal = df&lt;BR /&gt; .format(((jxl.NumberCell) cell_tFileInputExcel_2)&lt;BR /&gt; .getValue());&lt;BR /&gt; }&lt;BR /&gt; temp_row_tFileInputExcel_2&lt;I&gt; = literal;&lt;BR /&gt; }&lt;BR /&gt; } else {&lt;BR /&gt; temp_row_tFileInputExcel_2&lt;I&gt; = cell_tFileInputExcel_2&lt;BR /&gt; .getContents();&lt;BR /&gt; }&lt;BR /&gt;So clearly "content" is picking a dirty value there and that is propagated later on in the code resulting in wrong parsing.&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;</description>
      <pubDate>Mon, 21 Nov 2011 15:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322279#M92238</guid>
      <dc:creator>nestoru</dc:creator>
      <dc:date>2011-11-21T15:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputExcel ignoring values after 000</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322280#M92239</link>
      <description>I meant to say "they start to use"</description>
      <pubDate>Mon, 21 Nov 2011 15:34:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322280#M92239</guid>
      <dc:creator>nestoru</dc:creator>
      <dc:date>2011-11-21T15:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputExcel ignoring values after 000</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322281#M92240</link>
      <description>Talend team can you please advise if we should open a bug?</description>
      <pubDate>Fri, 23 Mar 2012 14:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322281#M92240</guid>
      <dc:creator>nestoru</dc:creator>
      <dc:date>2012-03-23T14:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputExcel ignoring values after 000</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322282#M92241</link>
      <description>Bump</description>
      <pubDate>Wed, 11 Apr 2012 15:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322282#M92241</guid>
      <dc:creator>jkrfs</dc:creator>
      <dc:date>2012-04-11T15:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputExcel ignoring values after 000</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322283#M92242</link>
      <description>Is there a solution to this issue yet? 
&lt;BR /&gt;I have a similar problem in TOS 5.2.1, with the 'Read real values for numbers' checked, but TOS seems to round up values if the forth digit after the decimal point is &amp;gt;= 5. That is 0.9995 and above is rounded up to 1.0, although i have the length set to 12 and precision set to 6.
&lt;BR /&gt;I have tried using float (which is really what i want), bigDecimal and double - but same issue.</description>
      <pubDate>Thu, 08 Aug 2013 08:20:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322283#M92242</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-08-08T08:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputExcel ignoring values after 000</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322284#M92243</link>
      <description>The JXL library is not the best. I recommend using Apache POI. This library is bullet proof and work well with both: xls and xlsx. 
&lt;BR /&gt;In the component suite tFileExcelWorkbookOpen, tFileExcelSheetInput and some more, the latest Apache POI library is used. Both components are available in Talend Exchange. I suggest trying them. 
&lt;BR /&gt;By the way, reading numbers should not depend on a display format, the mentioned components read the real value and does not use the formatting pattern for reading - if you use in your schema a Double or BigDecimal.</description>
      <pubDate>Thu, 08 Aug 2013 20:56:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322284#M92243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-08T20:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputExcel ignoring values after 000</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322285#M92244</link>
      <description>I submitted a bug report for this issue. I'm apparently not able to post links here, but the issue number is&amp;nbsp;TDI-31901.</description>
      <pubDate>Tue, 24 Feb 2015 21:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputExcel-ignoring-values-after-000/m-p/2322285#M92244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-24T21:09:07Z</dc:date>
    </item>
  </channel>
</rss>

