<?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: What date does CDC use to load a record? in Qlik Compose</title>
    <link>https://community.qlik.com/t5/Qlik-Compose/What-date-does-CDC-use-to-load-a-record/m-p/2079054#M1015</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When Replicate loads the __CT tables, the header_timestamp is based on when the change ocurred in the source sytem.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Compose CDC jobs pickup whatever data is in the __CT table at the stop of the Task.&amp;nbsp; &amp;nbsp;Internally, Compose gathers the MAX(change_seq_number) for the given __CT table and then uses 'WHERE header_change_seq &amp;lt; &amp;amp;&amp;amp;MAX) .&amp;nbsp; &amp;nbsp;This ensures that Compose uses a 'static' set of CT data for error mart and TSTG data loading.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If data is coming in from Replicate &lt;STRONG&gt;during&lt;/STRONG&gt; the DWH process - it will remain in the CT tables, and not be picked up in that run.&amp;nbsp; (Again, Compose wants to ensure a 'consistent' set of changes are processed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are saying - at the start of Compose you update tables - (which are replicated via Replicate to a LANDING ) and within that Compose task you expect the CDC task to pickup those changes - its likely Compose is picking up the max seq number before those records have actually landed in the __CT tables.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2023 15:48:55 GMT</pubDate>
    <dc:creator>TimGarrod</dc:creator>
    <dc:date>2023-06-01T15:48:55Z</dc:date>
    <item>
      <title>What date does CDC use to load a record?</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/What-date-does-CDC-use-to-load-a-record/m-p/2079042#M1014</link>
      <description>&lt;P&gt;I have a number of replicated tables that get come across in __CT tables.&amp;nbsp; Typically, I run CDC at 1am every day.&amp;nbsp; That seems to pickup everything in the __CT tables with yesterday's date.&lt;/P&gt;
