<?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: Table filter expression in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Table-filter-expression/m-p/1891803#M1836</link>
    <description>&lt;P&gt;I happened to have some background information. I first tested this myself on a msSQL source and it worked fine. This problem is specific to the (unspecified) source database which as it turns out was PostgreSQL.&lt;/P&gt;
&lt;P&gt;The Qlik Replicate error message was right on the mark, the column used in the test simply was not in the WAL datastream for a DELETE operation. It was there for INSERTs and UPDATEs.&lt;/P&gt;
&lt;P&gt;The workaround/solution is to ALTER TABLE xxx&amp;nbsp;&lt;SPAN&gt;REPLICA IDENTITY&amp;nbsp; FULL (which is relatively high overhead)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Or, add the filter column(s) to the PK Constraint and&amp;nbsp;ALTER TABLE xxx&amp;nbsp;REPLICA IDENTITY&amp;nbsp; USING INDEX pk (ugly)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;btw... the filter was a second level filter meant for insert/updates where the first level filter excluded DELETE. One might that the second level is not executed when the first level fails, but that's not the case. The whole filter is first evaluated/parsed (by SQLite).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hein&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 05:38:45 GMT</pubDate>
    <dc:creator>Heinvandenheuvel</dc:creator>
    <dc:date>2022-02-11T05:38:45Z</dc:date>
    <item>
      <title>Table filter expression</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Table-filter-expression/m-p/1890642#M1823</link>
      <description>&lt;P&gt;how do you prevent the filter expression from processing a DELETE operation.&amp;nbsp; &amp;nbsp;When my expression processes a delete it causes the table replication to suspend with error message:&lt;/P&gt;
&lt;P&gt;Table 'ods_owner'.'ppd_entry_bob' (subtask 0 thread 1) is suspended. Cannot compute expression, not all column values are in the data record.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my expression is:&amp;nbsp;&amp;nbsp;$upsert_user!='qlikreplicate'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where&amp;nbsp;upsert_user is a string field in the&amp;nbsp;ppd_entry_bob table&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 21:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Table-filter-expression/m-p/1890642#M1823</guid>
      <dc:creator>Bob09</dc:creator>
      <dc:date>2022-02-08T21:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Table filter expression</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Table-filter-expression/m-p/1890643#M1824</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to this article in our community:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/Filter-Deletes-in-Replicate/ta-p/1801945" target="_blank"&gt;https://community.qlik.com/t5/Knowledge/Filter-Deletes-in-Replicate/ta-p/1801945&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Lyka&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 21:20:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Table-filter-expression/m-p/1890643#M1824</guid>
      <dc:creator>lyka</dc:creator>
      <dc:date>2022-02-08T21:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Table filter expression</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Table-filter-expression/m-p/1891803#M1836</link>
      <description>&lt;P&gt;I happened to have some background information. I first tested this myself on a msSQL source and it worked fine. This problem is specific to the (unspecified) source database which as it turns out was PostgreSQL.&lt;/P&gt;
&lt;P&gt;The Qlik Replicate error message was right on the mark, the column used in the test simply was not in the WAL datastream for a DELETE operation. It was there for INSERTs and UPDATEs.&lt;/P&gt;
&lt;P&gt;The workaround/solution is to ALTER TABLE xxx&amp;nbsp;&lt;SPAN&gt;REPLICA IDENTITY&amp;nbsp; FULL (which is relatively high overhead)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Or, add the filter column(s) to the PK Constraint and&amp;nbsp;ALTER TABLE xxx&amp;nbsp;REPLICA IDENTITY&amp;nbsp; USING INDEX pk (ugly)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;btw... the filter was a second level filter meant for insert/updates where the first level filter excluded DELETE. One might that the second level is not executed when the first level fails, but that's not the case. The whole filter is first evaluated/parsed (by SQLite).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hein&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 05:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Table-filter-expression/m-p/1891803#M1836</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2022-02-11T05:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table filter expression</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Table-filter-expression/m-p/2544612#M16006</link>
      <description>&lt;P&gt;The solution for using a column filter when the table also has DELETES occurring is to change the filter expression to:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;COALESCE&lt;/SPAN&gt;(&lt;SPAN class=""&gt;LOWER&lt;/SPAN&gt;($lastupdtuser), &lt;SPAN class=""&gt;'N/A'&lt;/SPAN&gt;) &lt;SPAN class=""&gt;!=&lt;/SPAN&gt; &lt;SPAN class=""&gt;'qlikreplicate'&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2026 19:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Table-filter-expression/m-p/2544612#M16006</guid>
      <dc:creator>Bob09</dc:creator>
      <dc:date>2026-03-11T19:57:37Z</dc:date>
    </item>
  </channel>
</rss>

