<?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: tMap with excel inputs, how to continue if 1 excel fatal errors / fail in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264537#M44345</link>
    <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;I don't see how that helps my problem.&lt;BR /&gt;My problem is the excel file is missing sheet 2.&amp;nbsp;&lt;BR /&gt;So When the tFileInputExcel tries to read the file, it gets a error:&lt;BR /&gt;: testtalend.stationsubjobtest_0_1.StationSubjobtest - tFileInputExcel_1 Special sheets not exist!&lt;BR /&gt;Even though I put Die on Error as unchecked, it still dies. tFileList stops iterating due to the error in tFileInputExcel&amp;nbsp;&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;it simple - make ALL files with Sheet 2, some of them will be empty, some of them not
&lt;BR /&gt;Output component - create sheet if it missed, and leave all other information unchanged
&lt;BR /&gt;if You insert any data outside You real structure - You avoid next step runtime exception&amp;nbsp;
&lt;BR /&gt;How do I create sheet if missed?
&lt;BR /&gt;In the long run we will be getting files off a FTP server so I need a way to verify the files to prevent errors.&amp;nbsp;
&lt;BR /&gt;Furthermore the people providing the files have said some excels will have 1 sheet, some will have 2, so it is something I need to be able to catch.&amp;nbsp;</description>
    <pubDate>Tue, 14 Feb 2017 07:08:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-02-14T07:08:44Z</dc:date>
    <item>
      <title>tMap with excel inputs, how to continue if 1 excel fatal errors / fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264531#M44339</link>
      <description>So I got a bunch of excel files, all in 1 folder. &amp;nbsp;The data is on several sheets in the excel file, so I get data like:
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;id	name	Address&lt;BR /&gt;1	Tom	Green street&lt;BR /&gt;2	Dick	Blue Street&lt;BR /&gt;3	Harry	Red Street&lt;/PRE&gt;
&lt;BR /&gt;Sheet 1
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;id	status&lt;BR /&gt;1	valid&lt;BR /&gt;2	valid&lt;BR /&gt;3	invalid&lt;/PRE&gt;
&lt;BR /&gt;Sheet 2
&lt;BR /&gt;So I'm using tMap to join the 2 sheets, and eventually pass the values to a database.
&lt;BR /&gt;My problem is, not all excel sheets have &amp;nbsp;sheet 2. So if there is no sheet 2, I'm supposed to give them the status of invalid.
&lt;BR /&gt;Whats the best way to do this? Right now I keep getting a Fatal Exception, java.lang.RuntimeException: Special sheets not exist!
&lt;BR /&gt;And then the loop stops. even if I put a "OnComponentError" flow, the overall job still stops when it encounters the first excel with no sheet 2
&lt;BR /&gt;Any ideas on how to solve this?</description>
      <pubDate>Fri, 10 Feb 2017 07:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264531#M44339</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-10T07:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: tMap with excel inputs, how to continue if 1 excel fatal errors / fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264532#M44340</link>
      <description>Hi,&lt;BR /&gt;How did you join your&amp;nbsp;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;2 sheets by using tMap component? Would you mind posting your job setting screenshots into forum so that we can see if there is any wrong setting in your work flow?&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Mon, 13 Feb 2017 02:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264532#M44340</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-13T02:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: tMap with excel inputs, how to continue if 1 excel fatal errors / fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264533#M44341</link>
      <description>There is my flow.&amp;nbsp; 
&lt;BR /&gt;Very new to talend so, any critique /advice / best practice is welcome 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDHa.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146278iB77FD1D93CFF79B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDHa.png" alt="0683p000009MDHa.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 13 Feb 2017 03:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264533#M44341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-13T03:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: tMap with excel inputs, how to continue if 1 excel fatal errors / fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264534#M44342</link>
      <description>as variant (may be not the best), but You can write by tExcellOuput (Append to existing file, Append to Existing Sheet) 
