<?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: Excel Schema validation in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Excel-Schema-validation/m-p/2240406#M27908</link>
    <description>Hi Pooja 
&lt;BR /&gt;You can read the reject rows on tJavaRow or check the number of reject rows if it greater than 1, and then fires a tDie or a tWarn component to send a message, and use tLogCatcher to capture the error message. 
&lt;BR /&gt;Shong</description>
    <pubDate>Thu, 08 Aug 2013 18:02:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-08-08T18:02:00Z</dc:date>
    <item>
      <title>Excel Schema validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Excel-Schema-validation/m-p/2240401#M27903</link>
      <description>Hi Guys, 
&lt;BR /&gt;Is it possible to validate the excel schema in component tFileInputExcel before the job moves futher? 
&lt;BR /&gt;I've some schema defined as 
&lt;BR /&gt;ReportDate -- Date, 
&lt;BR /&gt;Name -- String, 
&lt;BR /&gt;Code -- String, 
&lt;BR /&gt;Text1 -- String, 
&lt;BR /&gt;Text2 -- String 
&lt;BR /&gt;My file name is picked up from the context as Context.FileName (I guess it doesn't matter if the schema is Built-in or Repository). 
&lt;BR /&gt;My input excel file has some missing column and is something like below 
&lt;BR /&gt;ReportDate, Name, Code, Text2 
&lt;BR /&gt;The excel file is missing the Text1 column, but the component tFileInputExcel_1 doesn't validate the schema and assumes the column Text2 is Text1 and the column after Text2 as Text2 (as in the image, the column I marked in red). 
&lt;BR /&gt;Is there a way the component tFileInputExcel_1 could have validated the incoming information (schema) from the excel file itself or can we validate it using some other component, wherein the component tSchemaComplianceCheck) is not working for me and also 'die on error' in tFileInputExcel do not work either. I'm using TIS(4.1.1) 
&lt;BR /&gt;Thanks.</description>
      <pubDate>Sat, 16 Nov 2024 13:02:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Excel-Schema-validation/m-p/2240401#M27903</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Schema validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Excel-Schema-validation/m-p/2240402#M27904</link>
      <description>Hi&lt;BR /&gt;After tFileInputExcel use a tSchemaComplainceCheck for schema check.&lt;BR /&gt;tFileInputExcel ----main---&amp;gt;tSchemaComplainceCheck</description>
      <pubDate>Wed, 16 Mar 2011 12:19:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Excel-Schema-validation/m-p/2240402#M27904</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-16T12:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Schema validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Excel-Schema-validation/m-p/2240403#M27905</link>
      <description>Hi Lijo,&lt;BR /&gt;The first image shows how I've set the components and I get the below result.&lt;BR /&gt;.------------+-----------------+----+--------+-----.&lt;BR /&gt;|                   AcceptedRows                   |&lt;BR /&gt;|=-----------+-----------------+----+--------+----=|&lt;BR /&gt;|ReportDate  |Name             |Code|Text1   |Text2|&lt;BR /&gt;|=-----------+-----------------+----+--------+----=|&lt;BR /&gt;|Dec 31, 2010|Talend Component1|ABC |blahbbbb|null |&lt;BR /&gt;|Dec 31, 2010|Talend Component2|EFG |blahdddd|null |&lt;BR /&gt;|Dec 31, 2010|Talend Component3|HIJ |blahffff|null |&lt;BR /&gt;'------------+-----------------+----+--------+-----'&lt;BR /&gt;.----------+----+----+-----+-----+---------+------------.&lt;BR /&gt;|                     RejectedRows                      |&lt;BR /&gt;|=---------+----+----+-----+-----+---------+-----------=|&lt;BR /&gt;|ReportDate|Name|Code|Text1|Text2|errorCode|errorMessage|&lt;BR /&gt;|=---------+----+----+-----+-----+---------+-----------=|&lt;BR /&gt;'----------+----+----+-----+-----+---------+------------'&lt;BR /&gt;Second image shows the setting for tSchemaComplianceCheck_1 component.&lt;BR /&gt;I also had the Custom defined option selected as in image 3, but none is working. I also had unchecked Die on error option in the tFileInputExcel_1. Also I cannot validate on Nullable columns.&lt;BR /&gt;Any other suggestion?&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 16 Mar 2011 12:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Excel-Schema-validation/m-p/2240403#M27905</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-16T12:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Schema validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Excel-Schema-validation/m-p/2240404#M27906</link>
      <description>Hi&lt;BR /&gt;In the third figure don't check anything as nullable. As you have checked it it will always go forward instead of being rejected.&lt;BR /&gt;hope the below screen shot will help you</description>
      <pubDate>Thu, 17 Mar 2011 15:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Excel-Schema-validation/m-p/2240404#M27906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-17T15:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Schema validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Excel-Schema-validation/m-p/2240405#M27907</link>
      <description>Hi,
