<?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: Unparseable date: &amp;quot;2019-11-11&amp;quot; Error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-quot-2019-11-11-quot-Error/m-p/2240584#M28023</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLolAAG"&gt;@lli&lt;/A&gt;&amp;nbsp; Thank you.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Unfortunately, i have convert the string to date and the expression obviosuly doen't seem to work.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;row4.date!=null &amp;amp;&amp;amp; !row4.date.equals(" ") ? TalendDate.formatDate("EEE MMM dd hh:mm:ss:zzz yyyy",TalendDate.parseDate("yyyy-MM-dd",row4.date)) : null&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Anyone has idea on how to fix this?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 May 2020 00:18:04 GMT</pubDate>
    <dc:creator>desanip</dc:creator>
    <dc:date>2020-05-07T00:18:04Z</dc:date>
    <item>
      <title>Unparseable date: "2019-11-11" Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-quot-2019-11-11-quot-Error/m-p/2240579#M28018</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to convert the string value&amp;nbsp; "2019-11-11" to Date format using the following expression:&lt;/P&gt;
&lt;P&gt;row9.Date!=null &amp;amp;&amp;amp; !row9.Date.equals(" ") ? TalendDate.parseDate("EEE MMM dd hh:mm:ss:zzz yyyy",row9.Date) : null&lt;/P&gt;
&lt;P&gt;My target date format is&amp;nbsp;"EEE MMM dd hh:mm:ss:zzz yyyy".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone tell me what i am doing wrong.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:30:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-quot-2019-11-11-quot-Error/m-p/2240579#M28018</guid>
      <dc:creator>desanip</dc:creator>
      <dc:date>2024-11-16T02:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unparseable date: "2019-11-11" Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-quot-2019-11-11-quot-Error/m-p/2240580#M28019</link>
      <description>&lt;P&gt;So is the target data type a string also?&amp;nbsp; So first you have to convert to a date type with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TalendDate.parseDate("yyyy-MM-dd",row9.Date)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And take that result and convert it to your out format.&amp;nbsp; Do that with the 'formatDate' function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TalendDate.formatDate("EEE MMM dd hh:mm:ss:zzz yyyy",TalendDate.parseDate("yyyy-MM-dd",row9.Date))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 19:34:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-quot-2019-11-11-quot-Error/m-p/2240580#M28019</guid>
      <dc:creator>billimmer</dc:creator>
      <dc:date>2020-05-06T19:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unparseable date: "2019-11-11" Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-quot-2019-11-11-quot-Error/m-p/2240581#M28020</link>
      <description>&lt;P&gt;The target data type is date with format&amp;nbsp;&lt;SPAN&gt;EEE MMM dd hh:mm:ss:zzz yyyy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 19:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-quot-2019-11-11-quot-Error/m-p/2240581#M28020</guid>
      <dc:creator>desanip</dc:creator>
      <dc:date>2020-05-06T19:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unparseable date: "2019-11-11" Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-quot-2019-11-11-quot-Error/m-p/2240582#M28021</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLolAAG"&gt;@lli&lt;/A&gt;My target data type is date in format&amp;nbsp;"EEE MMM dd hh:mm:ss:zzz yyyy". When i try to use the expression you provided it throws a compilation error cannot convert from string to date.&lt;/P&gt; 
&lt;P&gt;I am using the following expression in my tmap:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;row4.date!=null &amp;amp;&amp;amp; !row4.date.equals(" ") ? TalendDate.formatDate("EEE MMM dd hh:mm:ss:zzz yyyy",TalendDate.parseDate("yyyy-MM-dd",row4.date)) : null&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 20:12:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-quot-2019-11-11-quot-Error/m-p/2240582#M28021</guid>
      <dc:creator>desanip</dc:creator>
      <dc:date>2020-05-06T20:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unparseable date: "2019-11-11" Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-quot-2019-11-11-quot-Error/m-p/2240583#M28022</link>
      <description>&lt;P&gt;I tested this and it will work if the &lt;STRONG&gt;in&lt;/STRONG&gt; data type is a String, and the &lt;STRONG&gt;out&lt;/STRONG&gt; data type is a String.&amp;nbsp; But that must not be the case.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If the &lt;STRONG&gt;in&lt;/STRONG&gt; value or the &lt;STRONG&gt;out&lt;/STRONG&gt; value, or &lt;STRONG&gt;both&lt;/STRONG&gt; are &lt;STRONG&gt;date&lt;/STRONG&gt; data types then you will get the error you mentioned.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What the expression &lt;STRONG&gt;currently&lt;/STRONG&gt; does is convert a String to a Date, and then to a String again, in the format you specify.&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 21:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-quot-2019-11-11-quot-Error/m-p/2240583#M28022</guid>
      <dc:creator>billimmer</dc:creator>
      <dc:date>2020-05-06T21:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unparseable date: "2019-11-11" Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-quot-2019-11-11-quot-Error/m-p/2240584#M28023</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLolAAG"&gt;@lli&lt;/A&gt;&amp;nbsp; Thank you.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Unfortunately, i have convert the string to date and the expression obviosuly doen't seem to work.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;row4.date!=null &amp;amp;&amp;amp; !row4.date.equals(" ") ? TalendDate.formatDate("EEE MMM dd hh:mm:ss:zzz yyyy",TalendDate.parseDate("yyyy-MM-dd",row4.date)) : null&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Anyone has idea on how to fix this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 00:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-quot-2019-11-11-quot-Error/m-p/2240584#M28023</guid>
      <dc:creator>desanip</dc:creator>
      <dc:date>2020-05-07T00:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unparseable date: "2019-11-11" Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-quot-2019-11-11-quot-Error/m-p/2240585#M28024</link>
      <description>&lt;P&gt;Can someone please take a look and suggest me the solution?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 12:23:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-quot-2019-11-11-quot-Error/m-p/2240585#M28024</guid>
      <dc:creator>desanip</dc:creator>
      <dc:date>2020-05-07T12:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unparseable date: "2019-11-11" Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-quot-2019-11-11-quot-Error/m-p/2240586#M28025</link>
      <description>&lt;P&gt;You are wrong.&amp;nbsp; The code works.&amp;nbsp; Test it as follows.&amp;nbsp; Create a job with one tJava component.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the tjava put your code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;String in = "2019-11-11";&lt;/P&gt;
&lt;P&gt;String out = in!=null &amp;amp;&amp;amp; !in.equals(" ") ? TalendDate.formatDate("EEE MMM dd hh:mm:ss:zzz yyyy",TalendDate.parseDate("yyyy-MM-dd",in)) : null;&lt;/P&gt;
&lt;P&gt;System.out.println(out);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output of the job is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[statistics] connecting to socket on port 3897&lt;BR /&gt;[statistics] connected&lt;BR /&gt;Mon Nov 11 12:00:00:CST 2019&lt;BR /&gt;[statistics] disconnected&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is not with this code, it's with your schema.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT:&amp;nbsp; You need to adjust your schema to match your code OR adjust your code to match your schema.&amp;nbsp; All the data types must match for this field, through all the steps of your job unless you specifically convert it to another data type at some point.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 19:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-quot-2019-11-11-quot-Error/m-p/2240586#M28025</guid>
      <dc:creator>billimmer</dc:creator>
      <dc:date>2020-05-07T19:10:32Z</dc:date>
    </item>
  </channel>
</rss>

