<?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: error code -129 while loading script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/error-code-129-while-loading-script/m-p/1795245#M62336</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp;yes of course. I should say that this happens in a try of doing incremental load (insert, update and delete), that my source table doesn't have a timefield on its own but as long as it always exists with another qvd in the app it takes it from it in the where clause part as you will see, BUT&amp;nbsp; please note that the error code doesn't&amp;nbsp; happen if i load part of the data. Please take a look.&lt;/P&gt;&lt;P&gt;incremental_load:&lt;/P&gt;&lt;P&gt;Load id as Alias, state&amp;nbsp;&lt;/P&gt;&lt;P&gt;sql select&amp;nbsp; a.id, a.state,a.id2,b.updated from sourcetable1 a&lt;/P&gt;&lt;P&gt;inner join sourcetable2&amp;nbsp; b on a.id2=b.id where b.updated&amp;gt;='$(Last_Update)';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Concatenate&lt;BR /&gt;Load * from [$(vPathQVD)/Initial.qvd] (qvd)&lt;BR /&gt;WHERE NOT Exists(id);&lt;/P&gt;&lt;P&gt;Inner Join&lt;/P&gt;&lt;P&gt;SQLselect&amp;nbsp; a.id, a.state,a.id2,b.updated from sourcetable1 a&lt;/P&gt;&lt;P&gt;inner join sourcetable2&amp;nbsp; b on a.id2=b.id;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;EDIT: This error occurs also when i add this part after &lt;STRONG&gt;concatenate&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;inner join&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQLselect&amp;nbsp; a.id&amp;nbsp; from sourcetable1 a&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;inner join sourcetable2&amp;nbsp; b on a.id2=b.id;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Mar 2021 13:24:37 GMT</pubDate>
    <dc:creator>ioannagr</dc:creator>
    <dc:date>2021-03-29T13:24:37Z</dc:date>
    <item>
      <title>error code -129 while loading script</title>
      <link>https://community.qlik.com/t5/App-Development/error-code-129-while-loading-script/m-p/1794763#M62276</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I've been getting this error code since the morning,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="2021-03-26_13-15-41.png" style="width: 759px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51879iC428CAB5800B028C/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-03-26_13-15-41.png" alt="2021-03-26_13-15-41.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What is it? Should i restart the server?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 11:18:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/error-code-129-while-loading-script/m-p/1794763#M62276</guid>
      <dc:creator>ioannagr</dc:creator>
      <dc:date>2021-03-26T11:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: error code -129 while loading script</title>
      <link>https://community.qlik.com/t5/App-Development/error-code-129-while-loading-script/m-p/1795012#M62310</link>
      <description>&lt;P&gt;H, it will be better if you post the part of the scrit giving that error, maybe you have a variable that hasn't been initialized or is not calcualted the way you want.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 08:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/error-code-129-while-loading-script/m-p/1795012#M62310</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-03-27T08:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: error code -129 while loading script</title>
      <link>https://community.qlik.com/t5/App-Development/error-code-129-while-loading-script/m-p/1795245#M62336</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp;yes of course. I should say that this happens in a try of doing incremental load (insert, update and delete), that my source table doesn't have a timefield on its own but as long as it always exists with another qvd in the app it takes it from it in the where clause part as you will see, BUT&amp;nbsp; please note that the error code doesn't&amp;nbsp; happen if i load part of the data. Please take a look.&lt;/P&gt;&lt;P&gt;incremental_load:&lt;/P&gt;&lt;P&gt;Load id as Alias, state&amp;nbsp;&lt;/P&gt;&lt;P&gt;sql select&amp;nbsp; a.id, a.state,a.id2,b.updated from sourcetable1 a&lt;/P&gt;&lt;P&gt;inner join sourcetable2&amp;nbsp; b on a.id2=b.id where b.updated&amp;gt;='$(Last_Update)';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Concatenate&lt;BR /&gt;Load * from [$(vPathQVD)/Initial.qvd] (qvd)&lt;BR /&gt;WHERE NOT Exists(id);&lt;/P&gt;&lt;P&gt;Inner Join&lt;/P&gt;&lt;P&gt;SQLselect&amp;nbsp; a.id, a.state,a.id2,b.updated from sourcetable1 a&lt;/P&gt;&lt;P&gt;inner join sourcetable2&amp;nbsp; b on a.id2=b.id;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;EDIT: This error occurs also when i add this part after &lt;STRONG&gt;concatenate&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;inner join&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQLselect&amp;nbsp; a.id&amp;nbsp; from sourcetable1 a&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;inner join sourcetable2&amp;nbsp; b on a.id2=b.id;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 13:24:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/error-code-129-while-loading-script/m-p/1795245#M62336</guid>
      <dc:creator>ioannagr</dc:creator>
      <dc:date>2021-03-29T13:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: error code -129 while loading script</title>
      <link>https://community.qlik.com/t5/App-Development/error-code-129-while-loading-script/m-p/1795295#M62348</link>
      <description>&lt;P&gt;What i did to solve this was to&amp;nbsp; add to the last inner join part:&lt;/P&gt;&lt;P&gt;inner join&lt;/P&gt;&lt;P&gt;SQL select&amp;nbsp; &lt;STRONG&gt;a.id as Alias&lt;/STRONG&gt; from sourcetable1 a&lt;/P&gt;&lt;P&gt;inner join sourcetable2&amp;nbsp; b on a.id2=b.id;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it seemed to do the work for a reason.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 13:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/error-code-129-while-loading-script/m-p/1795295#M62348</guid>
      <dc:creator>ioannagr</dc:creator>
      <dc:date>2021-03-29T13:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: error code -129 while loading script</title>
      <link>https://community.qlik.com/t5/App-Development/error-code-129-while-loading-script/m-p/1795383#M62360</link>
      <description>&lt;P&gt;Hi maybe it was beacuse it was creating duplicates and the result table grows too much.&lt;/P&gt;&lt;P&gt;Note that you also have a sentence like "&lt;SPAN&gt;WHERE NOT Exists(id)&lt;/SPAN&gt;" and this id field isn't loaded, it is loaded as 'Alias', so probably all records from the qvd are loaded each time the script is executed.&lt;/P&gt;&lt;P&gt;Also I would reccomend to use a LOAD sentence before SQL, and use this LOAD to rename fields.&lt;/P&gt;&lt;P&gt;So at the end, the script to work may be something like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;incremental_load:
