<?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: &amp;quot;0&amp;quot; in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date-quot-0-quot/m-p/2333283#M102083</link>
    <description>You cannot use == with Strings. Change your expression to the following and it should work:
&lt;BR /&gt;row2.CURBEGDT.isEmpty() || row2.CURBEGDT.equals("0")
&lt;BR /&gt;? TalendDate.getCurrentDate()
&lt;BR /&gt;: TalendDate.parseDate("yyyyMMdd",row2.CURBEGDT)</description>
    <pubDate>Wed, 31 Aug 2011 00:43:35 GMT</pubDate>
    <dc:creator>alevy</dc:creator>
    <dc:date>2011-08-31T00:43:35Z</dc:date>
    <item>
      <title>[resolved] Unparseable date: "0"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date-quot-0-quot/m-p/2333282#M102082</link>
      <description>Hi,
&lt;BR /&gt;I'm new to Talend. I'm trying to load delimited (,) file to SQL server table. My input field CURBEGDT has dates with format (yyyyMMdd) as well as some invalid date values like "0". My output table in SQL Db contains CURBEGDT field with datetime data type. To handle invalid dates "0" I'm using tMap with following code :
&lt;BR /&gt;row2.CURBEGDT.isEmpty() || row2.CURBEGDT == "0"
&lt;BR /&gt;? TalendDate.getCurrentDate()
&lt;BR /&gt;: TalendDate.parseDate("yyyyMMdd",row2.CURBEGDT) 
&lt;BR /&gt;But I'm still getting following error. Can somebody please help me? This is ASAP. 
&lt;BR /&gt;Starting job FTP_Daily_Scan at 15:22 30/08/2011.
&lt;BR /&gt; connecting to socket on port 3727
&lt;BR /&gt; connected
&lt;BR /&gt;Exception in component tMap_1
&lt;BR /&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: "0"
&lt;BR /&gt; at routines.TalendDate.parseDate(TalendDate.java:643)
&lt;BR /&gt; at training___joshi.ftp_daily_scan_0_1.FTP_Daily_Scan.tFileList_1Process(FTP_Daily_Scan.java:2935)
&lt;BR /&gt; at training___joshi.ftp_daily_scan_0_1.FTP_Daily_Scan.runJobInTOS(FTP_Daily_Scan.java:3808)
&lt;BR /&gt; at training___joshi.ftp_daily_scan_0_1.FTP_Daily_Scan.main(FTP_Daily_Scan.java:3682)
&lt;BR /&gt;Caused by: java.text.ParseException: Unparseable date: "0"
&lt;BR /&gt; at java.text.DateFormat.parse(Unknown Source)
&lt;BR /&gt; at routines.TalendDate.parseDate(TalendDate.java:641)
&lt;BR /&gt; ... 3 more
&lt;BR /&gt; disconnected
&lt;BR /&gt;Job FTP_Daily_Scan ended at 15:22 30/08/2011.</description>
      <pubDate>Sat, 16 Nov 2024 12:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date-quot-0-quot/m-p/2333282#M102082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable date: "0"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date-quot-0-quot/m-p/2333283#M102083</link>
      <description>You cannot use == with Strings. Change your expression to the following and it should work:
&lt;BR /&gt;row2.CURBEGDT.isEmpty() || row2.CURBEGDT.equals("0")
&lt;BR /&gt;? TalendDate.getCurrentDate()
&lt;BR /&gt;: TalendDate.parseDate("yyyyMMdd",row2.CURBEGDT)</description>
      <pubDate>Wed, 31 Aug 2011 00:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date-quot-0-quot/m-p/2333283#M102083</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2011-08-31T00:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable date: "0"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date-quot-0-quot/m-p/2333284#M102084</link>
      <description>Thanks... that helped. Thank you very much. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 31 Aug 2011 09:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date-quot-0-quot/m-p/2333284#M102084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-31T09:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable date: "0"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date-quot-0-quot/m-p/2333285#M102085</link>
      <description>Thank you so much.. It helped me alot..</description>
      <pubDate>Wed, 16 Apr 2014 08:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date-quot-0-quot/m-p/2333285#M102085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-16T08:25:32Z</dc:date>
    </item>
  </channel>
</rss>

