<?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: Script stopping for no apparent reason in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-stopping-for-no-apparent-reason/m-p/1603803#M596062</link>
    <description>&lt;P&gt;Sorry for taking this long to get back..&lt;/P&gt;&lt;P&gt;So, I ran some more tests and just cannot explain whats going on. Some more additional info:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Full script have around 250k lines (i'm calling it from a .qvs);&lt;/LI&gt;&lt;LI&gt;It stops just short of 10k lines (2.5h);&lt;/LI&gt;&lt;LI&gt;Every line is pretty much the same, changing only the variables it uses. Every line also call other .qvs which does all I need (load the relevant data, do a couple joins, some calculation, generate the results and store it in a .qvd) and ALL tables are dropped! The process then restarts.&lt;/LI&gt;&lt;LI&gt;When running it in debug mode, the process gets VERY slower. The 2.5h become more than 2 days of execution (actually it is running since tuesday night and still haven't reached the point where it stops (~10k line)). What a can certanly say is that the scripts is visibly getting slower and slower.&lt;/LI&gt;&lt;LI&gt;When running just a few (like 1000) lines, it all works fine; also, if I start the execution on line 5k (for example) it stops around 15k so the problem is not with a particular line or data..&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I don't believe it to be any internal memory bottleneck anymore, since i'm basically starting from scratch every line (I start from a blank page, load all i need, do all i need, store all i need and DROP EVERYTHING before going to next line).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to security issues I'm not able to share the full code with you guys, but i can provide a sample:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SET vVariable1 = Something; SET vVariable2 = Something; SET vVariable3 = Something; ($Include=Script1.qvs);
SET vVariable1 = SomethingElse; SET vVariable2 = SomethingElse; SET vVariable3 = SomethingElse; ($Include=Script1.qvs);
SET vVariable1 = SomethingElse; SET vVariable2 = SomethingElse; SET vVariable3 = SomethingElse; ($Include=Script1.qvs);
SET vVariable1 = SomethingElse; SET vVariable2 = SomethingElse; SET vVariable3 = SomethingElse; ($Include=Script1.qvs);
...
and so on​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Script1.qvs:&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table1: LOAD * FROM [SOURCE1.QVD];
Table2: LOAD * FROM [SOURCE2.QVD];

Inner Join (Table1) LOAD SomeField Resident Table2 Where Something = Something;
Drop Table Table2;

Results: Load SomeOtherField, SomeCalculations as Calculations Resident Table1 where SomethingElse = SomethingElse;
Drop Table Table1;

Store Results into Results_xxx.qvd (qvd);
Drop Table Results;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;If anyone have any idea of what might be happening... It fells like qlik is just giving up midscript.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank again!&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2019 15:49:22 GMT</pubDate>
    <dc:creator>GLicks_DG</dc:creator>
    <dc:date>2019-07-18T15:49:22Z</dc:date>
    <item>
      <title>Script stopping for no apparent reason</title>
      <link>https://community.qlik.com/t5/QlikView/Script-stopping-for-no-apparent-reason/m-p/1601923#M596060</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;Is there any reason for qlik suddently stopping execution? I mean there is no error, the execution just stops as if the script was over. The script itself is doing the same things over and over again just varying the data it loads. All the results are 'saved' in a table which is later (at the actual end of script) in qvd file.&lt;/P&gt;&lt;P&gt;Im still running more tests, but the script stops after almost 3h of execution, so tests are slow...&lt;/P&gt;&lt;P&gt;My guess would be that i'm hitting some internal memory bottleneck or something like that. Is there anywhere i can read more about this possible bottlenecks?&lt;/P&gt;&lt;P&gt;Have anyone had this type of issue and managed to work it out??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 17:34:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-stopping-for-no-apparent-reason/m-p/1601923#M596060</guid>
      <dc:creator>GLicks_DG</dc:creator>
      <dc:date>2019-07-12T17:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script stopping for no apparent reason</title>
      <link>https://community.qlik.com/t5/QlikView/Script-stopping-for-no-apparent-reason/m-p/1601947#M596061</link>
      <description>&lt;P&gt;Hi how are you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pherphaps in some part of the script you run out of memory because the model and the relation that you are creating.&lt;/P&gt;&lt;P&gt;Do you test in the debug mode with some register(for example 100)? to test&amp;nbsp; the model and if you have any syntetic ?&lt;/P&gt;&lt;P&gt;Other test could be start to create "exit script" in the part in your model that you consider could be a problem&lt;/P&gt;&lt;P&gt;I would start with the debug mode to be sure that the model with low data is OK.&lt;/P&gt;&lt;P&gt;Hope helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 19:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-stopping-for-no-apparent-reason/m-p/1601947#M596061</guid>
      <dc:creator>fkeuroglian</dc:creator>
      <dc:date>2019-07-12T19:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Script stopping for no apparent reason</title>
      <link>https://community.qlik.com/t5/QlikView/Script-stopping-for-no-apparent-reason/m-p/1603803#M596062</link>
      <description>&lt;P&gt;Sorry for taking this long to get back..&lt;/P&gt;&lt;P&gt;So, I ran some more tests and just cannot explain whats going on. Some more additional info:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Full script have around 250k lines (i'm calling it from a .qvs);&lt;/LI&gt;&lt;LI&gt;It stops just short of 10k lines (2.5h);&lt;/LI&gt;&lt;LI&gt;Every line is pretty much the same, changing only the variables it uses. Every line also call other .qvs which does all I need (load the relevant data, do a couple joins, some calculation, generate the results and store it in a .qvd) and ALL tables are dropped! The process then restarts.&lt;/LI&gt;&lt;LI&gt;When running it in debug mode, the process gets VERY slower. The 2.5h become more than 2 days of execution (actually it is running since tuesday night and still haven't reached the point where it stops (~10k line)). What a can certanly say is that the scripts is visibly getting slower and slower.&lt;/LI&gt;&lt;LI&gt;When running just a few (like 1000) lines, it all works fine; also, if I start the execution on line 5k (for example) it stops around 15k so the problem is not with a particular line or data..&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I don't believe it to be any internal memory bottleneck anymore, since i'm basically starting from scratch every line (I start from a blank page, load all i need, do all i need, store all i need and DROP EVERYTHING before going to next line).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to security issues I'm not able to share the full code with you guys, but i can provide a sample:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SET vVariable1 = Something; SET vVariable2 = Something; SET vVariable3 = Something; ($Include=Script1.qvs);
