<?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: DWH CDC not able to manage multiple changes in source in Qlik Compose</title>
    <link>https://community.qlik.com/t5/Qlik-Compose/DWH-CDC-not-able-to-manage-multiple-changes-in-source/m-p/1792212#M263</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/135040"&gt;@fanny_betd&lt;/a&gt;&amp;nbsp; -&amp;nbsp; &amp;nbsp;Compose DOES support processing multiple changes in the CT table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you are processing __CT data with Compose there can always be multiple changes for the same "key" value.&amp;nbsp; &amp;nbsp; Any CDC ETL Set should have the "Handle Duplicates" checkbox enabled for the mappings in that ETL set.&amp;nbsp; &amp;nbsp;This tells Compose that there could be duplicate records for each key with different FROM DATES (FD).&amp;nbsp; &amp;nbsp;(Note by default Compose will use the header__timestamp provided by Replicate for the FD column).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See screenshot - notice that the "handle duplicates" is checked for all mappings in my "CDC" etl set.&amp;nbsp; (I have not checked these in the full load ETL set.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimGarrod_0-1615989689185.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51324iBBD23411F7CD0FF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimGarrod_0-1615989689185.png" alt="TimGarrod_0-1615989689185.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also - be aware that the default behavior in Compose is to track and manage EVERY change from the source.&amp;nbsp; However, if you only wish to keep the latest change for a given day - you can adjust the"Default History Resolution" setting for each ETL Set (thus allowing you to determine which groups of mappings you wish to manage every change v only the last change).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimGarrod_1-1615989817995.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51325iC3BB826CC1690E5B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimGarrod_1-1615989817995.png" alt="TimGarrod_1-1615989817995.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
    <pubDate>Wed, 17 Mar 2021 14:04:16 GMT</pubDate>
    <dc:creator>TimGarrod</dc:creator>
    <dc:date>2021-03-17T14:04:16Z</dc:date>
    <item>
      <title>DWH CDC not able to manage multiple changes in source</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/DWH-CDC-not-able-to-manage-multiple-changes-in-source/m-p/1781926#M244</link>
      <description>&lt;P&gt;When applying multiple changes in the same source (here table named: produits), without re-run the DWH_CDC between each changes, an error occurs:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2021-02-11 à 10.52.43.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/48896i229D8B78BCA1666A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d’écran 2021-02-11 à 10.52.43.png" alt="Capture d’écran 2021-02-11 à 10.52.43.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Log details:&lt;/STRONG&gt;&lt;/U&gt;&lt;EM&gt; "Load job aborted - Unexpected Primary Key Violations detected in produits"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2021-02-11 à 10.53.04.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/48897iB9F0BC940606FCA1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d’écran 2021-02-11 à 10.53.04.png" alt="Capture d’écran 2021-02-11 à 10.53.04.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To get around this issue, we had to delete all inserted lines in produits_ct and re-run the DWH CDC, then no more issue.&lt;/P&gt;&lt;P&gt;We've made the test:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;apply price change from x&lt;FONT size="2"&gt;1&lt;/FONT&gt; to x&lt;FONT size="2"&gt;2&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;apply price change from x&lt;FONT size="2"&gt;2&lt;/FONT&gt; to x&lt;FONT size="2"&gt;3&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;run the DWH_CDC&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt; &lt;STRONG&gt;crash&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We were expecting that compose will either handle both modifications, or at least the last one. But the screened error above occurs, seems that compose does not handle any case when multiple changes are done.&lt;/P&gt;&lt;P&gt;We then tried to:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;apply price change from x&lt;FONT size="2"&gt;1&lt;/FONT&gt; to x&lt;FONT size="2"&gt;2&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;run the DWH_CDC&lt;/LI&gt;&lt;LI&gt;apply price change from x&lt;FONT size="2"&gt;2&lt;/FONT&gt; to x&lt;FONT size="2"&gt;3&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;run the DWH_CDC&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt; no crash&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any recommendations to manage this situation ?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 20:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/DWH-CDC-not-able-to-manage-multiple-changes-in-source/m-p/1781926#M244</guid>
      <dc:creator>fanny_betd</dc:creator>
      <dc:date>2025-03-14T20:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: DWH CDC not able to manage multiple changes in source</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/DWH-CDC-not-able-to-manage-multiple-changes-in-source/m-p/1792093#M262</link>
      <description>&lt;P&gt;You can accomplish CDC with continuous streaming for real-time updates, or asynchronously by looking at the source periodically and replicating the changed data.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 08:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/DWH-CDC-not-able-to-manage-multiple-changes-in-source/m-p/1792093#M262</guid>
      <dc:creator>barretthowe</dc:creator>
      <dc:date>2021-03-17T08:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: DWH CDC not able to manage multiple changes in source</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/DWH-CDC-not-able-to-manage-multiple-changes-in-source/m-p/1792212#M263</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/135040"&gt;@fanny_betd&lt;/a&gt;&amp;nbsp; -&amp;nbsp; &amp;nbsp;Compose DOES support processing multiple changes in the CT table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you are processing __CT data with Compose there can always be multiple changes for the same "key" value.&amp;nbsp; &amp;nbsp; Any CDC ETL Set should have the "Handle Duplicates" checkbox enabled for the mappings in that ETL set.&amp;nbsp; &amp;nbsp;This tells Compose that there could be duplicate records for each key with different FROM DATES (FD).&amp;nbsp; &amp;nbsp;(Note by default Compose will use the header__timestamp provided by Replicate for the FD column).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See screenshot - notice that the "handle duplicates" is checked for all mappings in my "CDC" etl set.&amp;nbsp; (I have not checked these in the full load ETL set.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimGarrod_0-1615989689185.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51324iBBD23411F7CD0FF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimGarrod_0-1615989689185.png" alt="TimGarrod_0-1615989689185.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also - be aware that the default behavior in Compose is to track and manage EVERY change from the source.&amp;nbsp; However, if you only wish to keep the latest change for a given day - you can adjust the"Default History Resolution" setting for each ETL Set (thus allowing you to determine which groups of mappings you wish to manage every change v only the last change).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimGarrod_1-1615989817995.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51325iC3BB826CC1690E5B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimGarrod_1-1615989817995.png" alt="TimGarrod_1-1615989817995.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 14:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/DWH-CDC-not-able-to-manage-multiple-changes-in-source/m-p/1792212#M263</guid>
      <dc:creator>TimGarrod</dc:creator>
      <dc:date>2021-03-17T14:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: DWH CDC not able to manage multiple changes in source</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/DWH-CDC-not-able-to-manage-multiple-changes-in-source/m-p/1792910#M273</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/137571"&gt;@Shannon36&lt;/a&gt;&amp;nbsp; - this is not entirely accurate.&amp;nbsp; &amp;nbsp;Replicate has 2 options to help manage TLOG truncation -&amp;nbsp; sp_repldone (which could cause what you've stated) or starting a transaction in a dummy table.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;In the second instance, if the Replicate task is down - there is no transaction / lock on the tlog and your backups can checkpoint and thus "truncate" the transaction log.&amp;nbsp; &amp;nbsp;When Replicate resumes it will read MSDB and determine where the LSN is that it is looking for.&amp;nbsp; &amp;nbsp;So long as the backup is a native sql backup and still available on the server in some capacity, Replicate should be able to read from the backup log.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are having this issue you describe above, I recommend opening a support ticket to get help on configuring Replicate to prevent hits issue from happening.&amp;nbsp; &amp;nbsp; &amp;nbsp;Quite frankly if Replicate is down for a couple of days - you are likley better off doing a reload than trying to navigate days worth of activity in TLogs (depending on your volume of changes of course).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally if this is a problem you have often - there is also the option to use LogStream where the Replicate capture task is not impacted by the delivery task.&amp;nbsp; Replicate will capture and store the transactions on its server and a secondary task reads that "LogStream" to send to the target.&amp;nbsp; &amp;nbsp;Now you need enough storage space on the Replicate server to house the data for whatever your down period is, but it means the capture of transactions has occured and is not impacted by a target being down.&amp;nbsp; &amp;nbsp; There's no free lunch on this type of problem though.&amp;nbsp; If you are doing transactional replication and you have a prolonged out of a couple of days due to your target being down - something has to give somewhere.&amp;nbsp; Just know there are ways to mitigate impact to production databases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 14:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/DWH-CDC-not-able-to-manage-multiple-changes-in-source/m-p/1792910#M273</guid>
      <dc:creator>TimGarrod</dc:creator>
      <dc:date>2021-03-19T14:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: DWH CDC not able to manage multiple changes in source</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/DWH-CDC-not-able-to-manage-multiple-changes-in-source/m-p/1873254#M448</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/135040"&gt;@fanny_betd&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;When applying multiple changes in the same source (here table named: produits), without re-run the DWH_CDC between each changes, an error occurs:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2021-02-11 à 10.52.43.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/48896i229D8B78BCA1666A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d’écran 2021-02-11 à 10.52.43.png" alt="Capture d’écran 2021-02-11 à 10.52.43.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Log details:&lt;/STRONG&gt;&lt;/U&gt;&lt;EM&gt; "Load job aborted - Unexpected Primary Key Violations detected in produits"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2021-02-11 à 10.53.04.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/48897iB9F0BC940606FCA1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d’écran 2021-02-11 à 10.53.04.png" alt="Capture d’écran 2021-02-11 à 10.53.04.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;To get around this issue, we had to delete all inserted lines in produits_ct and re-run the DWH CDC, then no more issue.&lt;/P&gt;