&lt;BR /&gt;somewhere outside You column (like in column 150, first row) - it will create sheet if it not exists 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD5M.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138192iA50CAB3E197FA2FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD5M.png" alt="0683p000009MD5M.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 13 Feb 2017 08:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264534#M44342</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-02-13T08:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: tMap with excel inputs, how to continue if 1 excel fatal errors / fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264535#M44343</link>
      <description>I don't see how that helps my problem.&lt;BR /&gt;My problem is the excel file is missing sheet 2.&amp;nbsp;&lt;BR /&gt;So When the tFileInputExcel tries to read the file, it gets a error:&lt;BR /&gt;: testtalend.stationsubjobtest_0_1.StationSubjobtest - tFileInputExcel_1 Special sheets not exist!&lt;BR /&gt;Even though I put Die on Error as unchecked, it still dies. tFileList stops iterating due to the error in tFileInputExcel&amp;nbsp;</description>
      <pubDate>Tue, 14 Feb 2017 02:04:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264535#M44343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-14T02:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: tMap with excel inputs, how to continue if 1 excel fatal errors / fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264536#M44344</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;I don't see how that helps my problem.&lt;BR /&gt;My problem is the excel file is missing sheet 2.&amp;nbsp;&lt;BR /&gt;So When the tFileInputExcel tries to read the file, it gets a error:&lt;BR /&gt;: testtalend.stationsubjobtest_0_1.StationSubjobtest - tFileInputExcel_1 Special sheets not exist!&lt;BR /&gt;Even though I put Die on Error as unchecked, it still dies. tFileList stops iterating due to the error in tFileInputExcel&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;it simple - make ALL files with Sheet 2, some of them will be empty, some of them not&lt;BR /&gt;Output component - create sheet if it missed, and leave all other information unchanged&lt;BR /&gt;if You insert any data outside You real structure - You avoid next step runtime exception&amp;nbsp;</description>
      <pubDate>Tue, 14 Feb 2017 02:43:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264536#M44344</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-02-14T02:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: tMap with excel inputs, how to continue if 1 excel fatal errors / fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264537#M44345</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;I don't see how that helps my problem.&lt;BR /&gt;My problem is the excel file is missing sheet 2.&amp;nbsp;&lt;BR /&gt;So When the tFileInputExcel tries to read the file, it gets a error:&lt;BR /&gt;: testtalend.stationsubjobtest_0_1.StationSubjobtest - tFileInputExcel_1 Special sheets not exist!&lt;BR /&gt;Even though I put Die on Error as unchecked, it still dies. tFileList stops iterating due to the error in tFileInputExcel&amp;nbsp;&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;it simple - make ALL files with Sheet 2, some of them will be empty, some of them not
&lt;BR /&gt;Output component - create sheet if it missed, and leave all other information unchanged
&lt;BR /&gt;if You insert any data outside You real structure - You avoid next step runtime exception&amp;nbsp;
&lt;BR /&gt;How do I create sheet if missed?
&lt;BR /&gt;In the long run we will be getting files off a FTP server so I need a way to verify the files to prevent errors.&amp;nbsp;
&lt;BR /&gt;Furthermore the people providing the files have said some excels will have 1 sheet, some will have 2, so it is something I need to be able to catch.&amp;nbsp;</description>
      <pubDate>Tue, 14 Feb 2017 07:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264537#M44345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-14T07:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: tMap with excel inputs, how to continue if 1 excel fatal errors / fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264538#M44346</link>
      <description>what are You want hear from me? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; 
