<?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: Reset Numeric Sequence For Each tFlowToIterate row in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Reset-Numeric-Sequence-For-Each-tFlowToIterate-row/m-p/2373596#M136302</link>
    <description>&lt;P&gt;Thanks @Shicong Hong​&amp;nbsp;I will give this a try.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Aug 2020 09:56:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-07T09:56:43Z</dc:date>
    <item>
      <title>Reset Numeric Sequence For Each tFlowToIterate row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reset-Numeric-Sequence-For-Each-tFlowToIterate-row/m-p/2373594#M136300</link>
      <description>&lt;P&gt;Hi. &lt;/P&gt;&lt;P&gt;I have a job which brings back lists from a website.  &lt;/P&gt;&lt;P&gt;For each list that is brought back, I am feeding the lists into SQL database tables (a table for each list).&lt;/P&gt;&lt;P&gt;The tables are created by the tDBOutput component (table dropped and recreated each time).&lt;/P&gt;&lt;P&gt;I am trying to apply a numeric sequence for each of the lists to set an ID column.  It is working fine, except the fact that the numeric sequence does not get reset for each row the flow iterates over.&lt;/P&gt;&lt;P&gt;For example, list 1 contains 10 rows, so the ID column for Table1 has IDs 1 to 10&lt;/P&gt;&lt;P&gt;The table for List2 start its numeric sequence then at 11, instead of resetting to 1.&lt;/P&gt;&lt;P&gt;This is screenshot of my job&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000009Hv6IAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141296iA24001EA3AD580EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000009Hv6IAAS.png" alt="0693p000009Hv6IAAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the tMap that applied the numeric sequence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000009Hv6SAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135864i91315398435CD279/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000009Hv6SAAS.png" alt="0693p000009Hv6SAAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why doesn't the numeric sequence reset to 1 for each row the flow iterates over?  and how to I make sure each table's numeric sequence starts at 1 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reset-Numeric-Sequence-For-Each-tFlowToIterate-row/m-p/2373594#M136300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T01:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Numeric Sequence For Each tFlowToIterate row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reset-Numeric-Sequence-For-Each-tFlowToIterate-row/m-p/2373595#M136301</link>
      <description>&lt;P&gt;Hi  &lt;/P&gt;&lt;P&gt;You need to set a dynamic sequence name, eg:&lt;/P&gt;&lt;P&gt;Numeric.sequence(""+((Integer)globalMap.get("tFlowToIterate_1_CURRENT_ITERATION")),1,1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, the sequence will start from 1 for each iteration.&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>Thu, 06 Aug 2020 10:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reset-Numeric-Sequence-For-Each-tFlowToIterate-row/m-p/2373595#M136301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-06T10:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Numeric Sequence For Each tFlowToIterate row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reset-Numeric-Sequence-For-Each-tFlowToIterate-row/m-p/2373596#M136302</link>
      <description>&lt;P&gt;Thanks @Shicong Hong​&amp;nbsp;I will give this a try.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 09:56:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reset-Numeric-Sequence-For-Each-tFlowToIterate-row/m-p/2373596#M136302</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-07T09:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Numeric Sequence For Each tFlowToIterate row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reset-Numeric-Sequence-For-Each-tFlowToIterate-row/m-p/2373597#M136303</link>
      <description>&lt;P&gt;Hi @Shicong Hong​&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have now tried this, and this has sorted the issue.  Many thanks for your help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 10:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reset-Numeric-Sequence-For-Each-tFlowToIterate-row/m-p/2373597#M136303</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-07T10:26:20Z</dc:date>
    </item>
  </channel>
</rss>

