<?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 Error while checking excel sheet exists in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Error-while-checking-excel-sheet-exists/m-p/2359851#M124556</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am trying to read an Excel file that can have any of the three sheets required to be read.&lt;/P&gt; 
&lt;P&gt;To do so and not cause an error while reading for a sheet not existing, I am using the tFileExcelWorkbookOpen and tFileExcelSheetList components.&lt;/P&gt; 
&lt;P&gt;I have designed the job in the following way:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="FileExcelToCSV.png" style="width: 846px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lz6z.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137898i6AF3669286FF536A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lz6z.png" alt="0683p000009Lz6z.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The schema defined in the tFileInputExcel and tFileOutputDelimited components is "Dynamic" as I want to create a CSV file of the excel sheet that is read.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The file being read is an XLSX file, so for that I have enabled the "Memory saving mode (only for XLSX format, data can only be appended!)" property in the tFileExcelWorkbookOpen component and the "Read excel2007 file format(xlsx)" property in tFileInputExcel component.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Now when I run the job, I get the following exception:&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;Exception in thread "main" java.lang.NoSuchMethodError: org.apache.poi.ss.util.SheetUtil.getDefaultCharWidth(Lorg/apache/poi/ss/usermodel/Workbook&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt;I&lt;BR /&gt;at org.apache.poi.xssf.streaming.AutoSizeColumnTracker.&amp;lt;init&amp;gt;(AutoSizeColumnTracker.java:117)&lt;BR /&gt;at org.apache.poi.xssf.streaming.SXSSFSheet.&amp;lt;init&amp;gt;(SXSSFSheet.java:78)&lt;BR /&gt;at org.apache.poi.xssf.streaming.SXSSFWorkbook.createAndRegisterSXSSFSheet(SXSSFWorkbook.java:624)&lt;BR /&gt;at org.apache.poi.xssf.streaming.SXSSFWorkbook.&amp;lt;init&amp;gt;(SXSSFWorkbook.java:230)&lt;BR /&gt;at org.apache.poi.xssf.streaming.SXSSFWorkbook.&amp;lt;init&amp;gt;(SXSSFWorkbook.java:185)&lt;BR /&gt;at org.apache.poi.xssf.streaming.SXSSFWorkbook.&amp;lt;init&amp;gt;(SXSSFWorkbook.java:160)&lt;BR /&gt;at de.jlo.talendcomp.excel.SpreadsheetFile.initializeWorkbook(SpreadsheetFile.java:380)&lt;BR /&gt;at etl_dev.exceltocsvtest_0_1.ExcelToCSVTest.tFileExcelWorkbookOpen_1Process(ExcelToCSVTest.java:1324)&lt;BR /&gt;at etl_dev.exceltocsvtest_0_1.ExcelToCSVTest.runJobInTOS(ExcelToCSVTest.java:7693)&lt;BR /&gt;at etl_dev.exceltocsvtest_0_1.ExcelToCSVTest.main(ExcelToCSVTest.java:7501)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Alternately if I disable the &lt;SPAN&gt;"Read excel2007 file format(xlsx)" property in tFileInputExcel component, I get the following error:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;[FATAL]: ga_etl_dev.exceltocsvtest_0_1.ExcelToCSVTest - tFileInputExcel_4 Unable to recognize OLE stream&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Exception in component tFileInputExcel_4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;jxl.read.biff.BiffException: Unable to recognize OLE stream&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at jxl.read.biff.CompoundFile.&amp;lt;init&amp;gt;(CompoundFile.java:116)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at jxl.read.biff.File.&amp;lt;init&amp;gt;(File.java:127)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at jxl.Workbook.getWorkbook(Workbook.java:268)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at etl_dev.exceltocsvtest_0_1.ExcelToCSVTest.tFileExcelWorkbookOpen_1Process(ExcelToCSVTest.java:2148)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at etl_dev.exceltocsvtest_0_1.ExcelToCSVTest.runJobInTOS(ExcelToCSVTest.java:7627)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at etl_dev.exceltocsvtest_0_1.ExcelToCSVTest.main(ExcelToCSVTest.java:7435)&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can anyone tell me why I am getting these errors? Is it because of the XLSX file or the Dynamic Schema?&lt;/P&gt; 
&lt;P&gt;And is there a workaround for the same?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 07:56:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T07:56:23Z</dc:date>
    <item>
      <title>Error while checking excel sheet exists</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-while-checking-excel-sheet-exists/m-p/2359851#M124556</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am trying to read an Excel file that can have any of the three sheets required to be read.&lt;/P&gt; 