&lt;BR /&gt;Just do this, and test 
&lt;BR /&gt;between download and input insert 1 more element - for each iteration, it create sheet automatically if it missed, and will use if it already there, AND(!!!) not overwrite original information 
&lt;BR /&gt;Why - I can test it before suggest, but You do not want spend 1 min for create quick test? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; 
&lt;BR /&gt;THIS IS FULLY WORK - effective or not, it other question (but it still quick) 
&lt;BR /&gt;This is if You have less than 150 columns in You schema, just test it 
&lt;BR /&gt;tFTP -&amp;gt; then for each iteration -&amp;gt; dummy input (like tfixedflowinput) -&amp;gt; tExcelOutput 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDHf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130359iFFF5B2E20DD900B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDHf.png" alt="0683p000009MDHf.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 14 Feb 2017 08:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264538#M44346</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-02-14T08:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: tMap with excel inputs, how to continue if 1 excel fatal errors / fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264539#M44347</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Why - I can test it before suggest, but You do not want spend 1 min for create quick test? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;I did test it... however the process was extremely slow (30 seconds) and the files became very big (900kb to 20mb) and some files threw errors&amp;nbsp; 
&lt;BR /&gt;Warning: &amp;nbsp;Unrecognized token 60 for cells C323-C65536 
&lt;BR /&gt;Exception in component tFileOutputExcel_1 
&lt;BR /&gt;java.lang.NullPointerException 
&lt;BR /&gt;at jxl.biff.formula.TokenFormulaParser.getFormula(TokenFormulaParser.java:471) 
&lt;BR /&gt;at jxl.biff.formula.FormulaParser.getFormula(FormulaParser.java:172) 
&lt;BR /&gt;at jxl.biff.DVParser.&amp;lt;init&amp;gt;(DVParser.java:669) 
&lt;BR /&gt;at jxl.biff.BaseCellFeatures.getDVParser(BaseCellFeatures.java:501) 
&lt;BR /&gt;at jxl.write.biff.SheetWriter.writeDataValidation(SheetWriter.java:1137) 
&lt;BR /&gt;at jxl.write.biff.SheetWriter.write(SheetWriter.java:581) 
&lt;BR /&gt;at jxl.write.biff.WritableSheetImpl.write(WritableSheetImpl.java:1558) 
&lt;BR /&gt;at jxl.write.biff.WritableWorkbookImpl.write(WritableWorkbookImpl.java:950) 
&lt;BR /&gt;at testtalend.testarea_0_1.TestArea.tFileList_1Process(TestArea.java:2043) 
&lt;BR /&gt;at testtalend.testarea_0_1.TestArea.runJobInTOS(TestArea.java:2426) 
&lt;BR /&gt;at testtalend.testarea_0_1.TestArea.main(TestArea.java:2260) 
&lt;BR /&gt;: testtalend.testarea_0_1.TestArea - tFileOutputExcel_1 null 
&lt;BR /&gt; 
&lt;BR /&gt;So I don't think &amp;nbsp;I can use that as a solution. It's a nice idea but I think writing to excel files is a very intensive, and might cause more issues in the long run.&amp;nbsp; 
&lt;BR /&gt; 
&lt;BR /&gt;Plus it does not solve the root problem, How do I continue the loop, if a component gets a fatal error? 
&lt;BR /&gt;How to do error handling</description>
      <pubDate>Wed, 15 Feb 2017 06:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264539#M44347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-15T06:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: tMap with excel inputs, how to continue if 1 excel fatal errors / fail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264540#M44348</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt; 
     &lt;BLOCKQUOTE&gt; 
      &lt;TABLE border="1"&gt; 
       &lt;TBODY&gt; 
        &lt;TR&gt; 
         &lt;TD&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Why - I can test it before suggest, but You do not want spend 1 min for create quick test? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt; 
        &lt;/TR&gt; 
       &lt;/TBODY&gt; 
      &lt;/TABLE&gt; 
     &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;I did test it... however the process was extremely slow (30 seconds) and the files became very big (900kb to 20mb) and some files threw errors&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Plus it does not solve the root problem, How do I continue the loop, if a component gets a fatal error?&lt;BR /&gt;How to do error handling&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Not sure - what also wrong in Your case: 
&lt;BR /&gt;- I was make test with files with original size 3.5Mb (40000 rows) 
&lt;BR /&gt;- size not growing after operations 
&lt;BR /&gt;- slow, but much faster then described by You 
&lt;BR /&gt;- last portion of error - do not know, You must investigate it 
&lt;BR /&gt; 
&lt;BR /&gt;in any case: 
&lt;BR /&gt;You can use Community components from Jan Lolling: 
&lt;BR /&gt;tFileExcelWorkBookOpen -&amp;gt; tFileExcelList -&amp;gt; iterate over list -&amp;gt;Split flow by RunIf "SheetName present or not" for 2 separate flow 
&lt;BR /&gt;One more alternative - write Java routine for check if sheet exists or not and add it to Job 
&lt;BR /&gt; 
&lt;BR /&gt;About main - question 
&lt;BR /&gt;You can open the ticket on Jira, for add exception - not die "if Sheet not found" 
&lt;BR /&gt;because if component Die - job could be continued to next iteration,&amp;nbsp; 
&lt;BR /&gt;but in this case (runtime NullPointer exceptions) completely Job Die and You can not handle it on same level 
&lt;BR /&gt;You can create top level Job and run internationally SubJobs with parameters, if You uncheck Die on error - top level Job will continue to next iteration if SubJob Die</description>
      <pubDate>Wed, 15 Feb 2017 22:09:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-with-excel-inputs-how-to-continue-if-1-excel-fatal-errors/m-p/2264540#M44348</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-02-15T22:09:23Z</dc:date>
    </item>
  </channel>
</rss>

