<?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: REPLACE/ADD LOAD returns script errors before loading in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Partial-Reload-REPLACE-ADD-LOAD-returns-script-errors-before/m-p/425195#M158377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I've also made a video tutorial on how to use Partial Reload. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;A href="http://qlikshare.com/370"&gt;http://qlikshare.com/370&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Happy learning!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2012 13:05:50 GMT</pubDate>
    <dc:creator>IAMDV</dc:creator>
    <dc:date>2012-12-11T13:05:50Z</dc:date>
    <item>
      <title>Partial Reload: REPLACE/ADD LOAD returns script errors before loading</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-Reload-REPLACE-ADD-LOAD-returns-script-errors-before/m-p/425191#M158373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I insert a ADD (Replace) load (I tried both ways, same outcome) at the end of my big script, in a separate tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I press "partial reload", I get some warnings of Script Errors.&lt;/P&gt;&lt;P&gt;Namely:&lt;/P&gt;&lt;P&gt;Field not found in the DROP FIELD statement (3 times)&lt;/P&gt;&lt;P&gt;Table not found in a LEFT JOIN (1 time).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this, the lines of the "additional table" are loaded perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like that the command partial reload reads through commands like JOIN and DROP FIELD, instead of skipping them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a problem for me, as I want to schedule the partial reload and it means "someone" needs to click on "OK" in order for these errors to be skipped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why am I gettign these erros, any idea?&lt;/P&gt;&lt;P&gt;How can I solve this? This is the last challenge I need to overcome before handing in my final Beta!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 11:45:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-Reload-REPLACE-ADD-LOAD-returns-script-errors-before/m-p/425191#M158373</guid>
      <dc:creator />
      <dc:date>2012-12-11T11:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Partial Reload: REPLACE/ADD LOAD returns script errors before loading</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-Reload-REPLACE-ADD-LOAD-returns-script-errors-before/m-p/425192#M158374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executing a partial script reload, all lines are executed except for LOAD and SELECT not preceded by ADD o REPLACE. So the DROP error is likely happening because there is no actual table/field to drop, probably because it is referring to a previous LOAD that has not happened, because of the partial reload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And similar to the JOIN, that tries to JOIN to a table that has not been loaded, therefore the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd recommend you to wrap the code you want to run only in normal reloads using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF IsPartialReload() = 0 THEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 11:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-Reload-REPLACE-ADD-LOAD-returns-script-errors-before/m-p/425192#M158374</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-12-11T11:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Partial Reload: REPLACE/ADD LOAD returns script errors before loading</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-Reload-REPLACE-ADD-LOAD-returns-script-errors-before/m-p/425193#M158375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt; When executing a partial script reload, all lines are executed except for LOAD and SELECT not preceded by ADD o REPLACE.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was naive, and thinking that a Partial Reload is executing just lines preceded by ADD LOAD or REPLACE LOAD! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;Good to know this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;So the DROP error is likely happening because there is no actual table/field to drop, probably because it is referring to a previous LOAD that has not happened, because of the partial reload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And similar to the JOIN, that tries to JOIN to a table that has not been loaded, therefore the error.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is definitely happening because of this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;I'd recommend you to wrap the code you want to run only in normal reloads using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF IsPartialReload() = 0 THEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understood you correctly, I can write the IF statement at the &lt;SPAN style="text-decoration: underline;"&gt;very beginning&lt;/SPAN&gt; of my &lt;SPAN style="text-decoration: underline;"&gt;whole&lt;/SPAN&gt; script, and then, after the last line (but before the partial reload) I can write the END IF statement.&lt;/P&gt;&lt;P&gt;And not writing the two statements before/after the DROP FIELD or JOIN, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will let you know the, hopefully positive, outcome!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this IF causing additional resources need / processing time, or is it completely harmless?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 12:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-Reload-REPLACE-ADD-LOAD-returns-script-errors-before/m-p/425193#M158375</guid>
      <dc:creator />
      <dc:date>2012-12-11T12:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Partial Reload: REPLACE/ADD LOAD returns script errors before loading</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-Reload-REPLACE-ADD-LOAD-returns-script-errors-before/m-p/425194#M158376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you are correct: you can place the IF ... THEN say in the first tab on the left, then place the END IF in the last tab on the right, just before the ADD/REPLACE loads, so when you do a partial reload, only the ADD/REPLACE loads take place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that, despite the tabs, the script is always run from the first line on the tab most on the left to the last line on the tab most to the right, it is actually just a visual aid, rather than an actual division. If you Debug the script instead of running it, you will see how each line runs after the other, irrespective the tabs they are on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way to make some tabs (pieces of code) be loaded or not is using this IF THEN END IF conditionals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This IF will actually save you script running time, as it is avoiding the execution of lines of script that, otherwise, should be run and causing errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: It's worth noting that ADD and REPLACE loads are executed in both normal and partial reloads, unless you use the ONLY qualifier, to make the ADD or REPLACE take place only if a partial reload has been executed. So&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customers:&lt;/P&gt;&lt;P&gt;REPLACE LOAD *&lt;/P&gt;&lt;P&gt;FROM Customers.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will work always, removing the table Customers and replacing it by the records in the QVD file, whilst&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customers:&lt;/P&gt;&lt;P&gt;REPLACE &lt;STRONG&gt;ONLY &lt;/STRONG&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM Customers.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will only be loaded if the execution was partial, but not when the reload is normal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes the thing easier to understand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 12:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-Reload-REPLACE-ADD-LOAD-returns-script-errors-before/m-p/425194#M158376</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-12-11T12:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Partial Reload: REPLACE/ADD LOAD returns script errors before loading</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-Reload-REPLACE-ADD-LOAD-returns-script-errors-before/m-p/425195#M158377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I've also made a video tutorial on how to use Partial Reload. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;A href="http://qlikshare.com/370"&gt;http://qlikshare.com/370&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Happy learning!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 13:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-Reload-REPLACE-ADD-LOAD-returns-script-errors-before/m-p/425195#M158377</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-12-11T13:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Partial Reload: REPLACE/ADD LOAD returns script errors before loading</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-Reload-REPLACE-ADD-LOAD-returns-script-errors-before/m-p/425196#M158378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt; P.S.: It's worth noting that ADD and REPLACE loads are executed in both normal and partial reloads, unless you use the ONLY qualifier, to make the ADD or REPLACE take place only if a partial reload has been executed. So&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customers:&lt;/P&gt;&lt;P&gt;REPLACE LOAD *&lt;/P&gt;&lt;P&gt;FROM Customers.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will work always, removing the table Customers and replacing it by the records in the QVD file, whilst&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customers:&lt;/P&gt;&lt;P&gt;REPLACE &lt;STRONG&gt;ONLY &lt;/STRONG&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM Customers.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will only be loaded if the execution was partial, but not when the reload is normal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes the thing easier to understand.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much for your help, it is working perfectly.&lt;/P&gt;&lt;P&gt;Indeed this last remark of your is very valuable, thank you really very much! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 13:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-Reload-REPLACE-ADD-LOAD-returns-script-errors-before/m-p/425196#M158378</guid>
      <dc:creator />
      <dc:date>2012-12-13T13:46:44Z</dc:date>
    </item>
  </channel>
</rss>

