<?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: Date loose its format after load table into SQL in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Date-loose-its-format-after-load-table-into-SQL/m-p/2235117#M24246</link>
    <description>&lt;P&gt;Hi JohnRMK, thank you for you help.&lt;BR /&gt;&lt;BR /&gt;Still ouput this. I've tried Talend.parseDate("yyyy-MM-dd", row1.startDate), I've got error on tMap as well&lt;/P&gt;
&lt;P&gt;at java.lang.Integer.parseInt(Integer.java:615)&lt;BR /&gt;at routines.system.FastDateParser$DateParser.parse(FastDateParser.java:127)&lt;BR /&gt;at routines.system.ParserUtils.parseTo_Date(ParserUtils.java:337)&lt;BR /&gt;at h2020.dim_projects_0_1.Dim_projects.tFileInputDelimited_1Process(Dim_projects.java:1142)&lt;BR /&gt;at h2020.dim_projects_0_1.Dim_projects.tDBConnection_1Process(Dim_projects.java:438)&lt;BR /&gt;at h2020.dim_projects_0_1.Dim_projects.runJobInTOS(Dim_projects.java:1722)&lt;BR /&gt;at h2020.dim_projects_0_1.Dim_projects.main(Dim_projects.java:1571)&lt;BR /&gt;Couldn't parse value for column 'startDate' in 'row1', value is 'adasdasd'. Details: java.lang.RuntimeException: Unparseable date: "asdasdasd"&lt;BR /&gt;java.lang.NumberFormatException: For input string: "ERC-"&lt;BR /&gt;at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)&lt;BR /&gt;at java.lang.Integer.parseInt(Integer.java:580)&lt;BR /&gt;at java.lang.Integer.parseInt(Integer.java:615)&lt;BR /&gt;at routines.system.FastDateParser$DateParser.parse(FastDateParser.java:127)&lt;BR /&gt;at routines.system.ParserUtils.parseTo_Date(ParserUtils.java:337)&lt;BR /&gt;at h2020.dim_projects_0_1.Dim_projects.tFileInputDelimited_1Process(Dim_projects.java:1111)&lt;BR /&gt;at h2020.dim_projects_0_1.Dim_projects.tDBConnection_1Process(Dim_projects.java:438)&lt;BR /&gt;at h2020.dim_projects_0_1.Dim_projects.runJobInTOS(Dim_projects.java:1722)&lt;BR /&gt;at h2020.dim_projects_0_1.Dim_projects.main(Dim_projects.java:1571)&lt;BR /&gt;java.lang.NumberFormatException: For input string: "H202"&lt;BR /&gt;at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)&lt;BR /&gt;at java.lang.Integer.parseInt(Integer.java:580)&lt;BR /&gt;at java.lang.Integer.parseInt(Integer.java:615)&lt;BR /&gt;at routines.system.FastDateParser$DateParser.parse(FastDateParser.java:127)&lt;BR /&gt;at routines.system.ParserUtils.parseTo_Date(ParserUtils.java:337)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jun 2020 18:45:49 GMT</pubDate>
    <dc:creator>valkmeister</dc:creator>
    <dc:date>2020-06-25T18:45:49Z</dc:date>
    <item>
      <title>Date loose its format after load table into SQL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-loose-its-format-after-load-table-into-SQL/m-p/2235115#M24244</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm trying to load a csv table into mysql. The date data type on the CSV is DATE only, not DATETIME, and I just want to load it without as it is. However the date column end up as random numbers. I've already tried parseDate, but it keeps getting errors.&lt;/P&gt; 
&lt;P&gt;This is the csv schema:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de ecrã 2020-06-25, às 13.59.53.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaUs.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151222i422E8F26AB1390EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaUs.png" alt="0683p000009MaUs.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is the previews that Talend gives me during creating schema, that I want to keep.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de ecrã 2020-06-25, às 13.58.59.png" style="width: 680px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaLN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135001i3083928D97AD86C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaLN.png" alt="0683p000009MaLN.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I end up with this on mysql server.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de ecrã 2020-06-25, às 14.21.04.png" style="width: 394px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaV7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130232i7A1BF366BE67B8EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaV7.png" alt="0683p000009MaV7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Everytime I set a tMap to parse Date, I got errors. This is my first time with talend. Right now I'm just using a tdBconnection -&amp;gt; FileInputMetod -&amp;gt; tdbOutput&lt;BR /&gt;&lt;BR /&gt;For anyone who can help me fixing this, thank you!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 14:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-loose-its-format-after-load-table-into-SQL/m-p/2235115#M24244</guid>
      <dc:creator>valkmeister</dc:creator>
      <dc:date>2020-06-25T14:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Date loose its format after load table into SQL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-loose-its-format-after-load-table-into-SQL/m-p/2235116#M24245</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can notice that you have your date with yyyy-MM-dd pattern and in csv schema you have dd-MM-yyyy. So update the correct pattern in csv and mysql schema to have the same as the file&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 17:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-loose-its-format-after-load-table-into-SQL/m-p/2235116#M24245</guid>
      <dc:creator>JohnRMK</dc:creator>
      <dc:date>2020-06-25T17:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Date loose its format after load table into SQL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-loose-its-format-after-load-table-into-SQL/m-p/2235117#M24246</link>
      <description>&lt;P&gt;Hi JohnRMK, thank you for you help.&lt;BR /&gt;&lt;BR /&gt;Still ouput this. I've tried Talend.parseDate("yyyy-MM-dd", row1.startDate), I've got error on tMap as well&lt;/P&gt;
