<?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: isDate in tMap Expressioneditor still throws a java.sql.SQLException in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/isDate-in-tMap-Expressioneditor-still-throws-a-java-sql/m-p/2288880#M62299</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLARAA4"&gt;@bey0nd&lt;/A&gt;,in a tMap of under Activate /unactivate expression filter specify the below way and let me know.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;TalendDate.isDate(date,"dd.MM.yyyy")&lt;/P&gt;</description>
    <pubDate>Thu, 02 Aug 2018 10:33:03 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2018-08-02T10:33:03Z</dc:date>
    <item>
      <title>isDate in tMap Expressioneditor still throws a java.sql.SQLException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/isDate-in-tMap-Expressioneditor-still-throws-a-java-sql/m-p/2288879#M62298</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;i´m using a tFileInputDelimited to read a csv file, which is connected to a tMap. The tMap then is connected to a tSchemaComplianceCheck, which then is connected to a tMSSqlOutput.&lt;/P&gt; 
&lt;P&gt;Inside the tMap i use the Expressioneditor for date fields, as we are struggling with invalid date data.&lt;/P&gt; 
&lt;PRE&gt;TalendDate.isDate(StringHandling.TRIM(row1.RBKP_BLDAT), "dd.MM.yyyy") ? TalendDate.parseDate("dd.MM.yyyy", StringHandling.TRIM(row1.RBKP_BLDAT)) : null&lt;/PRE&gt; 
&lt;P&gt;So the input stream should be checked by the TalendDate.isDate function. If the date is a valid date then it should be passed to the TalendDate.parseDate function for the output stream, if it´s not a valid date it should simply pass NULL to the output stream.&lt;/P&gt; 
&lt;P&gt;The invalid date is:&lt;/P&gt; 
&lt;PRE&gt;17.02.0118&lt;/PRE&gt; 
&lt;P&gt;So what i am asking is: why does the TalendDate.isDate function return true instead of false for that date, and therefor an invaled date for the output stream?&lt;/P&gt; 
&lt;P&gt;I´m getting a&lt;/P&gt; 
&lt;PRE&gt;Exception in component tMSSqlOutput_1
java.sql.SQLException: Only dates between January 1, 1753 and December 31, 9999 are accepted.&lt;/PRE&gt; 
&lt;P&gt;Or how could i make sure always pass valid dates to the tMSSqlOutput stream?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/isDate-in-tMap-Expressioneditor-still-throws-a-java-sql/m-p/2288879#M62298</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: isDate in tMap Expressioneditor still throws a java.sql.SQLException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/isDate-in-tMap-Expressioneditor-still-throws-a-java-sql/m-p/2288880#M62299</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLARAA4"&gt;@bey0nd&lt;/A&gt;,in a tMap of under Activate /unactivate expression filter specify the below way and let me know.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;TalendDate.isDate(date,"dd.MM.yyyy")&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 10:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/isDate-in-tMap-Expressioneditor-still-throws-a-java-sql/m-p/2288880#M62299</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-08-02T10:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: isDate in tMap Expressioneditor still throws a java.sql.SQLException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/isDate-in-tMap-Expressioneditor-still-throws-a-java-sql/m-p/2288881#M62300</link>
      <description>&lt;P&gt;If I'm understanding your explanation correctly, the problem is that 17.02.0118 is a valid date (17th February 118), so Talend is happy, however, SQL Server doesn't like a date in the year 118, hence its message about the year must be between 1753 and 9999.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You probably need some kind of data quality check to ensure that dates are within a sensible range.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;David.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 13:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/isDate-in-tMap-Expressioneditor-still-throws-a-java-sql/m-p/2288881#M62300</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2018-08-02T13:30:10Z</dc:date>
    </item>
  </channel>
</rss>

