<?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: tSchemaComplianceCheck with Excel Date in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tSchemaComplianceCheck-with-Excel-Date/m-p/2341156#M109133</link>
    <description>Since Excel stores dates internally as long integers, I wonder if reading the date and converting it a String is giving you Excel's internal representation, rather than the actual date: that would explain why it worked after you explicitly parsed the field is a Date in Talend. Just a thought, YMMV. 
&lt;BR /&gt; 
&lt;BR /&gt;David</description>
    <pubDate>Fri, 21 Jul 2017 14:18:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-07-21T14:18:21Z</dc:date>
    <item>
      <title>tSchemaComplianceCheck with Excel Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSchemaComplianceCheck-with-Excel-Date/m-p/2341155#M109132</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have to check multiple file sources (xls &amp;amp; xlsx) format. So I made a job that read all files from tFileList, put their content in a buffer with all columns defined as string.&lt;/P&gt;
&lt;P&gt;Then I read the buffer and the flow enter the tSchemaComplianceCheck component in wich date columns have to match this pattern "EEE MMM d HH:mm:ss zzz yyyy". I made this pattern because, if I put a tLogRow preceding SchemaComplianceCheck, I noticed that date columns for Excel file came like this "Fri Mar 31 00:00:00 CEST 2017".&lt;/P&gt;
&lt;P&gt;The job return "wrong DATE pattern or wrong DATE data" ... why ? Is it because the pattern expected a date in french format ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I put a tMap after reading my buffer with an output column defined as Date and this expression to fill it : TalendDate.parseDateLocale("EEE MMM d HH:mm:ss zzz yyyy", row9.PF0006,"en")&amp;nbsp;&amp;nbsp; it works ! The only difference I see is that parseDateLocale have the "en" option to tell that the date is in english format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks to the community for any help !&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 17:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSchemaComplianceCheck-with-Excel-Date/m-p/2341155#M109132</guid>
      <dc:creator>Nikko</dc:creator>
      <dc:date>2017-07-20T17:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: tSchemaComplianceCheck with Excel Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSchemaComplianceCheck-with-Excel-Date/m-p/2341156#M109133</link>
      <description>Since Excel stores dates internally as long integers, I wonder if reading the date and converting it a String is giving you Excel's internal representation, rather than the actual date: that would explain why it worked after you explicitly parsed the field is a Date in Talend. Just a thought, YMMV. 
&lt;BR /&gt; 
&lt;BR /&gt;David</description>
      <pubDate>Fri, 21 Jul 2017 14:18:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSchemaComplianceCheck-with-Excel-Date/m-p/2341156#M109133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-21T14:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: tSchemaComplianceCheck with Excel Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSchemaComplianceCheck-with-Excel-Date/m-p/2341157#M109134</link>
      <description>&lt;P&gt;Yes, but if I don't read date as a string I can't check date format with schemaComplianceCheck.&lt;/P&gt;
&lt;P&gt;Anyway, it's the same problem for numeric values that cames with a coma rather than point or with spaces between numbers depending on how the producer of the Excel file build it. I'm gonna write java routines to handle all of these issues.&lt;/P&gt;
&lt;P&gt;As your are the only one to answer, it seems that my problem did not raise interest in the community, so I'll close this subject !&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 14:24:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSchemaComplianceCheck-with-Excel-Date/m-p/2341157#M109134</guid>
      <dc:creator>Nikko</dc:creator>
      <dc:date>2017-07-21T14:24:19Z</dc:date>
    </item>
  </channel>
</rss>

