<?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 format in csv in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218857#M13889</link>
    <description>Hi 
&lt;BR /&gt; 
&lt;PRE&gt;As we understand due to comma, the field has moved one place.&lt;/PRE&gt; 
&lt;BR /&gt;Read all data with string type from HDFS Input file and write the data to a file first, and then read the data back again with CSV format, for example: 
&lt;BR /&gt;tHDFSInput--main--tFileOutputDelimited 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;| 
&lt;BR /&gt;onsubjobok 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;| 
&lt;BR /&gt;tFileInputDelimited--main--tMap--main--&amp;gt;other business processing 
&lt;BR /&gt;on tFileInputDeimited: read the data back again with CSV option. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
    <pubDate>Wed, 21 Jan 2015 04:41:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-01-21T04:41:54Z</dc:date>
    <item>
      <title>[resolved] Unparseable Date format in csv</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218850#M13882</link>
      <description>Hello,&lt;BR /&gt;I am trying to read a csv file using talend open studio. All the string and date fields in the file are quoted. Sample Data:&lt;BR /&gt;1763,"abce","dfg","xyz","mjo","abcddrer","abc.com","Sunday","Overflow","11/29/2012","01/07/2013","80/443","4093151","5344"&lt;BR /&gt;The date fields come in quotes, when I try to read I get an error:&lt;BR /&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: ""11/29/2012""&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at routines.TalendDate.parseDate(TalendDate.java:864)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at routines.TalendDate.parseDate(TalendDate.java:808)&lt;BR /&gt;How to read this kind of file, I understand the error is coming due to quotes 2 times around the date.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Sat, 16 Nov 2024 11:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218850#M13882</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date format in csv</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218851#M13883</link>
      <description>Hi
&lt;BR /&gt;It is a CSV file, you need to check the csv options on tFileInputDelimited, and set the Éscape char as """, Text closure as """, read the date column with Date type, and set the pattern as "MM/dd/yyyy"
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Sat, 17 Jan 2015 03:33:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218851#M13883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-17T03:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date format in csv</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218852#M13884</link>
      <description>My input is HDFS Input File and not tInputdelimited file, any work around this.&lt;BR /&gt;Mp</description>
      <pubDate>Sat, 17 Jan 2015 03:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218852#M13884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-17T03:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date format in csv</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218853#M13885</link>
      <description>Read all data with string type, then remove the double quote on other component such as tMap, for example: 
&lt;BR /&gt;tHDFSInput--main--tMap_1--main--tMap_2---&amp;gt;tLogrow 
&lt;BR /&gt;on tMap_1: 
&lt;BR /&gt;row1.columnName.contains("\"")?row1.columnName.replaceAll("\"","") 
&lt;BR /&gt;afterwards, &amp;nbsp;parse the date column to a Date if needed on tMap_2,&amp;nbsp; 
&lt;BR /&gt;for example: 
&lt;BR /&gt;TalendDate.parseDate("MM/dd/yyyy",row1.columnName) 
&lt;BR /&gt;Shong</description>
      <pubDate>Sat, 17 Jan 2015 03:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218853#M13885</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-17T03:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date format in csv</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218854#M13886</link>
      <description>Hi,&lt;BR /&gt;This does not work, now it throws new error:&lt;BR /&gt;Exception in component tMap_36&lt;BR /&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: ""&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at routines.TalendDate.parseDate(TalendDate.java:864)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at routines.TalendDate.parseDate(TalendDate.java:808)&lt;BR /&gt;This is what I have done to test it. In the tMap component, declared a Variable -- lv_my_date (datatype as String) in Var&lt;BR /&gt;say lv_my_date and gave value as&amp;nbsp;row40.my_date.contains("\"") ? row40.my_date.replaceAll("\"","") : row40.my_date&lt;BR /&gt;Finally used&amp;nbsp;TalendDate.parseDate("MM/dd/yyyy", Var.lv_my_date) and assigned it to my_date (datatype as Date)&lt;BR /&gt;I think it is replacing both the quotes while parsing the string, hence this error, but really not sure what is happening.&lt;BR /&gt;&lt;BR /&gt;Mp</description>
      <pubDate>Sat, 17 Jan 2015 20:23:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218854#M13886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-17T20:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date format in csv</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218855#M13887</link>
      <description>Hi&amp;nbsp;
