<?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: Partial Reload not working as expected in Move to Qlik Cloud Analytics</title>
    <link>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Partial-Reload-not-working-as-expected/m-p/2495758#M2208</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/82758"&gt;@diegozecchini&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Following load will not work in the section:&amp;nbsp;&lt;SPAN&gt;IsPartialReload()&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;table_tmp:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;load * resident table;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/May2024/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/PartialReload.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/May2024/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/PartialReload.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It needs something like add / replace / etc...&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2024 10:26:29 GMT</pubDate>
    <dc:creator>profilejamesbond</dc:creator>
    <dc:date>2024-12-03T10:26:29Z</dc:date>
    <item>
      <title>Partial Reload not working as expected</title>
      <link>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Partial-Reload-not-working-as-expected/m-p/2495695#M2204</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I implemented partial reload in Qlik but I see it is not working as expected.&lt;/P&gt;
&lt;P&gt;Scenario:&lt;/P&gt;
&lt;P&gt;I want to load full table on first of each month and rest of the month days, I want to load them partially.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My code:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;//full reload&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;If not IsPartialReload() then&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;table&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;load * from &lt;STRONG&gt;sql.datasource&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;end if&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;//partial reload&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If IsPartialReload() then&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;table_tmp&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;NoConcatenate&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;replace&lt;/STRONG&gt; load * from &lt;STRONG&gt;table&lt;/STRONG&gt; where date&amp;lt;date(today()-5, 'DD.MM.YYYY');&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Concatenate(&lt;/SPAN&gt;table_tmp)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;add&lt;/STRONG&gt; load * from &lt;STRONG&gt;sql.datasource&amp;nbsp;&lt;/STRONG&gt;where datedate&amp;gt;=date(today()-5, 'DD.MM.YYYY');&lt;/P&gt;
&lt;P&gt;end if&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is, it is always loading and replacing the existing table with last 5 days data such as this line and concatenating with the other data. Seems to me only this line is working:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;add&lt;/STRONG&gt; load * from &lt;STRONG&gt;sql.datasource&amp;nbsp;&lt;/STRONG&gt;where datedate&amp;gt;=date(today()-5, 'DD.MM.YYYY');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to fix this problem, I need old data plus newly available data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 10:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Partial-Reload-not-working-as-expected/m-p/2495695#M2204</guid>
      <dc:creator>profilejamesbond</dc:creator>
      <dc:date>2026-01-27T10:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Partial Reload not working as expected</title>
      <link>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Partial-Reload-not-working-as-expected/m-p/2495727#M2206</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;The issue with your Qlik script lies in how you are handling the partial reload. Specifically, the "replace" keyword in "replace load" removes the existing table_tmp each time the script runs.&lt;BR /&gt;After this, you're adding only the last 5 days data, effectively overwriting the previously loaded data.&lt;/P&gt;
&lt;P&gt;To achieve your goal loading the full table on the first of the month and only appending new data on subsequent days you need to properly manage the handling of the old data. Here's a revised script:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;// Full reload: Load the full table on the first of each month&lt;BR /&gt;If not IsPartialReload() then&lt;BR /&gt;table:&lt;BR /&gt;load * from sql.datasource;&lt;BR /&gt;end if;&lt;/P&gt;
&lt;P&gt;// Partial reload: Append data only for the last 5 days&lt;BR /&gt;If IsPartialReload() then&lt;BR /&gt;// Load existing data (to preserve old records)&lt;BR /&gt;table_tmp:&lt;BR /&gt;load * resident table;&lt;BR /&gt;&lt;BR /&gt;// Append new data for the last 5 days&lt;BR /&gt;add load * from sql.datasource where date &amp;gt;= date(today()-5, 'DD.MM.YYYY');&lt;BR /&gt;end if;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 09:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Partial-Reload-not-working-as-expected/m-p/2495727#M2206</guid>
      <dc:creator>diegozecchini</dc:creator>
      <dc:date>2024-12-03T09:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Partial Reload not working as expected</title>
      <link>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Partial-Reload-not-working-as-expected/m-p/2495758#M2208</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/82758"&gt;@diegozecchini&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Following load will not work in the section:&amp;nbsp;&lt;SPAN&gt;IsPartialReload()&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;table_tmp:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;load * resident table;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/May2024/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/PartialReload.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/May2024/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/PartialReload.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It needs something like add / replace / etc...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 10:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Partial-Reload-not-working-as-expected/m-p/2495758#M2208</guid>
      <dc:creator>profilejamesbond</dc:creator>
      <dc:date>2024-12-03T10:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Partial Reload not working as expected</title>
      <link>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Partial-Reload-not-working-as-expected/m-p/2495764#M2210</link>
      <description>&lt;P&gt;you are right, my mistake.&lt;/P&gt;
&lt;P&gt;try this:&lt;/P&gt;
&lt;P&gt;If IsPartialReload() then&lt;BR /&gt;// Preserve existing data by using ADD&lt;BR /&gt;add load * resident table;&lt;/P&gt;
&lt;P&gt;// Append new data from SQL source&lt;BR /&gt;add load * from sql.datasource where date &amp;gt;= date(today()-5, 'DD.MM.YYYY');&lt;BR /&gt;end if;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 10:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Partial-Reload-not-working-as-expected/m-p/2495764#M2210</guid>
      <dc:creator>diegozecchini</dc:creator>
      <dc:date>2024-12-03T10:36:20Z</dc:date>
    </item>
  </channel>
</rss>

