<?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: Postgres Select from one Inserto to Other Table (Exception) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Postgres-Select-from-one-Inserto-to-Other-Table-Exception/m-p/2198529#M1820</link>
    <description>Hi, Pedro! 
&lt;BR /&gt; 
&lt;BR /&gt;Glad on chat with you again! So, buddy.. the result is, I found some exceptions on nzjdbc.jar not installed and as required (try to download, but i couldn`t) and for final result the question over that exception resides on: 
&lt;BR /&gt; 
&lt;BR /&gt;1) String data types, must be enclousured between '' (single quotes); 
&lt;BR /&gt;2) Date types and Boolean types also must be send into INSERT instruction between '' (single quotes); 
&lt;BR /&gt; 
&lt;BR /&gt;How do I discorer that? I take the output and run against the Postgres console, using your hint over Java Debug where the field name was being rejected. So i analyse that and found the issue. 
&lt;BR /&gt; 
&lt;BR /&gt;The question now is, may could you give some guidance to fix this? It means, how can I instruct the INSERT command to add '' (single quotes) on Boolean, String and Date data type? 
&lt;BR /&gt; 
&lt;BR /&gt;Sample code: 
&lt;BR /&gt; 
&lt;BR /&gt;Native Talend Output (do not works): 
&lt;BR /&gt;
&lt;PRE&gt;INSERT INTO TABLE("name","date","receive_newsletter") values(Sandro,2012-06-29 03:00:00,1)&lt;/PRE&gt; 
&lt;BR /&gt;Functional Talend Output (it works): 
&lt;BR /&gt;
&lt;PRE&gt;INSERT INTO TABLE("name","date","receive_newsletter") values('Sandro','2012-06-29 03:00:00','1')&lt;/PRE&gt; 
&lt;BR /&gt;Best regards and thank you so much once again! 
&lt;BR /&gt; 
&lt;BR /&gt;Sandro Regis - Projetaty Soluções Open Source</description>
    <pubDate>Thu, 28 Jun 2012 03:14:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-06-28T03:14:29Z</dc:date>
    <item>
      <title>Postgres Select from one Inserto to Other Table (Exception)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Postgres-Select-from-one-Inserto-to-Other-Table-Exception/m-p/2198527#M1818</link>
      <description>Hi friends, please I did a lot of studies and searchs here in the forum and over all internet and could not solve this task. 
&lt;BR /&gt;I need to select from one table in one database to insert in another table in other database, both tables with the same structure. 
&lt;BR /&gt;Concerning the select things are doing right but once for insert in another one i have this message: 
&lt;BR /&gt; 
&lt;FONT color="blue"&gt;&lt;PRE&gt; connecting to socket on port 3851
&lt;BR /&gt; connected
&lt;BR /&gt;Batch entry 0 INSERT INTO "res_partner" ("id","create_uid","create_date","write_date","write_uid","comment","ean13","color","date","active","lang","customer","credit_limit","user_id","name","title","company_id","website","parent_id","employee","supplier","ref","vat","opt_out","last_reconciliation_date","debit_limit","addr_fs_code","cnpj_cpf","inscr_mun","suframa","tipo_pessoa","inscr_est","legal_name","partner_fiscal_type_id","section_id") VALUES (481,40,2012-06-18 12:05:05.083000 -03:00:00,NULL,NULL,NULL,NULL,0,NULL,1,en_US,1,NULL,NULL,Recanto Brasil,NULL,1,NULL,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,J,NULL,NULL,NULL,NULL) was aborted.  Call getNextException to see the cause.
&lt;BR /&gt; disconnected&lt;/PRE&gt; &lt;BR /&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Below some screen: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks for all help and guidance!</description>
      <pubDate>Wed, 27 Jun 2012 04:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Postgres-Select-from-one-Inserto-to-Other-Table-Exception/m-p/2198527#M1818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-27T04:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Postgres Select from one Inserto to Other Table (Exception)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Postgres-Select-from-one-Inserto-to-Other-Table-Exception/m-p/2198528#M1819</link>
      <description>Hi
&lt;BR /&gt;Are you familiar with how to do Java debug in Eclipse IDE?
&lt;BR /&gt;If so, you'd better debug this Talend job in TOS to get the root reason from getNextException.
&lt;BR /&gt;In fact, the root reason is usually that you didn't set the correct length for one or more columns in output table.
&lt;BR /&gt;If you are still confused about your issue, I will try to tell you how to debug in TOS.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Wed, 27 Jun 2012 06:44:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Postgres-Select-from-one-Inserto-to-Other-Table-Exception/m-p/2198528#M1819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-27T06:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Postgres Select from one Inserto to Other Table (Exception)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Postgres-Select-from-one-Inserto-to-Other-Table-Exception/m-p/2198529#M1820</link>
      <description>Hi, Pedro! 
&lt;BR /&gt; 
&lt;BR /&gt;Glad on chat with you again! So, buddy.. the result is, I found some exceptions on nzjdbc.jar not installed and as required (try to download, but i couldn`t) and for final result the question over that exception resides on: 
&lt;BR /&gt; 
&lt;BR /&gt;1) String data types, must be enclousured between '' (single quotes); 
&lt;BR /&gt;2) Date types and Boolean types also must be send into INSERT instruction between '' (single quotes); 
&lt;BR /&gt; 
&lt;BR /&gt;How do I discorer that? I take the output and run against the Postgres console, using your hint over Java Debug where the field name was being rejected. So i analyse that and found the issue. 
&lt;BR /&gt; 
&lt;BR /&gt;The question now is, may could you give some guidance to fix this? It means, how can I instruct the INSERT command to add '' (single quotes) on Boolean, String and Date data type? 
&lt;BR /&gt; 
&lt;BR /&gt;Sample code: 
&lt;BR /&gt; 
&lt;BR /&gt;Native Talend Output (do not works): 
&lt;BR /&gt;
&lt;PRE&gt;INSERT INTO TABLE("name","date","receive_newsletter") values(Sandro,2012-06-29 03:00:00,1)&lt;/PRE&gt; 
&lt;BR /&gt;Functional Talend Output (it works): 
&lt;BR /&gt;
&lt;PRE&gt;INSERT INTO TABLE("name","date","receive_newsletter") values('Sandro','2012-06-29 03:00:00','1')&lt;/PRE&gt; 
&lt;BR /&gt;Best regards and thank you so much once again! 
&lt;BR /&gt; 
&lt;BR /&gt;Sandro Regis - Projetaty Soluções Open Source</description>
      <pubDate>Thu, 28 Jun 2012 03:14:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Postgres-Select-from-one-Inserto-to-Other-Table-Exception/m-p/2198529#M1820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-28T03:14:29Z</dc:date>
    </item>
  </channel>
</rss>