&lt;BR /&gt;There should be some empty value in this column, to resolve it, &amp;nbsp;you need to check if the value is empty or not before parsing it to a Date, for example:
&lt;BR /&gt;Var.lv_my_date.equals("")?null:
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;TalendDate.parseDate("M&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;M/dd/yyyy", Var.lv_my_date)&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;//Set it to null if it is empty or you can also set it to a default value.&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Sun, 18 Jan 2015 01:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218855#M13887</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-18T01:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date format in csv</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218856#M13888</link>
      <description>Hi,
&lt;BR /&gt;This resolves the date but cannot read the file for the same reason: The input file is in hdfs and it is csv format.
&lt;BR /&gt;One sample record is shown here:
&lt;BR /&gt;1001,"Appl","Max","abc","bbc","110.100.120.34","abc.com, bbc.com","Self","Test Region","11/08/2012","05/05/2014","80/443",,"5678"
&lt;BR /&gt;All the string fields are in quotes. Please notice value "abc.com, bbc.com"
&lt;BR /&gt;job fails with reason--
&lt;BR /&gt;Exception in component tMap_36
&lt;BR /&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: "Test Region"
&lt;BR /&gt;As we understand due to comma, the field has moved one place.&amp;nbsp;
&lt;BR /&gt;Is there any solution for this?
&lt;BR /&gt;-mp</description>
      <pubDate>Sun, 18 Jan 2015 20:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218856#M13888</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-18T20:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date format in csv</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218857#M13889</link>
      <description>Hi 
&lt;BR /&gt; 
&lt;PRE&gt;As we understand due to comma, the field has moved one place.&lt;/PRE&gt; 
&lt;BR /&gt;Read all data with string type from HDFS Input file and write the data to a file first, and then read the data back again with CSV format, for example: 
&lt;BR /&gt;tHDFSInput--main--tFileOutputDelimited 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;| 
&lt;BR /&gt;onsubjobok 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;| 
&lt;BR /&gt;tFileInputDelimited--main--tMap--main--&amp;gt;other business processing 
&lt;BR /&gt;on tFileInputDeimited: read the data back again with CSV option. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 21 Jan 2015 04:41:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218857#M13889</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-21T04:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date format in csv</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218858#M13890</link>
      <description>Hi shong, 
&lt;BR /&gt;I'm facing the same kind of scenario in which my input csv(text file) contains C_Customer_id M_Modified_date. In M_Modified_date column the date and time is in 2015-10-07 15:33:24.653. I need to remove the millisecond from the time and some date field contains null values too. So in output csv i need the same null value. I tried&amp;nbsp; 
&lt;BR /&gt;null==row1.M_MODIFIED_DT? 
&lt;BR /&gt;null:TalendDate.parseDate("yyyy-MM-dd hh:mm:ss",row1.M_MODIFIED_DT)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;BR /&gt;but i got error stating "Type mismatch cannot convert from date to string". 
&lt;BR /&gt;Input csv 
&lt;BR /&gt;C_Customer_id|M_Modified_date 
&lt;BR /&gt;1001|2015-10-07 15:33:24.653 
&lt;BR /&gt;1002|NULL 
&lt;BR /&gt;My output should be 
&lt;BR /&gt;C_Customer_id|M_Modified_date 
&lt;BR /&gt;1001|2015-10-07 15:33:24 
&lt;BR /&gt;1002|NULL 
&lt;BR /&gt;is there any possibility to convert in this format. 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;shivaraaj</description>
      <pubDate>Tue, 08 Dec 2015 14:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218858#M13890</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-08T14:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable Date format in csv</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218859#M13891</link>
      <description>Hi,
&lt;BR /&gt;I found a solution. In date column of output file i mentioned
&lt;BR /&gt;row1.M_MODIFIED_DT!=null?
&lt;BR /&gt;row1.M_MODIFIED_DT.split("\\."):null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;BR /&gt;and we will be having desired output
&lt;BR /&gt;Thanks
&lt;BR /&gt;shivaraaj</description>
      <pubDate>Tue, 08 Dec 2015 14:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-Date-format-in-csv/m-p/2218859#M13891</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-08T14:42:45Z</dc:date>
    </item>
  </channel>
</rss>