&lt;P&gt;at java.lang.Integer.parseInt(Integer.java:615)&lt;BR /&gt;at routines.system.FastDateParser$DateParser.parse(FastDateParser.java:127)&lt;BR /&gt;at routines.system.ParserUtils.parseTo_Date(ParserUtils.java:337)&lt;BR /&gt;at h2020.dim_projects_0_1.Dim_projects.tFileInputDelimited_1Process(Dim_projects.java:1142)&lt;BR /&gt;at h2020.dim_projects_0_1.Dim_projects.tDBConnection_1Process(Dim_projects.java:438)&lt;BR /&gt;at h2020.dim_projects_0_1.Dim_projects.runJobInTOS(Dim_projects.java:1722)&lt;BR /&gt;at h2020.dim_projects_0_1.Dim_projects.main(Dim_projects.java:1571)&lt;BR /&gt;Couldn't parse value for column 'startDate' in 'row1', value is 'adasdasd'. Details: java.lang.RuntimeException: Unparseable date: "asdasdasd"&lt;BR /&gt;java.lang.NumberFormatException: For input string: "ERC-"&lt;BR /&gt;at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)&lt;BR /&gt;at java.lang.Integer.parseInt(Integer.java:580)&lt;BR /&gt;at java.lang.Integer.parseInt(Integer.java:615)&lt;BR /&gt;at routines.system.FastDateParser$DateParser.parse(FastDateParser.java:127)&lt;BR /&gt;at routines.system.ParserUtils.parseTo_Date(ParserUtils.java:337)&lt;BR /&gt;at h2020.dim_projects_0_1.Dim_projects.tFileInputDelimited_1Process(Dim_projects.java:1111)&lt;BR /&gt;at h2020.dim_projects_0_1.Dim_projects.tDBConnection_1Process(Dim_projects.java:438)&lt;BR /&gt;at h2020.dim_projects_0_1.Dim_projects.runJobInTOS(Dim_projects.java:1722)&lt;BR /&gt;at h2020.dim_projects_0_1.Dim_projects.main(Dim_projects.java:1571)&lt;BR /&gt;java.lang.NumberFormatException: For input string: "H202"&lt;BR /&gt;at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)&lt;BR /&gt;at java.lang.Integer.parseInt(Integer.java:580)&lt;BR /&gt;at java.lang.Integer.parseInt(Integer.java:615)&lt;BR /&gt;at routines.system.FastDateParser$DateParser.parse(FastDateParser.java:127)&lt;BR /&gt;at routines.system.ParserUtils.parseTo_Date(ParserUtils.java:337)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 18:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-loose-its-format-after-load-table-into-SQL/m-p/2235117#M24246</guid>
      <dc:creator>valkmeister</dc:creator>
      <dc:date>2020-06-25T18:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date loose its format after load table into SQL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-loose-its-format-after-load-table-into-SQL/m-p/2235118#M24247</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;The error seems obvious, you are trying to parse a date when it is a character chain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Couldn't parse value for column 'startDate' in 'row1', value is '&lt;EM&gt;&lt;STRONG&gt;adasdasd&lt;/STRONG&gt;&lt;/EM&gt;'. Details: java.lang.RuntimeException: Unparseable date: "asdasdasd"&lt;/PRE&gt;&lt;P&gt;This means that you have problems with the date columns or that you are using the wrong data schema.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to limit the reading of the file to a few rows (2 or 3) and normally you shouldn't have any errors.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;To solve these errors, you can use ternary conditions in tMap with a function specific to talend TalendDate.isDate (...) which returns a boolean.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so if it's a date you return the rows or you put other date or you filter it , up to you on this&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 10:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-loose-its-format-after-load-table-into-SQL/m-p/2235118#M24247</guid>
      <dc:creator>JohnRMK</dc:creator>
      <dc:date>2020-06-26T10:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date loose its format after load table into SQL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-loose-its-format-after-load-table-into-SQL/m-p/2235119#M24248</link>
      <description>&lt;P&gt;Thank you! It worked!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 16:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-loose-its-format-after-load-table-into-SQL/m-p/2235119#M24248</guid>
      <dc:creator>valkmeister</dc:creator>
      <dc:date>2020-08-05T16:26:17Z</dc:date>
    </item>
  </channel>
</rss>