&lt;P&gt;However, I have a set of tables that get updated at the beginning of my main compose task.&amp;nbsp; These updates generate __CT records for those tables, and a separate replication job lands them in the landing zone.&amp;nbsp; The header__timestamp is today for each of these.&lt;/P&gt;
&lt;P&gt;The __CT from those tables does not get loaded until the next day.&amp;nbsp; It seems that all other __CT tables that have timestamps of today-1 load into the whse/marts, but those with timestamps of today do not.&lt;/P&gt;
&lt;P&gt;How exactly does the CDC process work, what dates or ??? does it use to determine what to load.&lt;/P&gt;
&lt;P&gt;My Compose task looks like this...&lt;/P&gt;
&lt;P&gt;Load key value tables and generate cdc in landing zone (header__timestamp = today)&lt;/P&gt;
&lt;P&gt;run CDC&lt;/P&gt;
&lt;P&gt;run mart loads&lt;/P&gt;
&lt;P&gt;I was under the impression that whenever CDC runs, it loads everything in the __CT tables and cleans them out; as of the runtime of the CDC load.&amp;nbsp; It certainly seems that it loads based on some dates since I see records that where created (in the __CT) today right before the CDC load that are still in the __CT table after the CDC load.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ron&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 20:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/What-date-does-CDC-use-to-load-a-record/m-p/2079042#M1014</guid>
      <dc:creator>RonFusionHSLLC</dc:creator>
      <dc:date>2025-03-14T20:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: What date does CDC use to load a record?</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/What-date-does-CDC-use-to-load-a-record/m-p/2079054#M1015</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When Replicate loads the __CT tables, the header_timestamp is based on when the change ocurred in the source sytem.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Compose CDC jobs pickup whatever data is in the __CT table at the stop of the Task.&amp;nbsp; &amp;nbsp;Internally, Compose gathers the MAX(change_seq_number) for the given __CT table and then uses 'WHERE header_change_seq &amp;lt; &amp;amp;&amp;amp;MAX) .&amp;nbsp; &amp;nbsp;This ensures that Compose uses a 'static' set of CT data for error mart and TSTG data loading.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If data is coming in from Replicate &lt;STRONG&gt;during&lt;/STRONG&gt; the DWH process - it will remain in the CT tables, and not be picked up in that run.&amp;nbsp; (Again, Compose wants to ensure a 'consistent' set of changes are processed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are saying - at the start of Compose you update tables - (which are replicated via Replicate to a LANDING ) and within that Compose task you expect the CDC task to pickup those changes - its likely Compose is picking up the max seq number before those records have actually landed in the __CT tables.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 15:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/What-date-does-CDC-use-to-load-a-record/m-p/2079054#M1015</guid>
      <dc:creator>TimGarrod</dc:creator>
      <dc:date>2023-06-01T15:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: What date does CDC use to load a record?</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/What-date-does-CDC-use-to-load-a-record/m-p/2079076#M1016</link>
      <description>&lt;P&gt;I see...the task 'Load_Key_Tables' is where these records are created along with the __CT table updates.&amp;nbsp; So from what you described, if I moved the Load_key_Tables task it's own task, then ran the cdc and mart loads in a different task - CDC would pickup the changes that were introduced today?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RonFusionHSLLC_0-1685635033302.png" style="width: 693px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/108936i2223037262FEEC99/image-dimensions/693x132?v=v2" width="693" height="132" role="button" title="RonFusionHSLLC_0-1685635033302.png" alt="RonFusionHSLLC_0-1685635033302.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 15:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/What-date-does-CDC-use-to-load-a-record/m-p/2079076#M1016</guid>
      <dc:creator>RonFusionHSLLC</dc:creator>
      <dc:date>2023-06-01T15:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: What date does CDC use to load a record?</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/What-date-does-CDC-use-to-load-a-record/m-p/2079139#M1017</link>
      <description>When you say "where these records are created along with the __CT table updates" - are you doing that with a pre-load step ?   and are you generating your own '__CT table' records in that preload step ?&lt;BR /&gt;Or - is the flow what I suggested - you are updating tables, using Replicate to push those changes into __CT tables - and then trying to execute CDC ?&lt;BR /&gt;If the latter - then running CDC right after the update - you may still not get all the __CT records - it depends on how much volume Replicate is moving.  You may want to add the replicate control table  Replicate Status into that pipeline- &lt;A href="https://help.qlik.com/en-US/replicate/May2023/Content/Replicate/Main/Control%20Tables/replication_status.htm#Replication%20status" target="_blank"&gt;https://help.qlik.com/en-US/replicate/May2023/Content/Replicate/Main/Control%20Tables/replication_status.htm#Replication%20status&lt;/A&gt;.&lt;BR /&gt;Instead, in your 'Update'  or in a pre-load step in Compose - you can be checking the replication status table to see the  SOURCE_TIMESTAMP_APPLIED - when it matches the value you expect - (in a loop perhaps in a stored procedure) - then just exit the proc, and allow the rest of the CDC task to execute.&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Jun 2023 18:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/What-date-does-CDC-use-to-load-a-record/m-p/2079139#M1017</guid>
      <dc:creator>TimGarrod</dc:creator>
      <dc:date>2023-06-01T18:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: What date does CDC use to load a record?</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/What-date-does-CDC-use-to-load-a-record/m-p/2079593#M1019</link>
      <description>&lt;P&gt;Nice...I'll check that out.&amp;nbsp; That might be the issue.&lt;/P&gt;
&lt;P&gt;edit: checked target db...there is no attrep_status table, not sure what that means as Replication runs in real-time?&lt;/P&gt;
&lt;P&gt;Ron&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 22:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/What-date-does-CDC-use-to-load-a-record/m-p/2079593#M1019</guid>
      <dc:creator>RonFusionHSLLC</dc:creator>
      <dc:date>2023-06-02T22:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: What date does CDC use to load a record?</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/What-date-does-CDC-use-to-load-a-record/m-p/2080135#M1025</link>
      <description>&lt;P&gt;The CDC is from Replicate (MS CDC - Sql Server).&amp;nbsp; The process that (loadkeytables in the diagram) creates records in a database that is replicated to the ODS.&amp;nbsp; There are several other processes that run after that, giving Replicate plenty of time to move all the new data.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 13:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/What-date-does-CDC-use-to-load-a-record/m-p/2080135#M1025</guid>
      <dc:creator>RonFusionHSLLC</dc:creator>
      <dc:date>2023-06-05T13:14:03Z</dc:date>
    </item>
  </channel>
</rss>

