<?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 [incremental load] Cannot manage to 1. load QVX 2. properly append new data to existing QVX in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/incremental-load-Cannot-manage-to-1-load-QVX-2-properly-append/m-p/444571#M702005</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;I'm adventuring in the incremental load subject and I'm facing a couple of issues.&lt;/P&gt;&lt;P&gt;I created a qvx file where I stored my orders data and I wanted to do an incremental load with orders that were entered today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how the script looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13486683992115841" jivemacro_uid="_13486683992115841"&gt;&lt;P&gt;LOAD *,&lt;/P&gt;order as KEY;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM DB.TABLE&lt;/P&gt;&lt;P&gt;WHERE LODTE &amp;gt;= '$(vToday)';&lt;/P&gt;&lt;P&gt;Concatenate LOAD *&lt;/P&gt;&lt;P&gt;FROM \\server\drive\folder\2012.qvx (qvd)&lt;/P&gt;&lt;P&gt;WHERE NOT Exists(KEY);&lt;/P&gt;&lt;P&gt;STORE DB.TABLE INTO \\server\drive\folder\2012_increment.qvx;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the only script version that I managed to make it works.&lt;/P&gt;&lt;P&gt;Please note that I had to enter the (qvd) parameter when loading the original QVX.&lt;/P&gt;&lt;P&gt;With this script the incremental load works as expected and the resulting data also matches expectations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I write instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13486683992071311" jivemacro_uid="_13486683992071311"&gt;&lt;P&gt;Concatenate LOAD *&lt;/P&gt;&lt;P&gt;FROM \\server\drive\folder\2012.qvx&lt;/P&gt;&lt;P&gt;WHERE NOT Exists(KEY);&lt;/P&gt;&lt;P&gt;STORE DB.TABLE INTO \\server\drive\folder\2012_increment.qvx;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so excluding the (qvd) parameter, it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it seems like that qvx is not handled when making incremental loads?&lt;/P&gt;&lt;P&gt;Without the (qvd) parameter, it does not load; when I attempt to open the freshly created 2012_increment.qvx, QV recognises it as QVD in the wizard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Second issue:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot manage to integrate the current qvx with new information. I.e., if I write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13486683992023418" jivemacro_uid="_13486683992023418"&gt;&lt;P&gt;Concatenate LOAD *&lt;/P&gt;&lt;P&gt;FROM \\server\drive\folder\2012.qvx (qvd)&lt;/P&gt;&lt;P&gt;WHERE NOT Exists(KEY);&lt;/P&gt;&lt;P&gt;STORE DB.TABLE INTO \\server\drive\folder\2012.qvx (qvd);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in order to fetch data from my qvx and integrate it with the freshly retrieved data from the DB, it does not work. It fails both if I use or not the (qvd) parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed if I read the reference manual, it writes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13486683991985159" jivemacro_uid="_13486683991985159"&gt;&lt;P&gt;QV_Table:&lt;/P&gt;&lt;P&gt;SQL SELECT PrimaryKey, X, Y FROM DB_TABLE&lt;/P&gt;&lt;P&gt;WHERE ModificationTime &amp;gt;= #$(LastExecTime)#;&lt;/P&gt;&lt;P&gt;Concatenate LOAD PrimaryKey, X, Y FROM File.QVD&lt;/P&gt;&lt;P&gt;WHERE NOT Exists(PrimaryKey);&lt;/P&gt;&lt;P&gt;STORE QV_Table INTO File.QVD;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using QV 10 if it is of any help.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2012 14:06:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-26T14:06:20Z</dc:date>
    <item>
      <title>[incremental load] Cannot manage to 1. load QVX 2. properly append new data to existing QVX</title>
      <link>https://community.qlik.com/t5/QlikView/incremental-load-Cannot-manage-to-1-load-QVX-2-properly-append/m-p/444571#M702005</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;I'm adventuring in the incremental load subject and I'm facing a couple of issues.&lt;/P&gt;&lt;P&gt;I created a qvx file where I stored my orders data and I wanted to do an incremental load with orders that were entered today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how the script looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13486683992115841" jivemacro_uid="_13486683992115841"&gt;&lt;P&gt;LOAD *,&lt;/P&gt;order as KEY;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM DB.TABLE&lt;/P&gt;&lt;P&gt;WHERE LODTE &amp;gt;= '$(vToday)';&lt;/P&gt;&lt;P&gt;Concatenate LOAD *&lt;/P&gt;&lt;P&gt;FROM \\server\drive\folder\2012.qvx (qvd)&lt;/P&gt;&lt;P&gt;WHERE NOT Exists(KEY);&lt;/P&gt;&lt;P&gt;STORE DB.TABLE INTO \\server\drive\folder\2012_increment.qvx;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the only script version that I managed to make it works.&lt;/P&gt;&lt;P&gt;Please note that I had to enter the (qvd) parameter when loading the original QVX.&lt;/P&gt;&lt;P&gt;With this script the incremental load works as expected and the resulting data also matches expectations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I write instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13486683992071311" jivemacro_uid="_13486683992071311"&gt;&lt;P&gt;Concatenate LOAD *&lt;/P&gt;&lt;P&gt;FROM \\server\drive\folder\2012.qvx&lt;/P&gt;&lt;P&gt;WHERE NOT Exists(KEY);&lt;/P&gt;&lt;P&gt;STORE DB.TABLE INTO \\server\drive\folder\2012_increment.qvx;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so excluding the (qvd) parameter, it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it seems like that qvx is not handled when making incremental loads?&lt;/P&gt;&lt;P&gt;Without the (qvd) parameter, it does not load; when I attempt to open the freshly created 2012_increment.qvx, QV recognises it as QVD in the wizard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Second issue:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot manage to integrate the current qvx with new information. I.e., if I write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13486683992023418" jivemacro_uid="_13486683992023418"&gt;&lt;P&gt;Concatenate LOAD *&lt;/P&gt;&lt;P&gt;FROM \\server\drive\folder\2012.qvx (qvd)&lt;/P&gt;&lt;P&gt;WHERE NOT Exists(KEY);&lt;/P&gt;&lt;P&gt;STORE DB.TABLE INTO \\server\drive\folder\2012.qvx (qvd);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in order to fetch data from my qvx and integrate it with the freshly retrieved data from the DB, it does not work. It fails both if I use or not the (qvd) parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed if I read the reference manual, it writes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13486683991985159" jivemacro_uid="_13486683991985159"&gt;&lt;P&gt;QV_Table:&lt;/P&gt;&lt;P&gt;SQL SELECT PrimaryKey, X, Y FROM DB_TABLE&lt;/P&gt;&lt;P&gt;WHERE ModificationTime &amp;gt;= #$(LastExecTime)#;&lt;/P&gt;&lt;P&gt;Concatenate LOAD PrimaryKey, X, Y FROM File.QVD&lt;/P&gt;&lt;P&gt;WHERE NOT Exists(PrimaryKey);&lt;/P&gt;&lt;P&gt;STORE QV_Table INTO File.QVD;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using QV 10 if it is of any help.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 14:06:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/incremental-load-Cannot-manage-to-1-load-QVX-2-properly-append/m-p/444571#M702005</guid>
      <dc:creator />
      <dc:date>2012-09-26T14:06:20Z</dc:date>
    </item>
  </channel>
</rss>

