<?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 generating a java.lang.Error on yyyyMMdd form in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-isDate-function-generating-a-java-lang-Error-on-yyyyMMdd/m-p/2327670#M97033</link>
    <description>I am attempting to use the isDate function in an expression for a incoming 8 character date string to see if it is a valid date or not. The date is in a ?yyyymmdd? format. The expression I am using is as follows: TalendDate.isDate(row1.OPTOUT_DATE,"yyyyMMdd") == true ? TalendDate.parseDate("yyyy-MM-dd",row1.OPTOUT_DATE):null. I am using the Test functionality in Expression Builder to ensure the logic works. It does if I change the date format to ?yyyy-MM-dd?, but not ?yyyyMMdd?. Test window in Expression builder displays the following error when I a date such as 20130906 as a value for the OPTOUT_DATE variable: Exception in thread "main" java.lang.Error: Unresolved compilation problems: . Has anyone encountered this issue before and do you have a resolution or workaround I can use in Talend Expression Builder.</description>
    <pubDate>Fri, 06 Sep 2013 16:00:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-09-06T16:00:25Z</dc:date>
    <item>
      <title>Talend isDate function generating a java.lang.Error on yyyyMMdd form</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-isDate-function-generating-a-java-lang-Error-on-yyyyMMdd/m-p/2327670#M97033</link>
      <description>I am attempting to use the isDate function in an expression for a incoming 8 character date string to see if it is a valid date or not. The date is in a ?yyyymmdd? format. The expression I am using is as follows: TalendDate.isDate(row1.OPTOUT_DATE,"yyyyMMdd") == true ? TalendDate.parseDate("yyyy-MM-dd",row1.OPTOUT_DATE):null. I am using the Test functionality in Expression Builder to ensure the logic works. It does if I change the date format to ?yyyy-MM-dd?, but not ?yyyyMMdd?. Test window in Expression builder displays the following error when I a date such as 20130906 as a value for the OPTOUT_DATE variable: Exception in thread "main" java.lang.Error: Unresolved compilation problems: . Has anyone encountered this issue before and do you have a resolution or workaround I can use in Talend Expression Builder.</description>
      <pubDate>Fri, 06 Sep 2013 16:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-isDate-function-generating-a-java-lang-Error-on-yyyyMMdd/m-p/2327670#M97033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-06T16:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Talend isDate function generating a java.lang.Error on yyyyMMdd form</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-isDate-function-generating-a-java-lang-Error-on-yyyyMMdd/m-p/2327671#M97034</link>
      <description>Shouldn't the formats that you're passing to isDate and parseDate be the same?</description>
      <pubDate>Fri, 06 Sep 2013 16:27:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-isDate-function-generating-a-java-lang-Error-on-yyyyMMdd/m-p/2327671#M97034</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-06T16:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Talend isDate function generating a java.lang.Error on yyyyMMdd form</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-isDate-function-generating-a-java-lang-Error-on-yyyyMMdd/m-p/2327672#M97035</link>
      <description>And don't trust the Test window in Expression builder. Best way is to look at the whole generated Code or run the job.</description>
      <pubDate>Sat, 07 Sep 2013 01:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-isDate-function-generating-a-java-lang-Error-on-yyyyMMdd/m-p/2327672#M97035</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-09-07T01:00:33Z</dc:date>
    </item>
  </channel>
</rss>

