<?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: Move Deleted Records into another Table in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Move-Deleted-Records-into-another-Table/m-p/2517245#M14285</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp; John,&lt;/P&gt;&lt;P&gt;I have similar task to insert DELETED record from source table to another Archive Table where to keep the history data. Need your help to provide a details step to configure the additional Qlik Replicate Task just to keep deleted record in Archive table.&lt;/P&gt;&lt;P&gt;below step configured but hit error:&lt;/P&gt;&lt;P&gt;1) Table Setting&amp;gt; Filter &amp;gt; Record Selection Condition &amp;gt;&amp;nbsp; $AR_H_OPERATION=='DELETE'&lt;/P&gt;&lt;P&gt;2) Task Setting &amp;gt; Change Processing &amp;gt; Off "Store Changes Setting"&lt;/P&gt;&lt;P&gt;When source deleted record, we hit the error of no record found to perform deletion as the table remain 0 records since all record coming in before are Insert / Update which we do have another task handle the insert and update record to another target table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 May 2025 08:34:00 GMT</pubDate>
    <dc:creator>tanhanyan</dc:creator>
    <dc:date>2025-05-09T08:34:00Z</dc:date>
    <item>
      <title>Move Deleted Records into another Table</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Move-Deleted-Records-into-another-Table/m-p/1834089#M1088</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Using Qlik Attunity Replicate process is it possible to move records that are deleted from the source into a separate table in the target database or set a flag in the target table to indicate that the record was deleted from the source.&lt;/P&gt;&lt;P&gt;Any suggestions will be highly appreciated.&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Ramdas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 21:41:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Move-Deleted-Records-into-another-Table/m-p/1834089#M1088</guid>
      <dc:creator>RamdasP</dc:creator>
      <dc:date>2021-09-06T21:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Move Deleted Records into another Table</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Move-Deleted-Records-into-another-Table/m-p/1834097#M1089</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/149047"&gt;@RamdasP&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If you want to keep the 'deleted' rows in the same target table, you may use&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/replicate/May2021/Content/Global_Common/Content/SharedEMReplicate/Customize%20Tasks/tasks_expressOther.htm" target="_self"&gt;operation_indicator(value_on_delete, value_on_update, value_on_insert)&lt;/A&gt;&amp;nbsp; function.&lt;/P&gt;
&lt;P&gt;If you want to put the 'deleted' rows to a separate target table, then you can use multiple tasks. In one task filter out the 'DELETE' operation rows (keep insert and update rows only, but you may have to use UPSERT mode in this task because of PK violation of insert), in another task (store changes only) stores the 'DELETE' operation rows.&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 22:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Move-Deleted-Records-into-another-Table/m-p/1834097#M1089</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2021-09-06T22:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Move Deleted Records into another Table</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Move-Deleted-Records-into-another-Table/m-p/1834156#M1092</link>
      <description>&lt;P&gt;Thx, John&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 06:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Move-Deleted-Records-into-another-Table/m-p/1834156#M1092</guid>
      <dc:creator>RamdasP</dc:creator>
      <dc:date>2021-09-07T06:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Move Deleted Records into another Table</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Move-Deleted-Records-into-another-Table/m-p/2517245#M14285</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp; John,&lt;/P&gt;&lt;P&gt;I have similar task to insert DELETED record from source table to another Archive Table where to keep the history data. Need your help to provide a details step to configure the additional Qlik Replicate Task just to keep deleted record in Archive table.&lt;/P&gt;&lt;P&gt;below step configured but hit error:&lt;/P&gt;&lt;P&gt;1) Table Setting&amp;gt; Filter &amp;gt; Record Selection Condition &amp;gt;&amp;nbsp; $AR_H_OPERATION=='DELETE'&lt;/P&gt;&lt;P&gt;2) Task Setting &amp;gt; Change Processing &amp;gt; Off "Store Changes Setting"&lt;/P&gt;&lt;P&gt;When source deleted record, we hit the error of no record found to perform deletion as the table remain 0 records since all record coming in before are Insert / Update which we do have another task handle the insert and update record to another target table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 08:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Move-Deleted-Records-into-another-Table/m-p/2517245#M14285</guid>
      <dc:creator>tanhanyan</dc:creator>
      <dc:date>2025-05-09T08:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Move Deleted Records into another Table</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Move-Deleted-Records-into-another-Table/m-p/2517408#M14295</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/259309"&gt;@tanhanyan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for the following up.&lt;/P&gt;
&lt;P data-start="72" data-end="238"&gt;When the &lt;STRONG&gt;operation_indicator&amp;nbsp;&lt;/STRONG&gt;function is used in a task, it significantly changes the task behavior: &lt;STRONG data-start="175" data-end="212"&gt;records will no longer be deleted&lt;/STRONG&gt; from the target endpoint.&lt;/P&gt;
&lt;P data-start="240" data-end="365"&gt;For example, if you add a &lt;EM class="Highlight ht3ec7d61a-4558-4809-bebc-3c5e0889f80a"&gt;new&lt;/EM&gt; column, e.g., flag,&amp;nbsp;with a string or integer data type in a table, you can use the following expression:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;operation_indicator('Deleted', 'Updated', 'Inserted')&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;operation_indicator('D','U','I')&lt;/STRONG&gt;&lt;/P&gt;
&lt;P data-start="484" data-end="614"&gt;The column will then contain values that indicate the type of operation on the source side: &lt;STRONG data-start="576" data-end="586"&gt;DELETE&lt;/STRONG&gt;, &lt;STRONG data-start="588" data-end="598"&gt;UPDATE&lt;/STRONG&gt;, or &lt;STRONG data-start="603" data-end="613"&gt;INSERT&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P data-start="616" data-end="693"&gt;If your downstream applications require an integer flag instead, you can use:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;operation_indicator('1','2','0')&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Let us know if you need any further details or assistance.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 May 2025 08:30:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Move-Deleted-Records-into-another-Table/m-p/2517408#M14295</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-05-10T08:30:26Z</dc:date>
    </item>
  </channel>
</rss>

