<?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: How to generate Surrogate Key for table in Postgresql in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-Surrogate-Key-for-table-in-Postgresql/m-p/2337083#M105461</link>
    <description>Hi
&lt;BR /&gt;Welcome to Talend Community!
&lt;BR /&gt;Before answering your questions, I guess you didn't create a job correctly in Talend way.
&lt;BR /&gt;Could you upload a screenshot of your job?
&lt;BR /&gt;Then we can know how to solve it.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
    <pubDate>Wed, 22 Feb 2012 05:13:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-02-22T05:13:33Z</dc:date>
    <item>
      <title>How to generate Surrogate Key for table in Postgresql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-Surrogate-Key-for-table-in-Postgresql/m-p/2337082#M105460</link>
      <description>I am running into issue while trying to generate Surrogate key on the table in PostgreSQL database.&lt;BR /&gt;Scenario:&lt;BR /&gt;1) I have a tabe Reject_Log with primary key RejectLogID defined as below:&lt;BR /&gt;CREATE TABLE reject_log&lt;BR /&gt;(&lt;BR /&gt;  "RejectLogID" SERIAL NOT NULL,&lt;BR /&gt;  "RejectMessage" character varying,&lt;BR /&gt;  CONSTRAINT reject_log_pkey PRIMARY KEY ("RejectLogID")&lt;BR /&gt;)&lt;BR /&gt;WITH (&lt;BR /&gt;  OIDS=FALSE&lt;BR /&gt;);&lt;BR /&gt;ALTER TABLE reject_log OWNER TO postgres;&lt;BR /&gt;GRANT ALL ON TABLE reject_log TO postgres;&lt;BR /&gt;GRANT ALL ON TABLE reject_log TO talenduser;&lt;BR /&gt;2) I have a tMap component, where I assign error message "Test" to column "RejectMessage"&lt;BR /&gt;3) Column "RejectLogID" is not part of mapping to ensure that PostgreSQL database uses default functionality assigning unique value from sequence.&lt;BR /&gt;4) When job is executed in Talend, it fails with error:&lt;BR /&gt; connecting to socket on port 3355&lt;BR /&gt; connected&lt;BR /&gt;Batch entry 0 INSERT INTO "stage"."reject_log" ("RejectMessage") VALUES (Test) was aborted.  Call getNextException to see the cause.&lt;BR /&gt; disconnected&lt;BR /&gt;Questions:&lt;BR /&gt;1) why Talend fails while trying to insert the row into "Reject_Log" table?&lt;BR /&gt;2) when I change column RejectLogID data type in database from SERIAL to INTEGER - Talend works with no errors. Why it does not work with Serial data type?!?&lt;BR /&gt;3) what is the recommendation on " how to avoid and error?"?&lt;BR /&gt;Any help would be greately appreciated</description>
      <pubDate>Sat, 16 Nov 2024 12:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-generate-Surrogate-Key-for-table-in-Postgresql/m-p/2337082#M105460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate Surrogate Key for table in Postgresql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-Surrogate-Key-for-table-in-Postgresql/m-p/2337083#M105461</link>
      <description>Hi
&lt;BR /&gt;Welcome to Talend Community!
&lt;BR /&gt;Before answering your questions, I guess you didn't create a job correctly in Talend way.
&lt;BR /&gt;Could you upload a screenshot of your job?
&lt;BR /&gt;Then we can know how to solve it.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Wed, 22 Feb 2012 05:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-generate-Surrogate-Key-for-table-in-Postgresql/m-p/2337083#M105461</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-22T05:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate Surrogate Key for table in Postgresql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-Surrogate-Key-for-table-in-Postgresql/m-p/2337084#M105462</link>
      <description>Thank you Pedro for your reply! 
&lt;BR /&gt;I hae resolved this issue by adding lookup to tMap. 
&lt;BR /&gt;Look up is connecting to db and selecting nextvalue from explicitely defined sequence. 
&lt;BR /&gt;I also setup that look up is re-loaded for each row - this insures that new value is generated by sequence for every new row. 
&lt;BR /&gt;Thanks again, 
&lt;BR /&gt;Elena</description>
      <pubDate>Fri, 02 Mar 2012 01:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-generate-Surrogate-Key-for-table-in-Postgresql/m-p/2337084#M105462</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-02T01:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate Surrogate Key for table in Postgresql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-Surrogate-Key-for-table-in-Postgresql/m-p/2337085#M105463</link>
      <description>Hi elena, 
&lt;BR /&gt;please can you ellobrate on how you have declared sequance explicitly and achived this task, please attach screen shots if possible. 
&lt;BR /&gt;thanks 
&lt;BR /&gt;rishabh</description>
      <pubDate>Thu, 23 Aug 2012 11:18:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-generate-Surrogate-Key-for-table-in-Postgresql/m-p/2337085#M105463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-23T11:18:50Z</dc:date>
    </item>
  </channel>
</rss>

