<?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: [resolved] Unparseable Date with date format dd-Mon-yyyy in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334306#M102986</link>
    <description>hi,&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;Unparseable date: "2014-12-30 00:00:00.0"&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;And what is the pattern you're using ?&lt;BR /&gt;regards&lt;BR /&gt;laurent</description>
    <pubDate>Tue, 25 Nov 2014 16:38:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-11-25T16:38:58Z</dc:date>
    <item>
      <title>[resolved] Unparseable Date with date format dd-Mon-yyyy</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334297#M102977</link>
      <description>Hello,
&lt;BR /&gt;This might be stupid but I am struggling with this issue for 2 hours now.
&lt;BR /&gt;csv file contains
&lt;BR /&gt;Date, Bid, Offer, Mid
&lt;BR /&gt;10-Apr-2014, 21.400, 21.450, 21.4250
&lt;BR /&gt;and I am trying to load the date into a PostgresQL date column to have "2014-04-10"
&lt;BR /&gt;whatever talend parse date pattern I use I keep on having this exception !!!
&lt;BR /&gt;
&lt;BR /&gt;Exception in component tMap_1
&lt;BR /&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: "10-Apr-2014"
&lt;BR /&gt; at routines.TalendDate.parseDate(TalendDate.java:836)
&lt;BR /&gt; at nitrofer.load_dayahead_0_1.Load_DayAhead.tFileInputDelimited_1Process(Load_DayAhead.java:2156)
&lt;BR /&gt; at nitrofer.load_dayahead_0_1.Load_DayAhead.tFileList_1Process(Load_DayAhead.java:1126)
&lt;BR /&gt; at nitrofer.load_dayahead_0_1.Load_DayAhead.tFileInputProperties_1Process(Load_DayAhead.java:515)
&lt;BR /&gt; at nitrofer.load_dayahead_0_1.Load_DayAhead.runJobInTOS(Load_DayAhead.java:3030)
&lt;BR /&gt; at nitrofer.load_dayahead_0_1.Load_DayAhead.main(Load_DayAhead.java:2862)
&lt;BR /&gt;Caused by: java.text.ParseException: Unparseable date: "10-Apr-2014"
&lt;BR /&gt; at java.text.DateFormat.parse(Unknown Source)
&lt;BR /&gt; at routines.TalendDate.parseDate(TalendDate.java:822)
&lt;BR /&gt; ... 5 more
&lt;BR /&gt;So please any ideas to have this solved ?
&lt;BR /&gt;Thanks,
&lt;BR /&gt;LR</description>
      <pubDate>Sat, 16 Nov 2024 11:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334297#M102977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date with date format dd-Mon-yyyy</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334298#M102978</link>
      <description>Hi,&lt;BR /&gt;Please use the below condition&lt;BR /&gt;&lt;BR /&gt;TalendDate.formatDate("yyyy-MM-dd",your date field);&lt;BR /&gt;Thanks&lt;BR /&gt;Ganesh</description>
      <pubDate>Wed, 09 Jul 2014 17:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334298#M102978</guid>
      <dc:creator>G_</dc:creator>
      <dc:date>2014-07-09T17:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date with date format dd-Mon-yyyy</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334299#M102979</link>
      <description>Ganesh, 
&lt;BR /&gt;Tried your idea: and it is unsuccessful. 
&lt;BR /&gt;Here's my tMap setup: 
&lt;BR /&gt;Column Type Format Type 
&lt;BR /&gt;------------------------------------------------------------------------------------------ 
&lt;BR /&gt;row2.Date Date "dd-MMM-yyyy" ==&amp;gt; Mapped to Date Expression:TalendDate.formatDate("yyyy-MM-dd",row2.Date) 
&lt;BR /&gt;==&amp;gt; Type mismatch: cannot convert from String to Date 
&lt;BR /&gt;I don't even understand where this String comes from ! 
&lt;BR /&gt;Any other ideas ? 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;LR</description>
      <pubDate>Wed, 09 Jul 2014 18:41:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334299#M102979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-09T18:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date with date format dd-Mon-yyyy</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334300#M102980</link>
      <description>At first a pattern is only needed to transform a textual representation of a date into a java Date object which can without any patterns send to a database. 
&lt;BR /&gt;It looks like you have configured the row2.Date column already as Date type and for the text conversion the given pattern will be used (dd-MMM-yyyy). Now you have an date typed object but you do not need the expression anymore. 
&lt;BR /&gt;PostgreSQL works just fine with the date object. 
&lt;BR /&gt;I would say, simply remove the expression and set only the column row2.Date as value, thats it. 
&lt;BR /&gt;A database column of type date, timestamp and so on does not have a pattern. Talend sets automatically a pattern for all date typed columns in the schema but this has no effect, only if a automatic type conversion is needed (e.g. from String to Date) the pattern will be used.</description>
      <pubDate>Wed, 09 Jul 2014 19:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334300#M102980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-09T19:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date with date format dd-Mon-yyyy</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334301#M102981</link>
      <description>Hi jlolling,
&lt;BR /&gt;If he passes data as it is, he will get the output as year as 0014 instead of 2014. So i think we need to change the format for the year.Not sure how to do that. 
&lt;BR /&gt;Irako,
&lt;BR /&gt;Try to do like this,
&lt;BR /&gt;Go to tmap out put flow, pass row2.Date instead of TalendDate.formatDate("yyyy-MM-dd",row2.Date).
&lt;BR /&gt;At the bottom of the tmap output flow try to change your datepattern as "yyyy-MM-dd". If you got 2014-04-10 then we are good.
&lt;BR /&gt;I think you may face issue on year. Please let me know what you got.
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Ganesh</description>
      <pubDate>Wed, 09 Jul 2014 20:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334301#M102981</guid>
      <dc:creator>G_</dc:creator>
      <dc:date>2014-07-09T20:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date with date format dd-Mon-yyyy</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334302#M102982</link>
      <description>So you suggest the following setup:
