<?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: Cleansing, parsing and inserting data into a Postgres table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Cleansing-parsing-and-inserting-data-into-a-Postgres-table/m-p/2375704#M138060</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;It is a compilation error, the function TalendDate.parseDate(String, String) required two string parameters, so, you should read the source data as a string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
    <pubDate>Fri, 10 Dec 2021 11:22:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-12-10T11:22:44Z</dc:date>
    <item>
      <title>Cleansing, parsing and inserting data into a Postgres table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Cleansing-parsing-and-inserting-data-into-a-Postgres-table/m-p/2375701#M138057</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stuck on inserting dates in a table. I think they are not recognized by Talend, even when the right format is specified in the mapping (I first tried with the output, they with the input, then both of them). I read the documentation, but I think I don't understand something in the procedure or in the heart of how the thing works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, I installed Talend carefully with the exact recommended version of Java (otherwise it wouldn't have worked). I created a job and imported a geoJSON file and the fields I want to map and insert into the table. I installed all the modules, did the preview, then I used tMap to change the fields' names. I converted the float types into string types but when it came to the dates, I got successive errors, each time different. The default "EN" date format was dd-MM-yyyy and I had in my dataset multiple formats: dd/MM/yy, dd/MM/yyyy, etc.&lt;/P&gt;&lt;P&gt;My goal is to have each correct date (but in wrong format) in the format dd/MM/yy &lt;/P&gt;&lt;P&gt;(I saw it was recognized by Talend in the documentation) &lt;/P&gt;and make null the incomplete dates (for example: "0/0/2013"). Here is my error: unparseable date (see picture).&lt;P&gt;I tried with the functions formatDate, parseDate, etc. without success (I got two types of errors: "yy is not recognized as a variable" and "cannot convert from String to Date" nothing else).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help, I hope you understood well my problem, don't hesitate to ask for more details if needed!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:28:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Cleansing-parsing-and-inserting-data-into-a-Postgres-table/m-p/2375701#M138057</guid>
      <dc:creator>NAnto</dc:creator>
      <dc:date>2024-11-15T23:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cleansing, parsing and inserting data into a Postgres table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Cleansing-parsing-and-inserting-data-into-a-Postgres-table/m-p/2375702#M138058</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Should use corresponding date pattern to parse the different date format, eg:&lt;/P&gt;&lt;P&gt;row1.column.length=8?TalendDate.parseDate("dd/MM/yy", row1.columnName):TalendDate.parseDate("dd/MM/yyyy",row1.columnName)&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;For incomplete dates,  you can use tSchemaCompilanceCheck to check and filter the rows before they are parsed to a Date, the rejected rows can be processed separately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 07:06:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Cleansing-parsing-and-inserting-data-into-a-Postgres-table/m-p/2375702#M138058</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-01T07:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cleansing, parsing and inserting data into a Postgres table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Cleansing-parsing-and-inserting-data-into-a-Postgres-table/m-p/2375703#M138059</link>
      <description>&lt;P&gt;Hello Shong,&lt;/P&gt;&lt;P&gt;First thank you very much for your answer.&lt;/P&gt;&lt;P&gt;Here is the error I get. I think there is a problem in type declaration of that column, but I have no idea of how to change it or handle it. Thank you again.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000LwkRmAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154102i4FB4E4EA6E5D0741/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000LwkRmAAJ.png" alt="0695b00000LwkRmAAJ.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 08:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Cleansing-parsing-and-inserting-data-into-a-Postgres-table/m-p/2375703#M138059</guid>
      <dc:creator>NAnto</dc:creator>
      <dc:date>2021-12-10T08:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cleansing, parsing and inserting data into a Postgres table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Cleansing-parsing-and-inserting-data-into-a-Postgres-table/m-p/2375704#M138060</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;It is a compilation error, the function TalendDate.parseDate(String, String) required two string parameters, so, you should read the source data as a string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 11:22:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Cleansing-parsing-and-inserting-data-into-a-Postgres-table/m-p/2375704#M138060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-10T11:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cleansing, parsing and inserting data into a Postgres table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Cleansing-parsing-and-inserting-data-into-a-Postgres-table/m-p/2375705#M138061</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for your answer, I tried to put "String" instead of "Date" so it can be read as a string into the tMap module but I have errors like "Type mismathc: cannot convert int to boolean", when it's not this one it is another, I always get an error on that job I don't understand.&lt;/P&gt;&lt;P&gt;Regards...&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 14:10:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Cleansing-parsing-and-inserting-data-into-a-Postgres-table/m-p/2375705#M138061</guid>
      <dc:creator>NAnto</dc:creator>
      <dc:date>2021-12-10T14:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cleansing, parsing and inserting data into a Postgres table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Cleansing-parsing-and-inserting-data-into-a-Postgres-table/m-p/2375706#M138062</link>
      <description>&lt;P&gt;It is another compilation error, the job will be translated to Java code, if you have a little Java knowledge, you will understand this kind of error more easy. &lt;/P&gt;&lt;P&gt;We usually open the &lt;B&gt;Code &lt;/B&gt;tab to look into the job generated code, check which lines have the compilation error, return back to the job design and correct it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 08:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Cleansing-parsing-and-inserting-data-into-a-Postgres-table/m-p/2375706#M138062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-13T08:04:28Z</dc:date>
    </item>
  </channel>
</rss>

