<?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] tOracleOutput and &amp;quot;Empty table&amp;quot; option in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleOutput-and-quot-Empty-table-quot-option/m-p/2227415#M19036</link>
    <description>As I think I can't guess if I'm on the first iteration or not, I will need to review my job design.
&lt;BR /&gt;Initialisations will go first in a tempfile. If no lines (no initialisations), treat other cases. Else empty table and insert everything...
&lt;BR /&gt;Still working on it... but I found my first approach prettier (even if it's not working) ;-)
&lt;BR /&gt;Thanks for your help again.</description>
    <pubDate>Fri, 04 Mar 2011 15:48:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-03-04T15:48:29Z</dc:date>
    <item>
      <title>[resolved] tOracleOutput and "Empty table" option</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleOutput-and-quot-Empty-table-quot-option/m-p/2227412#M19033</link>
      <description>Hi, 
&lt;BR /&gt;I'm working on Talend job that should sometimes empty a table before initializing it, but sometimes should only update or create data without emptying it. 
&lt;BR /&gt;More precisely, my input is an XML file that, once 'flatten', sometimes looks like : 
&lt;BR /&gt;AAA;111;I 
&lt;BR /&gt;BBB;222;I 
&lt;BR /&gt;CCC;333;I 
&lt;BR /&gt;... 
&lt;BR /&gt;'I' is for initialization : the table should be empty and everything should be replaced. 
&lt;BR /&gt;But sometimes it looks like : 
&lt;BR /&gt;DDD;444;C 
&lt;BR /&gt;EEE;555;S 
&lt;BR /&gt;FFF;666;M 
&lt;BR /&gt;'C' for creation, 'M' for modification and 'S' for suppression (delete). 
&lt;BR /&gt;My job takes the XML file, flatten it and, through a tMap with four outputs (depending on I, M, C and S), redirects rows to independently configured tOracleOutputs. 
&lt;BR /&gt;My 'I' output is linked to a tOracleOutput with "Empty table" option. 
&lt;BR /&gt;Other outputs 'classicaly' go to tOracleOutput with 'create', 'update' and 'delete' options (but without 'Empty table' option). 
&lt;BR /&gt;Here is a screenshot of my job : 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;BR /&gt;In this screenshot, you can see 2 rows in my 'C' (creation) output, and 0 row in my 'I' output (component detail showing 'Empty table'/'Vider la table' option). 
&lt;BR /&gt;The thing is : even if there no rows with 'I' options, my table is always emptied. It seems that the tOracleOuput ALWAYS empty the table even if there no rows on it. 
&lt;BR /&gt;You can understand that after that, my creations, modifications and deletions are done on an empty table, and that's not what I want to implement. 
&lt;BR /&gt;Is there a way of blocking this 'Empty table' action if there no row on my 'Initialisation' output ? 
&lt;BR /&gt;Hope the description of my problem is clear enough. 
&lt;BR /&gt;Thanks for your help. 
&lt;BR /&gt;Roland SAIKALI.</description>
      <pubDate>Sat, 16 Nov 2024 13:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleOutput-and-quot-Empty-table-quot-option/m-p/2227412#M19033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tOracleOutput and "Empty table" option</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleOutput-and-quot-Empty-table-quot-option/m-p/2227413#M19034</link>
      <description>Hi
&lt;BR /&gt;on 'I' flow, just add a tFlowToItearate+tFixedFlowInput between tMap and Oracle, eg:
&lt;BR /&gt;.....tMap---main---tFlowToIterate---iterate---tFixedFlowInput---main--tOracleOutput
&lt;BR /&gt;on tFixedFlowInput, generate the current flow
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 04 Mar 2011 10:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleOutput-and-quot-Empty-table-quot-option/m-p/2227413#M19034</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-04T10:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tOracleOutput and "Empty table" option</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleOutput-and-quot-Empty-table-quot-option/m-p/2227414#M19035</link>
      <description>Thanks Shong, it's resolving the bad effect.
&lt;BR /&gt;But my table is now emptied on each iteration...
&lt;BR /&gt;I'm now looking for a way I can know I'm on the first iteration to empty my table only once...</description>
      <pubDate>Fri, 04 Mar 2011 10:58:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleOutput-and-quot-Empty-table-quot-option/m-p/2227414#M19035</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-04T10:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tOracleOutput and "Empty table" option</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleOutput-and-quot-Empty-table-quot-option/m-p/2227415#M19036</link>
      <description>As I think I can't guess if I'm on the first iteration or not, I will need to review my job design.
&lt;BR /&gt;Initialisations will go first in a tempfile. If no lines (no initialisations), treat other cases. Else empty table and insert everything...
&lt;BR /&gt;Still working on it... but I found my first approach prettier (even if it's not working) ;-)
&lt;BR /&gt;Thanks for your help again.</description>
      <pubDate>Fri, 04 Mar 2011 15:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleOutput-and-quot-Empty-table-quot-option/m-p/2227415#M19036</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-04T15:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tOracleOutput and "Empty table" option</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleOutput-and-quot-Empty-table-quot-option/m-p/2227416#M19037</link>
      <description>Hi&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;But my table is now emptied on each iteration...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;oh... I have overlooked this point.  As you done, writing result to a temp file is a solution.&lt;BR /&gt;Best regards&lt;BR /&gt;Shog</description>
      <pubDate>Mon, 07 Mar 2011 06:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleOutput-and-quot-Empty-table-quot-option/m-p/2227416#M19037</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-07T06:22:08Z</dc:date>
    </item>
  </channel>
</rss>