&lt;BR /&gt;Column Type Format Type Format
&lt;BR /&gt;------------------------------------------------------------------------------------------------------------
&lt;BR /&gt;row2.Date Date "dd-MMM-yyyy" ==&amp;gt; Mapped to Date row2.Date yyyy-MM-dd
&lt;BR /&gt;and Talend replies, in red
&lt;BR /&gt;Unparseable date: "10-Apr-2014"
&lt;BR /&gt;That was my very first thought : no conversion needed from Date to Date ! But it really looks like this format dd-MMM-yyyy has an issue. Maybe be the month capitalized ?
&lt;BR /&gt;
&lt;BR /&gt;I tried this in PostgreSQL
&lt;BR /&gt;
&lt;BR /&gt;CREATE TABLE x
&lt;BR /&gt;(
&lt;BR /&gt; a date
&lt;BR /&gt;) ;
&lt;BR /&gt;insert into x values ('10-Apr-2014') ;
&lt;BR /&gt;
&lt;BR /&gt;==&amp;gt; successful 
&lt;BR /&gt;select * from x ;
&lt;BR /&gt;=&amp;gt;"2014-04-10"
&lt;BR /&gt;From PostgreSQL side, it works fine. 
&lt;BR /&gt;
&lt;BR /&gt;I am open to workarounds now , because I really can't get the logic.
&lt;BR /&gt;Thanks,
&lt;BR /&gt;LR</description>
      <pubDate>Wed, 09 Jul 2014 20:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334302#M102982</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-09T20:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date with date format dd-Mon-yyyy</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334303#M102983</link>
      <description>I could not get a solution using TalendDate routine, formatDate nor parseDate. 
&lt;BR /&gt;All date formats lead me to this "Unparseable Date" exception. 
&lt;BR /&gt;As a workaroud, I will add an additional column of varchar type. And in the input flow of tMap, set the row2.Date as String type. 
&lt;BR /&gt;I will then map the row2.Date to the new column and perform the Date casting at database level using to_timestamp(new column, 'DD-Mon-YYYY') function. Notice the month part of date pattern from PostgreSQL (same as Oracle). 
&lt;BR /&gt;Thanks for your updates. 
&lt;BR /&gt;LR</description>
      <pubDate>Wed, 09 Jul 2014 22:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334303#M102983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-09T22:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date with date format dd-Mon-yyyy</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334304#M102984</link>
      <description>hi,&lt;BR /&gt;please have a look at dedicated talend help page :&lt;BR /&gt;&lt;A href="https://help.talend.com/search/all?query=TalendDate+Routines&amp;amp;content-lang=en" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=TalendDate+Routines&amp;amp;content-lang=en&lt;/A&gt;&lt;BR /&gt;you'll find documentation&amp;amp;example for each date Talend function&lt;BR /&gt;regards&lt;BR /&gt;laurent</description>
      <pubDate>Thu, 10 Jul 2014 08:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334304#M102984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-10T08:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date with date format dd-Mon-yyyy</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334305#M102985</link>
      <description>I have the same issue. &amp;nbsp;Recieve a date field from oracle. &amp;nbsp;Try to output it with a date pattern and receive unparesable date.
&lt;BR /&gt;Talend seems to want to parse milliseconds when they aren't available on the standard date type.
&lt;BR /&gt;Execption in component: tParseRecordSet_1
&lt;BR /&gt;Unparseable date: "2014-12-30 00:00:00.0"
&lt;BR /&gt;I am using 5.5.1 and the only way I can get this to work is cast dates to string in oracle.
&lt;BR /&gt;Seems like a lot of unnecessary type converting.</description>
      <pubDate>Tue, 25 Nov 2014 02:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334305#M102985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-25T02:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date with date format dd-Mon-yyyy</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334306#M102986</link>
      <description>hi,&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;Unparseable date: "2014-12-30 00:00:00.0"&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;And what is the pattern you're using ?&lt;BR /&gt;regards&lt;BR /&gt;laurent</description>
      <pubDate>Tue, 25 Nov 2014 16:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334306#M102986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-25T16:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date with date format dd-Mon-yyyy</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334307#M102987</link>
      <description>Need to change date containing milliseconds to seconds, truncating milliseconds data without upcasting. Have used the formula&amp;nbsp;
&lt;BR /&gt;(row2.START_DATE==null || row2.START_DATE.isEmpty())? null : TalendDate.parseDate("yyyy/MM/dd'T'hh:mm:ss",TalendDate.formatDate("dd/MM/yyyyhh:mm:ss",TalendDate.parseDate("yyyy/MM/dd'T'hh:mm:ss",row2.START_DATE))) &amp;nbsp;in the tmap component.
&lt;BR /&gt;But, it is showing the following error..
&lt;BR /&gt;Caused by: java.text.ParseException: Unparseable date: "2015-06-12T20:40:07"</description>
      <pubDate>Mon, 28 Dec 2015 11:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334307#M102987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-28T11:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date with date format dd-Mon-yyyy</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334308#M102988</link>
      <description>Thank you, done somehow. have used tbufferinput in middle, got the output</description>
      <pubDate>Mon, 28 Dec 2015 14:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-with-date-format-dd-Mon-yyyy/m-p/2334308#M102988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-28T14:43:53Z</dc:date>
    </item>
  </channel>
</rss>

