<?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 Data missing from output of additional columns in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Data-missing-from-output-of-additional-columns/m-p/2226184#M18187</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt; 
&lt;P&gt;I have created an additional column for a DBoutput component which gets a sequence value from the connected database.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Add_Columns.jpg" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4BG.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149580i1D4D38D7287A19A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4BG.jpg" alt="0683p000009M4BG.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The column titleid is included in both the input and output schemas.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Schemsa.jpg" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4BL.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135085iE6550B6DEF274E16/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4BL.jpg" alt="0683p000009M4BL.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The joob inserts records with the correctly generated sequence number.&amp;nbsp; However, the subsequent dataflows are missing the values generated.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="remaining_job.jpg" style="width: 361px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M48m.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150582i3C693612A5248352/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M48m.jpg" alt="0683p000009M48m.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;A logfile or examination of the written data shows that for both rows the value of titleid is null.&lt;/P&gt; 
&lt;P&gt;The audit_inserts needs to be able to record the sequence generated ID's during the job.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I thought the advanced additional columns was the way to go, but appears I am missing something.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;(It is not possible, in this case, to use a Talend generated sequence)&lt;/P&gt; 
&lt;P&gt;Any ideas why the values are missing from the pipeline flow into Audit_inserts but are written correctly to Insert_Recs?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2019 16:34:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-04-02T16:34:59Z</dc:date>
    <item>
      <title>Data missing from output of additional columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-missing-from-output-of-additional-columns/m-p/2226184#M18187</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt; 
&lt;P&gt;I have created an additional column for a DBoutput component which gets a sequence value from the connected database.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Add_Columns.jpg" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4BG.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149580i1D4D38D7287A19A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4BG.jpg" alt="0683p000009M4BG.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The column titleid is included in both the input and output schemas.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Schemsa.jpg" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4BL.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135085iE6550B6DEF274E16/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4BL.jpg" alt="0683p000009M4BL.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The joob inserts records with the correctly generated sequence number.&amp;nbsp; However, the subsequent dataflows are missing the values generated.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="remaining_job.jpg" style="width: 361px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M48m.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150582i3C693612A5248352/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M48m.jpg" alt="0683p000009M48m.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;A logfile or examination of the written data shows that for both rows the value of titleid is null.&lt;/P&gt; 
&lt;P&gt;The audit_inserts needs to be able to record the sequence generated ID's during the job.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I thought the advanced additional columns was the way to go, but appears I am missing something.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;(It is not possible, in this case, to use a Talend generated sequence)&lt;/P&gt; 
&lt;P&gt;Any ideas why the values are missing from the pipeline flow into Audit_inserts but are written correctly to Insert_Recs?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 16:34:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-missing-from-output-of-additional-columns/m-p/2226184#M18187</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-02T16:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Data missing from output of additional columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-missing-from-output-of-additional-columns/m-p/2226185#M18188</link>
      <description>&lt;P&gt;As it is advanced column ,these columns are computed in DB engine not in DI environment , So&amp;nbsp; this value will not be passed to next flow in Design.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 16:58:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-missing-from-output-of-additional-columns/m-p/2226185#M18188</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-04-02T16:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data missing from output of additional columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-missing-from-output-of-additional-columns/m-p/2226186#M18189</link>
      <description>Hi Akumar, 
&lt;BR /&gt;Yes, I cam to the same conclusion. 
&lt;BR /&gt;This puts me back to the initial issue of trapping the sequence numbers generated by the underlying DB. Any suggestions? I have checked the other threads on this issue and believed advanced additional columns to be the answer ... alas no. 
&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Apr 2019 18:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-missing-from-output-of-additional-columns/m-p/2226186#M18189</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-02T18:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data missing from output of additional columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-missing-from-output-of-additional-columns/m-p/2226187#M18190</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; If you are using the sequence like in advanced column, please try to commit the data before moving to next segment. Then fetch the information again (of the sequence number) using the&amp;nbsp; original candidate keys of the records.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;But I would think of another easier option. You can store the last modified sequence number in a control table. Then at the prejob stage, fetch the data of this value and store to a context variable.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;Now, for the key column, ad the Talend numerical sequence number to insert data. But instead of starting from 1, use the context variable as the starting value.&lt;/P&gt; 
&lt;PRE&gt;Numeric.sequence("s1",context.max_value,1)&lt;/PRE&gt; 
&lt;P&gt;In this way, you can maintain the sequence using DB and Talend. You can store the maximum value of sequence back to control table at the last stage of the job (either from existing result set or by querying DB based on your comfort level).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;This could be an easier option if you want the sequence number further in your flow.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 18:34:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-missing-from-output-of-additional-columns/m-p/2226187#M18190</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-02T18:34:10Z</dc:date>
    </item>
  </channel>
</rss>

