<?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: postgresql format problems for insert in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230756#M21287</link>
    <description>Hi&amp;nbsp;
&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;buby.uguy,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Sorry, this was my mistake. I forgot to put the Parameter "NULL_AS" in the Advanced Settings tab&amp;nbsp;of tGreenPlumGPLoad.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Worked well after that.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;Great your issue is fixed. Feel free to let us know if there is any error in your job.&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
    <pubDate>Thu, 10 Nov 2016 08:54:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-11-10T08:54:51Z</dc:date>
    <item>
      <title>postgresql format problems for insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230749#M21280</link>
      <description>I'm new to Talend (downloaded TOS_DI-r104014-V5.3.1 last week) and trying to use it with Postgresql 10.12.0.2. 
&lt;BR /&gt;I read in a csv file using tFileInputDelimited, map the column names to my database table using tMap, and then attempt to insert into my table using tPostgresqlOutput. When I run in Traces Debug I can see my data moving through properly. 
&lt;BR /&gt;But when I try running it, I am getting error messages when trying the insert as it is not formatted correctly. This is what is shown in the error window on the Run tab (one row example as there are thousands): 
&lt;BR /&gt;Batch entry 0 INSERT INTO "dwh"."all_data" ("timestamp","action","session_id","src_user_id","src_community_id") VALUES (2013-03-08 13:37:51.000000 -05:00:00,userData,bEjseZl0si85ANN1njysOf+9,,) was aborted. Call getNextException to see the cause. 
&lt;BR /&gt;The problem is that the first three columns are flagged as date for timestamp, and string for the next 2, and the last 2 are integer, but are empty. I would expect to see it with this format: 
&lt;BR /&gt;INSERT INTO "dwh"."all_data" ("timestamp","action","session_id","src_user_id","src_community_id") 
&lt;BR /&gt;VALUES (?2013-03-08 13:37:51.000000 -05:00:00?,?userData?,?bEjseZl0si85ANN1njysOf+9?,NULL,NULL) 
&lt;BR /&gt;I don't have the single quotes around the first three columns, and then the word NULL is missing from the 4th and 5th columns. 
&lt;BR /&gt;I'm not sure how to correct this but it is very frustrating as I want to do more things with my data once I get it into the database.</description>
      <pubDate>Sat, 16 Nov 2024 11:52:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230749#M21280</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: postgresql format problems for insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230750#M21281</link>
      <description>first check constraint on Postgresql table, because most of the time it throws same error for null value insertion or primary key violation errors. hope this may solve your problem,</description>
      <pubDate>Wed, 16 Oct 2013 06:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230750#M21281</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-16T06:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: postgresql format problems for insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230751#M21282</link>
      <description>My table I'm trying to insert into is empty. There are no constraints on the table, not even primary key. When I attempt to insert the reformatted sql statement it goes in fine when connecting to the database correctly. How do I make Talend format the insert statement so that it will be accept by Postgresql?</description>
      <pubDate>Wed, 16 Oct 2013 16:04:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230751#M21282</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-16T16:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: postgresql format problems for insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230752#M21283</link>
      <description>i think you have to do those adjustment in using tMap. with the help of expression builder and StringHandling routine, there are several string manipulation function like surrounding string with single quote or double quote and many more. please check that routine it may help to sort all the issue.</description>
      <pubDate>Thu, 17 Oct 2013 04:53:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230752#M21283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-17T04:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: postgresql format problems for insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230753#M21284</link>
      <description>I'm currently evaluating Talend to see if it will meet the needs of my company. If it says that it works with Postgresql, I expect that it will format the sql statements in a way that Postgresql needs them. I've also been looking at one of Talend's competitors, and after setting it in one place I was able to insert the same delimited file into the same database table with no issues. I really want to like Talend as it seems like a great product and I like the open source nature of it. But without easy database support I can't recommend it. I don't want to be writing complicated formatting strings for something that should just work. Is there a setting somewhere to tell Talend to enclose strings in single quotes, and use the word NULL for null values? Please help.</description>
      <pubDate>Thu, 17 Oct 2013 16:09:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230753#M21284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-17T16:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: postgresql format problems for insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230754#M21285</link>
      <description>Hi,&lt;BR /&gt;I am also facing the same problem.MY insert statement gets aborted after running for 30 mins.Please help.</description>
      <pubDate>Fri, 24 Jul 2015 07:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230754#M21285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-24T07:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: postgresql format problems for insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230755#M21286</link>
      <description>almost a year, and no one answer, yet not even fixed the component? 