&lt;BR /&gt;I am doing a Schema Validation using tSchemaComplicanceCheck against the tFileInputExcel. If the columns in the excel file changes then I am expecting the tSchemaComplicanceCheck to throw an error after doing a Schema check.
&lt;BR /&gt;I am aware that I can make uncheck the columns not to be nullable. But this will not throw an error. Instead it will give you the rejected rows.
&lt;BR /&gt; 
&lt;BR /&gt;Can someone give me a suggestion on how to work with this?
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Pooja.</description>
      <pubDate>Thu, 08 Aug 2013 15:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Excel-Schema-validation/m-p/2240405#M27907</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-08T15:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Schema validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Excel-Schema-validation/m-p/2240406#M27908</link>
      <description>Hi Pooja 
&lt;BR /&gt;You can read the reject rows on tJavaRow or check the number of reject rows if it greater than 1, and then fires a tDie or a tWarn component to send a message, and use tLogCatcher to capture the error message. 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 08 Aug 2013 18:02:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Excel-Schema-validation/m-p/2240406#M27908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-08T18:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Schema validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Excel-Schema-validation/m-p/2240407#M27909</link>
      <description>Hi Shong, 
&lt;BR /&gt;I am reading the rejected rows in the tLogRow. For testing purpose I deleted the number of columns from the excel sheet and did run the job. 
&lt;BR /&gt;As I wanted it is throwing an error because of the change in the columns. 
&lt;BR /&gt;But the error it is throwing is : 
&lt;BR /&gt;Exception in component tFileInputExcel_1 
&lt;BR /&gt;java.lang.RuntimeException: Special sheets not exist! 
&lt;BR /&gt;Can you tell me what does this error mean? 
&lt;BR /&gt;If it is throwing due to the inconsistency with columns then what I am doing is correct because that is what I am expecting. 
&lt;BR /&gt;When I am using tWarn and tLogCatcher as you said, it is throwing the warning as well as the previous error (special sheets not exist) 
&lt;BR /&gt;Let me know what is that error about? 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Pooja.</description>
      <pubDate>Thu, 08 Aug 2013 18:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Excel-Schema-validation/m-p/2240407#M27909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-08T18:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Schema validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Excel-Schema-validation/m-p/2240408#M27910</link>
      <description>Hi Pooja
&lt;BR /&gt;The special sheet name does not exist. You need to check the 'All sheet' option or input the sheet name in the Sheet list table and make sure the sheet name do exists. If there are multiple sheets in your excel file, and you want to read all sheets, check the 'All sheet' option.
&lt;BR /&gt;Shong</description>
      <pubDate>Sun, 11 Aug 2013 15:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Excel-Schema-validation/m-p/2240408#M27910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-11T15:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Schema validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Excel-Schema-validation/m-p/2240409#M27911</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How can we display number of reject rows on tJavaRow component? Is there any global variable to do so?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;Nilesh&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 07:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Excel-Schema-validation/m-p/2240409#M27911</guid>
      <dc:creator>Rahul_Lohar</dc:creator>
      <dc:date>2018-10-31T07:46:08Z</dc:date>
    </item>
  </channel>
</rss>

