<?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: [resolved] How to generate an ID in a dataflow? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-generate-an-ID-in-a-dataflow/m-p/2304682#M76427</link>
    <description>hi dexter_DSD, 
&lt;BR /&gt;you can use Talend method sequence that 's exactly what you're looking for (i hope) ! 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;/**&lt;BR /&gt; * return an incremented numeric id&lt;BR /&gt; * &lt;BR /&gt; * {talendTypes} int | Integer&lt;BR /&gt; * &lt;BR /&gt; * {Category} Numeric&lt;BR /&gt; * &lt;BR /&gt; * {param} string("s1") sequence identifier&lt;BR /&gt; * &lt;BR /&gt; * {param} int(1) start value&lt;BR /&gt; * &lt;BR /&gt; * {param} int(1) step&lt;BR /&gt; * &lt;BR /&gt; * {example} sequence("s1", 1, 1) # 1, 2, 3, ...&lt;BR /&gt; * &lt;BR /&gt; * {example} sequence("s2", 100, -2) # 100, 98, 96, ...&lt;BR /&gt; * &lt;BR /&gt; */&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;regards 
&lt;BR /&gt;laurent</description>
    <pubDate>Sun, 06 Jun 2010 17:23:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-06-06T17:23:21Z</dc:date>
    <item>
      <title>[resolved] How to generate an ID in a dataflow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-generate-an-ID-in-a-dataflow/m-p/2304681#M76426</link>
      <description>I've been trying several options to generate an ID in a talend dataflow but it didnt work out.&lt;BR /&gt;Basically, I see two ways considering data shall be written into a DataBase:&lt;BR /&gt;1)  Create a DB column as auto_increment int field. This works fine if I create the target schema manually.  But since I want to let tMySQLOutput component do this (using "Drop Table and Create" option) I tried to add such an auto_increment field as additional column in this component. This does not seem to be possible.&lt;BR /&gt;2) Use any of the components to insert a counter into dataflow that increments on each row before it comes to writing into DB.  &lt;BR /&gt;I prefer option 2 because I can imagine various situations where I need such an artificial ID.&lt;BR /&gt;I found some posts here touching this issue but no solution. Any help is appreciated..&lt;BR /&gt;Thanks&lt;BR /&gt;dexter</description>
      <pubDate>Sat, 16 Nov 2024 13:24:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-generate-an-ID-in-a-dataflow/m-p/2304681#M76426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to generate an ID in a dataflow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-generate-an-ID-in-a-dataflow/m-p/2304682#M76427</link>
      <description>hi dexter_DSD, 
&lt;BR /&gt;you can use Talend method sequence that 's exactly what you're looking for (i hope) ! 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;/**&lt;BR /&gt; * return an incremented numeric id&lt;BR /&gt; * &lt;BR /&gt; * {talendTypes} int | Integer&lt;BR /&gt; * &lt;BR /&gt; * {Category} Numeric&lt;BR /&gt; * &lt;BR /&gt; * {param} string("s1") sequence identifier&lt;BR /&gt; * &lt;BR /&gt; * {param} int(1) start value&lt;BR /&gt; * &lt;BR /&gt; * {param} int(1) step&lt;BR /&gt; * &lt;BR /&gt; * {example} sequence("s1", 1, 1) # 1, 2, 3, ...&lt;BR /&gt; * &lt;BR /&gt; * {example} sequence("s2", 100, -2) # 100, 98, 96, ...&lt;BR /&gt; * &lt;BR /&gt; */&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;regards 
&lt;BR /&gt;laurent</description>
      <pubDate>Sun, 06 Jun 2010 17:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-generate-an-ID-in-a-dataflow/m-p/2304682#M76427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-06T17:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to generate an ID in a dataflow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-generate-an-ID-in-a-dataflow/m-p/2304683#M76428</link>
      <description>Hi kzone,
&lt;BR /&gt;this is exactly what I was hoping on. I added Numeric.sequence in a tMap and it provides me with an identifier i can use as PrimaryKey in a database.
&lt;BR /&gt;Thanks for your quick help!
&lt;BR /&gt;dexter</description>
      <pubDate>Mon, 07 Jun 2010 19:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-generate-an-ID-in-a-dataflow/m-p/2304683#M76428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-07T19:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to generate an ID in a dataflow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-generate-an-ID-in-a-dataflow/m-p/2304684#M76429</link>
      <description>beware of concurrency issues (if such table is inserted from different processes);
&lt;BR /&gt;auto-increment in DBMS guarantees consistency in case of two processes inserts simultaneously; talend sequence not (collision).</description>
      <pubDate>Mon, 07 Jun 2010 22:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-generate-an-ID-in-a-dataflow/m-p/2304684#M76429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-07T22:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to generate an ID in a dataflow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-generate-an-ID-in-a-dataflow/m-p/2304685#M76430</link>
      <description>Hi emaxt6,&lt;BR /&gt;thanks for the hint. Indeed I use various sources in my dataflow, but I insert the ID after the subflows have been united. So no concurring ID sequences might intefere with each other.  Using auto_increment in a DBMS is an option, but at least for now the output component to a DBMS is not able to generate the auto_increment field. (I dont want to alter the table nor create the schema in a manual step)&lt;BR /&gt;regards&lt;BR /&gt;dexter</description>
      <pubDate>Tue, 08 Jun 2010 18:36:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-generate-an-ID-in-a-dataflow/m-p/2304685#M76430</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-08T18:36:18Z</dc:date>
    </item>
  </channel>
</rss>