&lt;P&gt;We've made the test:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;apply price change from x&lt;FONT size="2"&gt;1&lt;/FONT&gt; to x&lt;FONT size="2"&gt;2&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;apply price change from x&lt;FONT size="2"&gt;2&lt;/FONT&gt; to x&lt;FONT size="2"&gt;3&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;run the DWH_CDC&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt; &lt;STRONG&gt;crash&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;We were expecting that compose will either handle both modifications, or at least the last one. But the screened error above occurs, seems that compose does not handle any case when multiple changes are done.&lt;/P&gt;
&lt;P&gt;We then tried to:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;apply price change from x&lt;FONT size="2"&gt;1&lt;/FONT&gt; to x&lt;FONT size="2"&gt;2&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;run the DWH_CDC&lt;/LI&gt;
&lt;LI&gt;apply price change from x&lt;FONT size="2"&gt;2&lt;/FONT&gt; to x&lt;FONT size="2"&gt;3&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;run the DWH_CDC&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;gt; no crash&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Does anyone have any recommendations to manage this situation ?&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Everything is very open with a clear description of the issues. It was truly informative. Your website is very helpful. Many thanks for sharing!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 11:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/DWH-CDC-not-able-to-manage-multiple-changes-in-source/m-p/1873254#M448</guid>
      <dc:creator>Price7466</dc:creator>
      <dc:date>2021-12-20T11:49:37Z</dc:date>
    </item>
  </channel>
</rss>