Load id as Alias, state;
sql select  a.id, a.state,a.id2,b.updated from sourcetable1 a
inner join sourcetable2  b on a.id2=b.id where b.updated&amp;gt;='$(Last_Update)';

Concatenate
Load * from [$(vPathQVD)/Initial.qvd] (qvd)
WHERE NOT Exists(Alias);

Inner Join
Load id as Alias, state;
SQLselect  a.id, a.state,a.id2,b.updated from sourcetable1 a
inner join sourcetable2  b on a.id2=b.id;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Another thing is that the last sql sentence loads the same fields than the first one, but without filtering by date. So there is no use for incremetnal load if at the end you need to do a select that retrieves all records. Just retrieve all records on the first sentence.&lt;/P&gt;&lt;P&gt;It only has a use if the first SQL retrieves many other fields that the last one.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 16:28:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/error-code-129-while-loading-script/m-p/1795383#M62360</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-03-29T16:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: error code -129 while loading script</title>
      <link>https://community.qlik.com/t5/App-Development/error-code-129-while-loading-script/m-p/1795388#M62362</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp;, i don't undestand what you say (&lt;SPAN&gt;&amp;nbsp;"Another thing is that the last sql sentence loads the same fields than the first one, but without filtering by date. So there is no use for incremetnal load if at the end you need to do a select that retrieves all records. Just retrieve all records on the first sentence".)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;because i see you didn't correct anything on my last sql code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 16:47:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/error-code-129-while-loading-script/m-p/1795388#M62362</guid>
      <dc:creator>ioannagr</dc:creator>
      <dc:date>2021-03-29T16:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: error code -129 while loading script</title>
      <link>https://community.qlik.com/t5/App-Development/error-code-129-while-loading-script/m-p/1795867#M62404</link>
      <description>&lt;P&gt;Hi, that last join is usually used to control deleted rows, to remove them also from qvd.&lt;/P&gt;&lt;P&gt;And this las sentence will load all the unique keys, if you are using id and state I think that is beacuse there are id's that can be repeated by state so you need to load both to create the unique key, and in this case, if you only need these two fields as data, there is no advantage of using incremental load because you always need to load all these values.&lt;/P&gt;&lt;P&gt;In the corrected anwser you only use 'id', if this field alone is the unique key at least in the last sentece you can avoid the use of 'state' and other fields, gibving you that advantage: as in this case you don't need to load all fields in every load, just the id.&lt;/P&gt;&lt;P&gt;Also note that I did a change, and it was in the Exists() function, using 'Alias' (the name as the field is loaded) instead of 'id'.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 06:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/error-code-129-while-loading-script/m-p/1795867#M62404</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-03-31T06:45:52Z</dc:date>
    </item>
  </channel>
</rss>

