<?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 Talend IsDate function's peculiar behavior in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-IsDate-function-s-peculiar-behavior/m-p/2366717#M130171</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have tschemacompliancecheck component in my job to validate incoming source file. As part of the process, the rejected data is captured and sent back to the business user to fix it. Clean data is loaded to target table.&lt;/P&gt;&lt;P&gt;My issue is with Date formats, this component doesn't detect errors in dates when it has "5 digits" in the year portion of the date.&lt;/P&gt;&lt;P&gt;For instance, below is my source data:&lt;/P&gt;&lt;P&gt;SKU|TYPE|SALE_FROM|SALE_TO&lt;/P&gt;&lt;P&gt;209312|text|&lt;/P&gt;&lt;P&gt;20181-07-26|20221-08-30&lt;/P&gt;&lt;P&gt;211448|text|&lt;/P&gt;&lt;P&gt;20182-11-01|20231-12-31&lt;/P&gt;&lt;P&gt;211896|text|&lt;/P&gt;&lt;P&gt;20183-10-26|20241-09-24&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the snippet of the code: &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000IeJG5AAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140862i44C1057AD4FABF2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000IeJG5AAN.png" alt="0695b00000IeJG5AAN.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even checked the code that's been generated to make sure its there as well:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000IeJGUAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136346iA85708A7D8AFE6DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000IeJGUAA3.png" alt="0695b00000IeJGUAA3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this data is being loaded to target table rather than getting rejected:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000IeJHIAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140190iB404734FB29DCC95/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000IeJHIAA3.png" alt="0695b00000IeJHIAA3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This doesn't make any sense to me. Can someone please guide? Is there any limitation to isDate function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:44:12 GMT</pubDate>
    <dc:creator>sneha_y</dc:creator>
    <dc:date>2024-11-15T23:44:12Z</dc:date>
    <item>
      <title>Talend IsDate function's peculiar behavior</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-IsDate-function-s-peculiar-behavior/m-p/2366717#M130171</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have tschemacompliancecheck component in my job to validate incoming source file. As part of the process, the rejected data is captured and sent back to the business user to fix it. Clean data is loaded to target table.&lt;/P&gt;&lt;P&gt;My issue is with Date formats, this component doesn't detect errors in dates when it has "5 digits" in the year portion of the date.&lt;/P&gt;&lt;P&gt;For instance, below is my source data:&lt;/P&gt;&lt;P&gt;SKU|TYPE|SALE_FROM|SALE_TO&lt;/P&gt;&lt;P&gt;209312|text|&lt;/P&gt;&lt;P&gt;20181-07-26|20221-08-30&lt;/P&gt;&lt;P&gt;211448|text|&lt;/P&gt;&lt;P&gt;20182-11-01|20231-12-31&lt;/P&gt;&lt;P&gt;211896|text|&lt;/P&gt;&lt;P&gt;20183-10-26|20241-09-24&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the snippet of the code: &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000IeJG5AAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140862i44C1057AD4FABF2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000IeJG5AAN.png" alt="0695b00000IeJG5AAN.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even checked the code that's been generated to make sure its there as well:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000IeJGUAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136346iA85708A7D8AFE6DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000IeJGUAA3.png" alt="0695b00000IeJGUAA3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this data is being loaded to target table rather than getting rejected:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000IeJHIAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140190iB404734FB29DCC95/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000IeJHIAA3.png" alt="0695b00000IeJHIAA3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This doesn't make any sense to me. Can someone please guide? Is there any limitation to isDate function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:44:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-IsDate-function-s-peculiar-behavior/m-p/2366717#M130171</guid>
      <dc:creator>sneha_y</dc:creator>
      <dc:date>2024-11-15T23:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Talend IsDate function's peculiar behavior</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-IsDate-function-s-peculiar-behavior/m-p/2366718#M130172</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Which version of studio are you using? I just made a simple testing and I can't reproduce the issue, see&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000IeOxTAAV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128840iBEEE79AE17170BDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000IeOxTAAV.png" alt="0695b00000IeOxTAAV.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note, the data type of source data is string.&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>Wed, 15 Sep 2021 01:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-IsDate-function-s-peculiar-behavior/m-p/2366718#M130172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-15T01:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Talend IsDate function's peculiar behavior</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-IsDate-function-s-peculiar-behavior/m-p/2366719#M130173</link>
      <description>&lt;P&gt;Try 20221-04-12. I am 100% sure it would let it through.&lt;/P&gt;&lt;P&gt;20221-4-12 was rejected because tschemacompliancecheck doesn't take single digit month (m/4, expects 04). &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I read through the java code for IsDate routine, and it basically uses SimpleDateFormat behind the scenes. I feel that SimpleDateFormat converts any 5 digits date to the closest date within a century. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.oracle.com/javase/7/docs/api/java/text/DateFormat.html#parse%28java.lang.String%29" alt="https://docs.oracle.com/javase/7/docs/api/java/text/DateFormat.html#parse%28java.lang.String%29" target="_blank"&gt;https://docs.oracle.com/javase/7/docs/api/java/text/DateFormat.html#parse%28java.lang.String%29&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html" alt="https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html" target="_blank"&gt;https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But what surprises me is that this component's sole purpose is to check the integrity of data. I wish Talend would use something robust rather than SimpleDateFormat to do this check. Again, this is based on what I read.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Talend 7.0.1 version.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 06:15:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-IsDate-function-s-peculiar-behavior/m-p/2366719#M130173</guid>
      <dc:creator>sneha_y</dc:creator>
      <dc:date>2021-09-16T06:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Talend IsDate function's peculiar behavior</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-IsDate-function-s-peculiar-behavior/m-p/2366720#M130174</link>
      <description>&lt;P&gt;@Sneha Yalamarty​&amp;nbsp;, i tried again and I confirmed the issue, can you please report a jira issue under Talend DI component project on our &lt;A href="https://jira.talendforge.org/secure/Dashboard.jspa" alt="https://jira.talendforge.org/secure/Dashboard.jspa" target="_blank"&gt;bugtracker&lt;/A&gt;?&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>Thu, 16 Sep 2021 08:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-IsDate-function-s-peculiar-behavior/m-p/2366720#M130174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-16T08:43:00Z</dc:date>
    </item>
  </channel>
</rss>

