<?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: reject invalid date in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332280#M101178</link>
    <description>&lt;P&gt;Hi  &lt;/P&gt;&lt;P&gt;Uncheck the 'die on error' and the 'use batch size' boxes, then you are able to output the rejected data to a file. &lt;/P&gt;&lt;P&gt;...tMssqlOutput--reject--tFileOutputDelimited.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 08:13:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-11T08:13:04Z</dc:date>
    <item>
      <title>reject invalid date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332279#M101177</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am loading data from csv file to sqlserver DB.&lt;/P&gt;&lt;P&gt;I have a date filed(DOB) in YYYY-MM-DD format.&lt;/P&gt;&lt;P&gt;sometimes we receive  date like 0001-09-03, though format is correct, its incorrect date   and we get error from sqlserver like&lt;/P&gt;&lt;P&gt;" Exception in component tDBOutput_5&lt;/P&gt;&lt;P&gt;java.sql.SQLException: Only dates between January 1, 1753 and December 31, 9999 are accepted." and it stops the flow.&lt;/P&gt;&lt;P&gt;So how can I reject those records and continue the flow. I just wanted to move to reject file and continue the flow&lt;/P&gt;&lt;P&gt;can I do it using tschemacompliance or tmap?&lt;/P&gt;&lt;P&gt;I am using Talend DI 8&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332279#M101177</guid>
      <dc:creator>rishind</dc:creator>
      <dc:date>2024-11-15T22:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: reject invalid date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332280#M101178</link>
      <description>&lt;P&gt;Hi  &lt;/P&gt;&lt;P&gt;Uncheck the 'die on error' and the 'use batch size' boxes, then you are able to output the rejected data to a file. &lt;/P&gt;&lt;P&gt;...tMssqlOutput--reject--tFileOutputDelimited.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 08:13:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332280#M101178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-11T08:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: reject invalid date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332281#M101179</link>
      <description>&lt;P&gt;Hi Shaung,&lt;/P&gt;&lt;P&gt;I want to reject invalid record while reading file.&lt;/P&gt;&lt;P&gt;Is there any option in tfilelist to accept date  between date range? &lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 09:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332281#M101179</guid>
      <dc:creator>rishind</dc:creator>
      <dc:date>2022-11-14T09:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: reject invalid date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332282#M101180</link>
      <description>&lt;P&gt;tFileList is used to iterate files rather than reading the file content, you can filter the data after reading the file, eg:&lt;/P&gt;&lt;P&gt;tFileInputDelimited--main--tFilterRow--main--&amp;gt;tDBOutput&lt;/P&gt;&lt;P&gt;***********************************************--reject--tFileOutputDelimited.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 07:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332282#M101180</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-15T07:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: reject invalid date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332283#M101181</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am rejecting records in tmap by filtering  on date like&lt;/P&gt;&lt;P&gt;(TalendDate.getPartOfDate("YEAR",(row1.DOB))&amp;gt;=1753 &amp;amp;&amp;amp; TalendDate.getPartOfDate("YEAR",(row1.DOB))&amp;lt;=9999)&lt;/P&gt;&lt;P&gt;but when it encounters null it treats as 0,so it filter out record where date is null.(assuming it to 0)&lt;/P&gt;&lt;P&gt;so I tried below &lt;/P&gt;&lt;P&gt;1)row1.DOB!=null?row1.DOB:(TalendDate.getPartOfDate("YEAR",(row1.DOB))&amp;gt;=1753 &amp;amp;&amp;amp; TalendDate.getPartOfDate("YEAR",(row1.DOB))&amp;lt;=9999):row1.DOB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it throws java null pointer execption error&lt;/P&gt;&lt;P&gt;so is there a way where it should apply above logic for only non null fields&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 09:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332283#M101181</guid>
      <dc:creator>rishind</dc:creator>
      <dc:date>2022-11-15T09:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: reject invalid date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332284#M101182</link>
      <description>&lt;P&gt;Where do you write this expression? It seems the logic of your expression is wrong. &lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 10:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332284#M101182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-15T10:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: reject invalid date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332285#M101183</link>
      <description>&lt;P&gt;In tmap expression filter&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 13:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332285#M101183</guid>
      <dc:creator>rishind</dc:creator>
      <dc:date>2022-11-15T13:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: reject invalid date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332286#M101184</link>
      <description>&lt;P&gt;try this &lt;/P&gt;&lt;P&gt;row1.DOB!=null&amp;amp;&amp;amp;(TalendDate.getPartOfDate("YEAR",(row1.DOB))&amp;gt;=1753 &amp;amp;&amp;amp; TalendDate.getPartOfDate("YEAR",(row1.DOB))&amp;lt;=9999))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 02:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332286#M101184</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-16T02:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: reject invalid date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332287#M101185</link>
      <description>&lt;P&gt;I tried below and it worked&lt;/P&gt;&lt;P&gt;TalendDate.getPartOfDate("YEAR",(row1.DOB))&amp;gt;=1753 || TalendDate.getPartOfDate("YEAR",(row1.DOB))==0))&lt;/P&gt;&lt;P&gt;) because TalendDate.getPartOfDate is treating null as 0(DOB could be null also)&lt;/P&gt;&lt;P&gt;I cannot use!=null as there null records in DOB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for Support shong!!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 14:24:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332287#M101185</guid>
      <dc:creator>rishind</dc:creator>
      <dc:date>2022-11-16T14:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: reject invalid date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332288#M101186</link>
      <description>&lt;P&gt;Great, thanks for your feedback!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 07:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reject-invalid-date/m-p/2332288#M101186</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-17T07:37:09Z</dc:date>
    </item>
  </channel>
</rss>

