<?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 Lost qv table field with reload in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Lost-qv-table-field-with-reload/m-p/237778#M712258</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello, i have a problem with the incremental reload , the error is&lt;/P&gt;&lt;P&gt;Field &amp;lt;HORA&amp;gt; isnt found.&lt;/P&gt;&lt;P&gt;Below the code......Help please i made many tests and nothing work.&lt;/P&gt;&lt;P&gt;My clue its arround the some drop table or change the name but......&lt;/P&gt;&lt;P&gt;Anyone?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Trace 'Loading variables from file and QVD';&lt;BR /&gt;Directory;&lt;BR /&gt;LET QVDFILE='tb_qv';&lt;BR /&gt;SET datatable='tb_qv';&lt;BR /&gt;LET Listqvdexists=isnull(FileSize('$(QvdPath)\$(QVDFILE)'));///if qvd exists then 0 else -1&lt;BR /&gt;LET QvdPath='X:';&lt;BR /&gt;LET QvdFieldName=QvdFieldName('$(QvdPath)\$(QVDFILE)',1);&lt;BR /&gt;&lt;BR /&gt;if $(Listqvdexists)&amp;lt;0 then //if qvd file doesn't exist then make a full load&lt;BR /&gt; Trace 'Se cargan Datos a tabla virtual='$(datatable);&lt;BR /&gt; Trace 'No existe Qvd'$(QvdPath)\$(QVDFILE);&lt;BR /&gt; $(datatable):&lt;BR /&gt; SQL Select&lt;BR /&gt; HOUR(current timestamp+1 hour) as Hora&lt;BR /&gt; ,count(NUMBER_ID) as Q&lt;BR /&gt; from DB_table;&lt;BR /&gt;&lt;BR /&gt; STORE $(datatable) INTO $(QvdPath)\$(QVDFILE);&lt;BR /&gt;&lt;BR /&gt;Else //if qvd Exists then make a full load.&lt;BR /&gt; Trace 'Exists Qvd doing incremental';&lt;BR /&gt; Trace 'Exists field?';&lt;BR /&gt; tb_qv:&lt;BR /&gt; SQL Select&lt;BR /&gt; HOUR(current timestamp+1 hour) as Hora&lt;BR /&gt; ,count(NUMBER_ID) as Q&lt;BR /&gt; from DB_table;&lt;BR /&gt; Concatenate&lt;BR /&gt; LOAD Hora,Q FROM $(QvdPath)\$(QVDFILE) (qvd)&lt;BR /&gt; WHERE NOT EXISTS ('$(QvdFieldName)');&lt;BR /&gt; STORE $(datatable) INTO $(QvdPath)\$(QVDFILE);&lt;BR /&gt;//Msj for load&lt;BR /&gt;Trace 'Termina Incremental';&lt;BR /&gt;end if&lt;BR /&gt;exit script;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 May 2011 15:29:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-02T15:29:27Z</dc:date>
    <item>
      <title>Lost qv table field with reload</title>
      <link>https://community.qlik.com/t5/QlikView/Lost-qv-table-field-with-reload/m-p/237778#M712258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello, i have a problem with the incremental reload , the error is&lt;/P&gt;&lt;P&gt;Field &amp;lt;HORA&amp;gt; isnt found.&lt;/P&gt;&lt;P&gt;Below the code......Help please i made many tests and nothing work.&lt;/P&gt;&lt;P&gt;My clue its arround the some drop table or change the name but......&lt;/P&gt;&lt;P&gt;Anyone?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Trace 'Loading variables from file and QVD';&lt;BR /&gt;Directory;&lt;BR /&gt;LET QVDFILE='tb_qv';&lt;BR /&gt;SET datatable='tb_qv';&lt;BR /&gt;LET Listqvdexists=isnull(FileSize('$(QvdPath)\$(QVDFILE)'));///if qvd exists then 0 else -1&lt;BR /&gt;LET QvdPath='X:';&lt;BR /&gt;LET QvdFieldName=QvdFieldName('$(QvdPath)\$(QVDFILE)',1);&lt;BR /&gt;&lt;BR /&gt;if $(Listqvdexists)&amp;lt;0 then //if qvd file doesn't exist then make a full load&lt;BR /&gt; Trace 'Se cargan Datos a tabla virtual='$(datatable);&lt;BR /&gt; Trace 'No existe Qvd'$(QvdPath)\$(QVDFILE);&lt;BR /&gt; $(datatable):&lt;BR /&gt; SQL Select&lt;BR /&gt; HOUR(current timestamp+1 hour) as Hora&lt;BR /&gt; ,count(NUMBER_ID) as Q&lt;BR /&gt; from DB_table;&lt;BR /&gt;&lt;BR /&gt; STORE $(datatable) INTO $(QvdPath)\$(QVDFILE);&lt;BR /&gt;&lt;BR /&gt;Else //if qvd Exists then make a full load.&lt;BR /&gt; Trace 'Exists Qvd doing incremental';&lt;BR /&gt; Trace 'Exists field?';&lt;BR /&gt; tb_qv:&lt;BR /&gt; SQL Select&lt;BR /&gt; HOUR(current timestamp+1 hour) as Hora&lt;BR /&gt; ,count(NUMBER_ID) as Q&lt;BR /&gt; from DB_table;&lt;BR /&gt; Concatenate&lt;BR /&gt; LOAD Hora,Q FROM $(QvdPath)\$(QVDFILE) (qvd)&lt;BR /&gt; WHERE NOT EXISTS ('$(QvdFieldName)');&lt;BR /&gt; STORE $(datatable) INTO $(QvdPath)\$(QVDFILE);&lt;BR /&gt;//Msj for load&lt;BR /&gt;Trace 'Termina Incremental';&lt;BR /&gt;end if&lt;BR /&gt;exit script;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 15:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lost-qv-table-field-with-reload/m-p/237778#M712258</guid>
      <dc:creator />
      <dc:date>2011-05-02T15:29:27Z</dc:date>
    </item>
    <item>
      <title>Lost qv table field with reload</title>
      <link>https://community.qlik.com/t5/QlikView/Lost-qv-table-field-with-reload/m-p/237779#M712259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error:&lt;/P&gt;&lt;P&gt;Campo no encontrado - &amp;lt;Hora&amp;gt;&lt;/P&gt;&lt;P&gt;(Field not found)&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD Hora,Q FROM X:tb_qv.qvd (qvd)&lt;/P&gt;&lt;P&gt;WHERE NOT EXISTS ('HORA')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 15:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lost-qv-table-field-with-reload/m-p/237779#M712259</guid>
      <dc:creator />
      <dc:date>2011-05-02T15:36:58Z</dc:date>
    </item>
    <item>
      <title>Lost qv table field with reload</title>
      <link>https://community.qlik.com/t5/QlikView/Lost-qv-table-field-with-reload/m-p/237780#M712260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem seems to be the "full load" case, because you use an EXISTS clause witch uses a field that were not loaded before, since your IF detected that there was no QVD before.&lt;/P&gt;&lt;P&gt;Besides that, you use concatenate load that might return another error since there is no table loaded before this one.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 15:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lost-qv-table-field-with-reload/m-p/237780#M712260</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2011-05-02T15:38:19Z</dc:date>
    </item>
    <item>
      <title>Lost qv table field with reload</title>
      <link>https://community.qlik.com/t5/QlikView/Lost-qv-table-field-with-reload/m-p/237781#M712261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Full load dont present any problem if i try alone, i saw the xml generated and its OK, and the table in the "model" appears with the field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 15:44:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lost-qv-table-field-with-reload/m-p/237781#M712261</guid>
      <dc:creator />
      <dc:date>2011-05-02T15:44:38Z</dc:date>
    </item>
    <item>
      <title>Lost qv table field with reload</title>
      <link>https://community.qlik.com/t5/QlikView/Lost-qv-table-field-with-reload/m-p/237782#M712262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the problem is in the line"WHERE NOT EXISTS ('$(QvdFieldName)');"&lt;/P&gt;&lt;P&gt;Try without it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 15:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lost-qv-table-field-with-reload/m-p/237782#M712262</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2011-05-02T15:52:38Z</dc:date>
    </item>
    <item>
      <title>Lost qv table field with reload</title>
      <link>https://community.qlik.com/t5/QlikView/Lost-qv-table-field-with-reload/m-p/237783#M712263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Fernando D. T. wrote:&lt;BR /&gt;I think the problem is in the line"WHERE NOT EXISTS ('$(QvdFieldName)');"&lt;BR /&gt;Try without it. &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;I try it but and failed....but for the record i lose the incremental condition for loading QV table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;......and Thnks for your help and quick answers Mr. Fernando&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 15:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lost-qv-table-field-with-reload/m-p/237783#M712263</guid>
      <dc:creator />
      <dc:date>2011-05-02T15:59:02Z</dc:date>
    </item>
    <item>
      <title>Lost qv table field with reload</title>
      <link>https://community.qlik.com/t5/QlikView/Lost-qv-table-field-with-reload/m-p/237784#M712264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I got it.&lt;/P&gt;&lt;P&gt;See the example atached. Looks like de address "$(QvdPath)\$(QVDFILE)" is wrong because the "\" is already there when the variable is defined.&lt;/P&gt;&lt;P&gt;Changing it to "$(QvdPath)$(QVDFILE)" solves the problem. See my example.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 18:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lost-qv-table-field-with-reload/m-p/237784#M712264</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2011-05-02T18:11:46Z</dc:date>
    </item>
    <item>
      <title>Lost qv table field with reload</title>
      <link>https://community.qlik.com/t5/QlikView/Lost-qv-table-field-with-reload/m-p/237785#M712265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Fernando D. T. wrote:&lt;BR /&gt;Now I got it.&lt;BR /&gt;See the example atached. Looks like de address "$(QvdPath)\$(QVDFILE)" is wrong because the "\" is already there when the variable is defined.&lt;BR /&gt;Changing it to "$(QvdPath)$(QVDFILE)" solves the problem. See my example.&lt;BR /&gt;Regards&lt;BR /&gt;Fernando&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;In my model works the relod the change i made was de lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt; Concatenate (tb_qv_Peticion)&lt;BR /&gt; LOAD * FROM $(QvdPath)\$(QVDFILE) (qvd)&lt;BR /&gt; WHERE NOT EXISTS ('$(QvdFieldName)');&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But......i have the problem with de condition exists because doesnt filter the table and insert a new HORA and Q in the table....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 18:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lost-qv-table-field-with-reload/m-p/237785#M712265</guid>
      <dc:creator />
      <dc:date>2011-05-02T18:45:43Z</dc:date>
    </item>
  </channel>
</rss>

