<?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: Expression Filters on Date column not working in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Expression-Filters-on-Date-column-not-working/m-p/2541911#M15834</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/361439"&gt;@AmitB2&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;The filter is not worked as expected because Oracle DATE values include both the date and the time. The expression you are using DATE('NOW') only returns the date portion. That means records from the same day but later in the day don't get included.&lt;/P&gt;
&lt;P&gt;In addition, DATE('NOW') is evaluated in UTC. This means the cutoff date can shift backward depending on your time zone. For example, when my local time is 2026-01-29 06:00:00 GMT+8, DATE('NOW') still returns 2026-01-28 in UTC.&lt;/P&gt;
&lt;P&gt;You can verify this behavior by testing the filter in the Expression Builder.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;
&lt;P&gt;&lt;!--EndFragment --&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jan 2026 03:02:07 GMT</pubDate>
    <dc:creator>DesmondWOO</dc:creator>
    <dc:date>2026-01-29T03:02:07Z</dc:date>
    <item>
      <title>Expression Filters on Date column not working</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Expression-Filters-on-Date-column-not-working/m-p/2541790#M15828</link>
      <description>&lt;DIV class="topic-subject-wrapper"&gt;
&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;
&lt;DIV class="MessageSubject"&gt;
&lt;DIV class="lia-message-subject"&gt;&lt;FONT size="3"&gt;I have added below Expression Filter on DATE column of table in source oracle database.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="lia-message-subject"&gt;&lt;FONT size="3"&gt;$TRAN_DATE &amp;lt;= date('now')&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="lia-message-subject"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="lia-message-subject"&gt;&lt;FONT size="3"&gt;My target DB is SQL Server and target table column is DateTime.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="lia-message-subject"&gt;&lt;FONT size="3"&gt;Even though data exists for this filter condition, its not getting replicated to target when i run the task.&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="MessageInResponseTo lia-component-message-view-widget-in-response-to lia-component-in-response-to"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="bodyDisplay" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;&lt;FONT size="3"&gt;If i don't use any filter, replication works fine.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="lia-message-body-content"&gt;&lt;FONT size="3"&gt;Is there any issue with this expression ?&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="lia-message-body-content"&gt;&lt;FONT size="3"&gt;Logs seems to indicate that, Qlik is trying to update record into target, where a new record is inserted in source DB.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="lia-message-body-content"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="lia-message-body-content"&gt;&lt;FONT size="3"&gt;Logs shows below:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="lia-message-body-content"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="lia-message-body-content"&gt;&lt;FONT size="3"&gt;Full Load:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;DIV id="txtView83" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20083"&gt;&lt;FONT size="3"&gt;[TRANSFORMATION ]I: Filter for Table 'INBOUND_TRANSACTION' is '$TRAN_DATE &amp;lt;= date('now')' (manipulator.c:1675)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;[TRANSFORMATION ]I: A filter is defined for column(s) 'TRAN_DATE' in table 'INBOUND_TRANSACTION' (manipulator.c:1777)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;[TARGET_LOAD ]I: Bulk is set to ignore max row size warnings (sqlserver_endpoint_imp.c:1758)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;[TARGET_LOAD ]I: Working with collated columns (sqlserver_endpoint_imp.c:1818)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;[TARGET_LOAD ]I: Working with BCPKeepNull set to TRUE (sqlserver_endpoint_imp.c:1822)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;[TARGET_LOAD ]I: Target endpoint 'SQL Server' is using provider syntax 'SQLServer' (provider_syntax_manager.c:977)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;[TARGET_LOAD ]I: Going to use provider syntax for datatype mapping (sqlserver_endpoint_imp.c:1849)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;[TARGET_LOAD ]I: Going to connect to server 'sqlmi-mcc-intell-core-uat.87327b3240b9.database.windows.net' database 'sqldb-mcc-pnc-suite-test4' (sqlserver_endpoint_imp.c:1852)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;[TARGET_LOAD ]I: Target endpoint 'SQL Server' is using provider syntax 'SQLServer' (provider_syntax_manager.c:977)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;[SOURCE_CAPTURE ]I: Source endpoint 'Oracle' is using provider syntax 'Oracle' (provider_syntax_manager.c:971)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;[SORTER ]I: Reload for table Id 4 is requested (sorter_transaction.c:2472)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;[SORTER ]I: Start collecting changes for table id = 4 (sorter_transaction.c:2347)\&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;[TARGET_LOAD ]I: Set timeout of Load statement to '12000' seconds (sqlserver_endpoint_imp.c:4110)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;[SOURCE_UNLOAD ]I: Unload finished for table 'MESSAGES' (Id = 4). 22204 rows sent. (streamcomponent.c:3804)&lt;/FONT&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-message-body-content"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="lia-message-body-content"&gt;&lt;FONT size="3"&gt;Incremental - Apply Changes (CDC):&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;DIV id="txtView104" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20104"&gt;&lt;FONT size="3"&gt;&amp;nbsp;[TARGET_APPLY ]I: Bulk apply operation failed. Trying to execute bulk statements in 'one-by-one' mode (bulk_apply.c:2457)&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV id="txtView105" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20105"&gt;&lt;FONT size="3"&gt;&amp;nbsp;[TARGET_APPLY ]I: Applying UPDATES one-by-one for table 'BILLING_CONTENT'.'INBOUND_TRANSACTION' (1) (bulk_apply.c:5099)&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV id="txtView106" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20106"&gt;&lt;FONT size="3"&gt;&lt;SPAN class="oColor"&gt;&amp;nbsp;[TARGET_APPLY ]W: Source changes that would have had no impact were not applied to the target database. Refer to the 'attrep_apply_exceptions' table for details (endpointshell.c:7646) &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV id="txtView107" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20107"&gt;&lt;FONT size="3"&gt;[TARGET_APPLY ]I: Switch back to bulk apply mode (bulk_apply.c:5216)&lt;/FONT&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Jan 2026 11:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Expression-Filters-on-Date-column-not-working/m-p/2541790#M15828</guid>
      <dc:creator>AmitB2</dc:creator>
      <dc:date>2026-01-28T11:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Filters on Date column not working</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Expression-Filters-on-Date-column-not-working/m-p/2541849#M15831</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/361439"&gt;@AmitB2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where is the filter defined, as a full load pass thru filter, or record selection, or both? For reference:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Filter-for-last-90-days-of-data-in-Qlik-Replicate/ta-p/1880761" target="_blank"&gt;Filter for last 90 days of data in Qlik Replicate - Qlik Community - 1880761&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you query the source table outside Replicate using this in the where clause, do you get the records you expect? You do not want to see any dates newer than now, yes?&lt;/P&gt;
&lt;P&gt;What does the attrep_apply_exceptions table show?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Dana&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 15:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Expression-Filters-on-Date-column-not-working/m-p/2541849#M15831</guid>
      <dc:creator>Dana_Baldwin</dc:creator>
      <dc:date>2026-01-28T15:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Filters on Date column not working</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Expression-Filters-on-Date-column-not-working/m-p/2541911#M15834</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/361439"&gt;@AmitB2&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;The filter is not worked as expected because Oracle DATE values include both the date and the time. The expression you are using DATE('NOW') only returns the date portion. That means records from the same day but later in the day don't get included.&lt;/P&gt;
&lt;P&gt;In addition, DATE('NOW') is evaluated in UTC. This means the cutoff date can shift backward depending on your time zone. For example, when my local time is 2026-01-29 06:00:00 GMT+8, DATE('NOW') still returns 2026-01-28 in UTC.&lt;/P&gt;
&lt;P&gt;You can verify this behavior by testing the filter in the Expression Builder.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;
&lt;P&gt;&lt;!--EndFragment --&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 03:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Expression-Filters-on-Date-column-not-working/m-p/2541911#M15834</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2026-01-29T03:02:07Z</dc:date>
    </item>
  </channel>
</rss>