SET vVariable1 = SomethingElse; SET vVariable2 = SomethingElse; SET vVariable3 = SomethingElse; ($Include=Script1.qvs);
SET vVariable1 = SomethingElse; SET vVariable2 = SomethingElse; SET vVariable3 = SomethingElse; ($Include=Script1.qvs);
SET vVariable1 = SomethingElse; SET vVariable2 = SomethingElse; SET vVariable3 = SomethingElse; ($Include=Script1.qvs);
...
and so on​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Script1.qvs:&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table1: LOAD * FROM [SOURCE1.QVD];
Table2: LOAD * FROM [SOURCE2.QVD];

Inner Join (Table1) LOAD SomeField Resident Table2 Where Something = Something;
Drop Table Table2;

Results: Load SomeOtherField, SomeCalculations as Calculations Resident Table1 where SomethingElse = SomethingElse;
Drop Table Table1;

Store Results into Results_xxx.qvd (qvd);
Drop Table Results;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;If anyone have any idea of what might be happening... It fells like qlik is just giving up midscript.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank again!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 15:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-stopping-for-no-apparent-reason/m-p/1603803#M596062</guid>
      <dc:creator>GLicks_DG</dc:creator>
      <dc:date>2019-07-18T15:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Script stopping for no apparent reason</title>
      <link>https://community.qlik.com/t5/QlikView/Script-stopping-for-no-apparent-reason/m-p/1603812#M596063</link>
      <description>&lt;P&gt;One more quick info: The log file generated only says "script finished"..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 357px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/15679i4710BB3EEE0004AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 15:59:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-stopping-for-no-apparent-reason/m-p/1603812#M596063</guid>
      <dc:creator>GLicks_DG</dc:creator>
      <dc:date>2019-07-18T15:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Script stopping for no apparent reason</title>
      <link>https://community.qlik.com/t5/QlikView/Script-stopping-for-no-apparent-reason/m-p/1604276#M596064</link>
      <description>&lt;P&gt;Hi how are you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you said:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;When running just a few (like 1000) lines, it all works fine; also, if I start the execution on line 5k (for example) it stops around 15k so the problem is not with a particular line or data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If this happend, it sound like something in your model (that you are creating) it is not OK, and qlik model braek out! and not finish to create the model&lt;/P&gt;&lt;P&gt;I will be start part to part(divide and conquer) and start just put some EXIT SCRIPT in every join that you have.&lt;/P&gt;&lt;P&gt;In yours example you put some joins, but that is very important because if have more than one field named equal could be a problem(if you have a lot fields equals between tables, you have to create a combinate key and this is the relation)&lt;/P&gt;&lt;P&gt;Why you load the two table(table 1 and table2) and then&amp;nbsp; you join using a resident to the table 2, why you do not join at fist and not have to do this resident table&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 20:07:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-stopping-for-no-apparent-reason/m-p/1604276#M596064</guid>
      <dc:creator>fkeuroglian</dc:creator>
      <dc:date>2019-07-19T20:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Script stopping for no apparent reason</title>
      <link>https://community.qlik.com/t5/QlikView/Script-stopping-for-no-apparent-reason/m-p/1605232#M596065</link>
      <description>&lt;P&gt;Fernando, thanks a lot for the help..&lt;/P&gt;&lt;P&gt;At last I ended up using the 'divide and conquer' strategy and changed the logic (used a few loops) and it finally worked.. Still I don't know exactly what happened, but surely was something in my model.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 14:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-stopping-for-no-apparent-reason/m-p/1605232#M596065</guid>
      <dc:creator>GLicks_DG</dc:creator>
      <dc:date>2019-07-23T14:25:48Z</dc:date>
    </item>
  </channel>
</rss>