&lt;P&gt;To do so and not cause an error while reading for a sheet not existing, I am using the tFileExcelWorkbookOpen and tFileExcelSheetList components.&lt;/P&gt; 
&lt;P&gt;I have designed the job in the following way:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="FileExcelToCSV.png" style="width: 846px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lz6z.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137898i6AF3669286FF536A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lz6z.png" alt="0683p000009Lz6z.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The schema defined in the tFileInputExcel and tFileOutputDelimited components is "Dynamic" as I want to create a CSV file of the excel sheet that is read.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The file being read is an XLSX file, so for that I have enabled the "Memory saving mode (only for XLSX format, data can only be appended!)" property in the tFileExcelWorkbookOpen component and the "Read excel2007 file format(xlsx)" property in tFileInputExcel component.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Now when I run the job, I get the following exception:&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;Exception in thread "main" java.lang.NoSuchMethodError: org.apache.poi.ss.util.SheetUtil.getDefaultCharWidth(Lorg/apache/poi/ss/usermodel/Workbook&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt;I&lt;BR /&gt;at org.apache.poi.xssf.streaming.AutoSizeColumnTracker.&amp;lt;init&amp;gt;(AutoSizeColumnTracker.java:117)&lt;BR /&gt;at org.apache.poi.xssf.streaming.SXSSFSheet.&amp;lt;init&amp;gt;(SXSSFSheet.java:78)&lt;BR /&gt;at org.apache.poi.xssf.streaming.SXSSFWorkbook.createAndRegisterSXSSFSheet(SXSSFWorkbook.java:624)&lt;BR /&gt;at org.apache.poi.xssf.streaming.SXSSFWorkbook.&amp;lt;init&amp;gt;(SXSSFWorkbook.java:230)&lt;BR /&gt;at org.apache.poi.xssf.streaming.SXSSFWorkbook.&amp;lt;init&amp;gt;(SXSSFWorkbook.java:185)&lt;BR /&gt;at org.apache.poi.xssf.streaming.SXSSFWorkbook.&amp;lt;init&amp;gt;(SXSSFWorkbook.java:160)&lt;BR /&gt;at de.jlo.talendcomp.excel.SpreadsheetFile.initializeWorkbook(SpreadsheetFile.java:380)&lt;BR /&gt;at etl_dev.exceltocsvtest_0_1.ExcelToCSVTest.tFileExcelWorkbookOpen_1Process(ExcelToCSVTest.java:1324)&lt;BR /&gt;at etl_dev.exceltocsvtest_0_1.ExcelToCSVTest.runJobInTOS(ExcelToCSVTest.java:7693)&lt;BR /&gt;at etl_dev.exceltocsvtest_0_1.ExcelToCSVTest.main(ExcelToCSVTest.java:7501)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Alternately if I disable the &lt;SPAN&gt;"Read excel2007 file format(xlsx)" property in tFileInputExcel component, I get the following error:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;[FATAL]: ga_etl_dev.exceltocsvtest_0_1.ExcelToCSVTest - tFileInputExcel_4 Unable to recognize OLE stream&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Exception in component tFileInputExcel_4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;jxl.read.biff.BiffException: Unable to recognize OLE stream&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at jxl.read.biff.CompoundFile.&amp;lt;init&amp;gt;(CompoundFile.java:116)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at jxl.read.biff.File.&amp;lt;init&amp;gt;(File.java:127)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at jxl.Workbook.getWorkbook(Workbook.java:268)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at etl_dev.exceltocsvtest_0_1.ExcelToCSVTest.tFileExcelWorkbookOpen_1Process(ExcelToCSVTest.java:2148)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at etl_dev.exceltocsvtest_0_1.ExcelToCSVTest.runJobInTOS(ExcelToCSVTest.java:7627)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at etl_dev.exceltocsvtest_0_1.ExcelToCSVTest.main(ExcelToCSVTest.java:7435)&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can anyone tell me why I am getting these errors? Is it because of the XLSX file or the Dynamic Schema?&lt;/P&gt; 
&lt;P&gt;And is there a workaround for the same?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:56:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-while-checking-excel-sheet-exists/m-p/2359851#M124556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error while checking excel sheet exists</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-while-checking-excel-sheet-exists/m-p/2359852#M124557</link>
      <description>&lt;P&gt;I think I have found the issue.&lt;/P&gt;&lt;P&gt;The exception is thrown when the tFileExcelWorkBookOpen and tFileInputExcel components are used with the XLSX option enabled.&lt;/P&gt;&lt;P&gt;I think the HSSF POI JARs used by both the components are different versions and hence cause the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anything be done for this?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 08:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-while-checking-excel-sheet-exists/m-p/2359852#M124557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-19T08:11:23Z</dc:date>
    </item>
  </channel>
</rss>