&lt;BR /&gt;Here is my case. I Have tGreenplumGPLoad, and purposely using this to make the data inserting faster.&amp;nbsp; 
&lt;BR /&gt;GPLoad technically put the data into CSV and reload it into target GP table. Suddenly one of the inserting process faced this problem. 
&lt;BR /&gt;I believe the problem is because the NULL value. especially the INT(or any numeric) &amp;amp; Date column. The value is "" instead of NULL, and the job will die. But I'm curious, some other job working fine with the GPLoad. 
&lt;BR /&gt;Anyway I'm not gonna put string handling for the null things since there are more then 100 columns. 
&lt;BR /&gt;Is there any solution for this problem? 
&lt;BR /&gt;Please your help 
&lt;BR /&gt;--------------------------------------- 
&lt;BR /&gt;EDIT: 
&lt;BR /&gt;Sorry, this was my mistake. I forgot to put the Parameter "NULL_AS" in the Advanced Settings tab&amp;nbsp;of tGreenPlumGPLoad.&amp;nbsp; 
&lt;BR /&gt;Worked well after that. 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 09 Nov 2016 13:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230755#M21286</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-09T13:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: postgresql format problems for insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230756#M21287</link>
      <description>Hi&amp;nbsp;
&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;buby.uguy,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Sorry, this was my mistake. I forgot to put the Parameter "NULL_AS" in the Advanced Settings tab&amp;nbsp;of tGreenPlumGPLoad.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Worked well after that.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;Great your issue is fixed. Feel free to let us know if there is any error in your job.&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 10 Nov 2016 08:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230756#M21287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-10T08:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: postgresql format problems for insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230757#M21288</link>
      <description>I am getting the same error when exporting from a mysqlinput component to a postgresqloutput component. The connection setting ahs the string delemiter set to ' (single quote). Any suggestions where to look. Swapping out the postgresqloutput component for a text file works fine.&lt;BR /&gt;Ok figured it out - seems it was a problem with the table definition.</description>
      <pubDate>Sat, 24 Dec 2016 18:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230757#M21288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-24T18:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: postgresql format problems for insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230758#M21289</link>
      <description>Hi&amp;nbsp;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;mxc4&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;,&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;I am getting the same error when exporting from a mysqlinput component to a postgresqloutput component. The connection setting ahs the string delemiter set to ' (single quote). Any suggestions where to look. Swapping out the postgresqloutput component for a text file works fine.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Is this issue caused by your table&amp;nbsp;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;definition? Feel free to post your issue here.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Mon, 26 Dec 2016 03:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230758#M21289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-26T03:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: postgresql format problems for insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230759#M21290</link>
      <description>&lt;P&gt;Hey Did you found anything here, i am facing similar issue where the insert being sent without the quotes for strings and because of that Insert fails!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LNhGAAW"&gt;@sclccangmailcom&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt;My table I'm trying to insert into is empty. There are no constraints on the table, not even primary key. When I attempt to insert the reformatted sql statement it goes in fine when connecting to the database correctly. How do I make Talend format the insert statement so that it will be accept by Postgresql? 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;BR /&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 21:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/postgresql-format-problems-for-insert/m-p/2230759#M21290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-04T21:03:24Z</dc:date>
    </item>
  </channel>
</rss>

