<?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: Revert inserted lines if errors in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Revert-inserted-lines-if-errors/m-p/2204113#M5124</link>
    <description>&lt;P&gt;Can you show the job that you have now? It is very difficult to give an answer without seeing your current layout&lt;/P&gt;</description>
    <pubDate>Fri, 21 Sep 2018 10:51:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-21T10:51:58Z</dc:date>
    <item>
      <title>Revert inserted lines if errors</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Revert-inserted-lines-if-errors/m-p/2204110#M5121</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;We have a simple job that takes all data in a table A (mysql), where a flag value is 0 and put it in another database table B (oracle).&lt;/P&gt; 
&lt;P&gt;When it's done, we update all lines in A to put the flag value to 1. So next time the job is run, lines are not inserted a second time.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0JG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152316i50DC4248BAF6C5A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0JG.png" alt="0683p000009M0JG.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Problem is that, sometimes, another job is inserting data in A when we try to update, so there's a lock.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1. The job is always OK. subjob is not in error (tWarn_1 and 2 are activated).&amp;nbsp;tMysqlInput_1_NB_LINE gives the number of line that sould have been updated, but since there was a lock, in fact no line is updated. Is it normal? How can we handle this to have an error?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2. How can we revert datas inserted in B if there's an error in our update of A?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 14:15:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Revert-inserted-lines-if-errors/m-p/2204110#M5121</guid>
      <dc:creator>Alinea</dc:creator>
      <dc:date>2018-09-19T14:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Revert inserted lines if errors</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Revert-inserted-lines-if-errors/m-p/2204111#M5122</link>
      <description>&lt;P&gt;Use a tOracleConnection component and use that shared connection for your DB B component. Then, at the end of the job (once you are happy that everything is OK) use a tOracleCommit component to commit the transactions. You will need to use a RunIf link or similar to do this.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 14:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Revert-inserted-lines-if-errors/m-p/2204111#M5122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-19T14:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Revert inserted lines if errors</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Revert-inserted-lines-if-errors/m-p/2204112#M5123</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the problem now is that when there's a lock, there's no error. I see you propose to do it with a "run if", but what condition will be fulfilled when i have an SQL error and also lock errors?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 09:36:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Revert-inserted-lines-if-errors/m-p/2204112#M5123</guid>
      <dc:creator>Alinea</dc:creator>
      <dc:date>2018-09-21T09:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Revert inserted lines if errors</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Revert-inserted-lines-if-errors/m-p/2204113#M5124</link>
      <description>&lt;P&gt;Can you show the job that you have now? It is very difficult to give an answer without seeing your current layout&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 10:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Revert-inserted-lines-if-errors/m-p/2204113#M5124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-21T10:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Revert inserted lines if errors</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Revert-inserted-lines-if-errors/m-p/2204114#M5125</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M04a.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140804i964E0501E2051990/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M04a.png" alt="0683p000009M04a.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;EDIT : I don't know if it's more helpful. Tell me if you need more informations.&lt;/P&gt; 
&lt;P&gt;For now, if there's a lock, lines are not inserted (tMysqlOuput_1) but OnSubjobOk is triggered. That's my problem.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks again for your help&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 10:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Revert-inserted-lines-if-errors/m-p/2204114#M5125</guid>
      <dc:creator>Alinea</dc:creator>
      <dc:date>2018-09-27T10:02:07Z</dc:date>
    </item>
  </channel>
</rss>

