<?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: For Loop to create QVD from xlsx in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455118#M35784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I meant: stop the script at the second iteration before the "drop table" sentence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you will be able to check if the Table DATA exists in your Qlik App Data model as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The goal is to stop the code execution just before the error and understand why it does not find any DATA table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jan 2018 06:16:35 GMT</pubDate>
    <dc:creator>thomaslg_wq</dc:creator>
    <dc:date>2018-01-16T06:16:35Z</dc:date>
    <item>
      <title>For Loop to create QVD from xlsx</title>
      <link>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455108#M35774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got a Script error for which I would really appreciate the support of the Qlik Community.&lt;/P&gt;&lt;P&gt;Since the new year I cannot load the following script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// CASE OF THE PREVIOUS YEARS&lt;/P&gt;&lt;P&gt;for Year=2012 to 2025&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for MonthNum=1 to 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set cFILE_DATA = [lib://DATA/$(Year)/DATA - GOOD ISSUANCE - $(Year) - $(MonthNum).xlsx] ;&lt;/P&gt;&lt;P&gt;set cFILE_QVD&amp;nbsp; = [lib://QVD/$(Year)/DATA - GOOD ISSUANCE - $(Year) - $(MonthNum).qvd] ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET cFILE_DATA_SIZE = FileSize(cFILE_DATA);&lt;/P&gt;&lt;P&gt;LET cFILE_QVD_SIZE = FileSize(cFILE_QVD);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// CHECK IF DATA EXISTS&lt;/P&gt;&lt;P&gt;if isnull(cFILE_DATA_SIZE) then&lt;/P&gt;&lt;P&gt;// DO NOTHING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;// CHECK IF QVD EXISTS&lt;/P&gt;&lt;P&gt;if isnull(cFILE_QVD_SIZE) then&lt;/P&gt;&lt;P&gt;//CREATE QVD FILE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[DATA]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Dimensions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM $(cFILE_DATA)&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [DATA]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE [DATA] into $(cFILE_QVD) (qvd);&lt;/P&gt;&lt;P&gt;DROP TABLE DATA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;// QVD EXISTS ALREADY =&amp;gt; DO NOTHING&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;next MonthNum;&lt;/P&gt;&lt;P&gt;next Year;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;--------------------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The script error tells me the "&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 15px; background-color: rgba(255, 38, 38, 0.2);"&gt;Table 'DATA' not found"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is been 2 weeks I am try to debug this issue.&lt;/P&gt;&lt;P&gt;Could you please help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthieu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2018 01:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455108#M35774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-12T01:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop to create QVD from xlsx</title>
      <link>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455109#M35775</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;Please provide the script log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2018 15:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455109#M35775</guid>
      <dc:creator>thomaslg_wq</dc:creator>
      <dc:date>2018-01-12T15:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop to create QVD from xlsx</title>
      <link>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455110#M35776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The point where it fails is most probably here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;......&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM $(cFILE_DATA)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, &lt;STRONG&gt;table is [DATA])&lt;/STRONG&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;It indicates that a sheet named DATA is not to be found in the Excel workbook you're reading from. When reading from Excel the sheet is referred to as a table.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The&amp;nbsp; way around this is to set the ErrorMode variable to 0 which tells Qlik Sense to ignore errors which will allow you to at least read all the workbooks that really has a sheet named DATA.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Set ErrorMode=0;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[DATA]:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; // Dimensions&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; FROM $(cFILE_DATA)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is [DATA]);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; STORE [DATA] into $(cFILE_QVD) (qvd);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DROP TABLE DATA;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Set ErrorMode=1;&lt;/STRONG&gt; // set the error handling back to normal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2018 11:35:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455110#M35776</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-01-13T11:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop to create QVD from xlsx</title>
      <link>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455111#M35777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for your possible future support.&lt;/P&gt;&lt;P&gt;The complete script is supplied above.&lt;/P&gt;&lt;P&gt;The only information missing is the columns loaded.&lt;/P&gt;&lt;P&gt;The script log error is this one :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="edc_error" style="padding: 0 10px; color: #595959; font-family: 'Courier New'; font-size: 15px; background: rgba(255, 38, 38, 0.2);"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;L'erreur suivante s'est produite:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="edc_error" style="padding: 0 10px; color: #595959; font-family: 'Courier New'; font-size: 15px; background: rgba(255, 38, 38, 0.2);"&gt;Table 'DATA' not found&lt;/P&gt;&lt;P class="headline edc_error" style="padding: 0 10px; font-weight: bolder; color: #595959; font-family: 'Courier New'; font-size: 15px; background: rgba(255, 38, 38, 0.2);"&gt;Emplacement de l'erreur:&lt;/P&gt;&lt;P class="edc_error" style="padding: 0 10px; color: #595959; font-family: 'Courier New'; font-size: 15px; background: rgba(255, 38, 38, 0.2);"&gt;STORE [DATA] into lib://QVD/2012/DATA - GOOD ISSUANCE - 2012 - 2.qvd (qvd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script basically goes through the first loop but stops at the second iteration.&lt;/P&gt;&lt;P&gt;Last year I had no issue with the same code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthieu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 01:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455111#M35777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-15T01:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop to create QVD from xlsx</title>
      <link>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455112#M35778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Petter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, this "Set ErrorMode=0" and &lt;SPAN style="font-size: 13.3333px;"&gt; "Set ErrorMode=1" &lt;/SPAN&gt;do not solve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I keep investigating and debug my code but I cannot understand the issue as this code worked perfectly fine in 2017.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks again for your support,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthieu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 01:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455112#M35778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-15T01:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop to create QVD from xlsx</title>
      <link>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455113#M35779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check your data model at second iteration then to see if the table DATA exists as expected &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With a :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If monthnum =2 then &lt;/P&gt;&lt;P&gt;Exit script&lt;/P&gt;&lt;P&gt;Endif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 17:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455113#M35779</guid>
      <dc:creator>thomaslg_wq</dc:creator>
      <dc:date>2018-01-15T17:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop to create QVD from xlsx</title>
      <link>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455114#M35780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to check, if you set the maximum year to 2017 the script works fine?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 19:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455114#M35780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-15T19:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop to create QVD from xlsx</title>
      <link>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455115#M35781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Josefina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed the maximum year from 2025 to 2017.&lt;/P&gt;&lt;P&gt;It doesn't make a difference.&lt;/P&gt;&lt;P&gt;The script now stops at iteration 4 as the first 2 QVDs were already generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All this is really above my developing skills.&lt;/P&gt;&lt;P&gt;It has been now 2 weeks I tried to debug this code which doesn't seem so complicated...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks to all of you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthieu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 00:30:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455115#M35781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-16T00:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop to create QVD from xlsx</title>
      <link>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455116#M35782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything seems oK.&lt;/P&gt;&lt;P&gt;All required columns are in the excel file.&lt;/P&gt;&lt;P&gt;The excel file contains a 'DATA' Tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I excuted your code and I have no issue.&lt;/P&gt;&lt;P&gt;The first iteration generates a proper QVD file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthieu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 00:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455116#M35782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-16T00:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop to create QVD from xlsx</title>
      <link>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455117#M35783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;¿Can you provide us two dummy data excel files?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 05:51:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455117#M35783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-16T05:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop to create QVD from xlsx</title>
      <link>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455118#M35784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I meant: stop the script at the second iteration before the "drop table" sentence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you will be able to check if the Table DATA exists in your Qlik App Data model as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The goal is to stop the code execution just before the error and understand why it does not find any DATA table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 06:16:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455118#M35784</guid>
      <dc:creator>thomaslg_wq</dc:creator>
      <dc:date>2018-01-16T06:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop to create QVD from xlsx</title>
      <link>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455119#M35785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK, I think &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;your idea is very good. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see the problem now.&lt;/P&gt;&lt;P&gt;In fact I have just created a new App and connected the first QVD generated by the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems :&lt;/P&gt;&lt;P&gt;- the name of the table created in the QVD is wrong.&lt;/P&gt;&lt;P&gt;- the column loaded are not the correct ones (correspond to another database loaded before)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Here is the column I want to load in QVD :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[DATA]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Material],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Order],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Cost Center]&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Storage Location],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Movement Type],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Qty in Un. of Entry],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Unit of Entry],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Amount in LC],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Posting Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Time of Entry],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [User name],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM $(cFILE_DATA)&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [DATA]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Here is the data contained in the QVD :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[DATA - GOOD ISSUANCE - 2012 - 1]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Order],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [WO Material Number],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [WO Material description],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [MRP controller],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [BOM number]&lt;/P&gt;&lt;P&gt; FROM [lib://2012/DATA - GOOD ISSUANCE - 2012 - 1.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The columns loaded are the ones of another database I loaded before.&lt;/P&gt;&lt;P&gt;The name of the table is the name of the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A priori, I need to drop the table of the database loaded before or change its name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please give me your feedback ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthieu &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 07:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455119#M35785</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-16T07:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop to create QVD from xlsx</title>
      <link>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455120#M35786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2 things to discuss :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 : if your qvd is wrong, why do you want to use it anyway ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 : When you load columns in table with exactly the same columns as another previously loaded table, the new table is automatically concatenated to the first one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to avoid that behaviour, you need to add the "noconcatenate" sentence before loading the second table, as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;LOAD *, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 08:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455120#M35786</guid>
      <dc:creator>thomaslg_wq</dc:creator>
      <dc:date>2018-01-16T08:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop to create QVD from xlsx</title>
      <link>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455121#M35787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code now generates all QVD. The size of all QVD&amp;nbsp; varies and the columns insides are OK.&lt;/P&gt;&lt;P&gt;I think all QVD generated are now good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only issue is the name of the Table inside.&lt;/P&gt;&lt;P&gt;Instead of being named :&lt;/P&gt;&lt;P&gt;[DATA],&lt;/P&gt;&lt;P&gt;it is automatically set to &lt;/P&gt;&lt;P&gt;'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;[DATA - GOOD ISSUANCE - 2012 - 1]'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;[DATA - GOOD ISSUANCE - 2012 - 2]'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;STORE [DATA] into $(cFILE_QVD) (qvd);&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DROP TABLE DATA;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;shall define the name of the table inside QVD as [DATA]&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;Here is the full code :&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;for Year=2012 to 2025&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for MonthNum=1 to 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set cFILE_DATA = [lib://DATA/$(Year)/DATA - GOOD ISSUANCE - $(Year) - $(MonthNum).xlsx] ;&lt;/P&gt;&lt;P&gt;set cFILE_QVD&amp;nbsp; = [lib://QVD/$(Year)/DATA - GOOD ISSUANCE - $(Year) - $(MonthNum).qvd] ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET cFILE_DATA_SIZE = FileSize(cFILE_DATA);&lt;/P&gt;&lt;P&gt;LET cFILE_QVD_SIZE = FileSize(cFILE_QVD);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// CHECK IF DATA EXISTS&lt;/P&gt;&lt;P&gt;if isnull(cFILE_DATA_SIZE) then&lt;/P&gt;&lt;P&gt;// DO NOTHING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;// CHECK IF QVD EXISTS&lt;/P&gt;&lt;P&gt;if isnull(cFILE_QVD_SIZE) then&lt;/P&gt;&lt;P&gt;//CREATE QVD FILE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//noconcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[DATA]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Material],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Order],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Cost Center],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Storage Location],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Movement Type],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Qty in Un. of Entry],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Unit of Entry],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; [Amount in LC],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Posting Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Time of Entry],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [User name]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM $(cFILE_DATA)&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [DATA]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE [DATA] into $(cFILE_QVD) (qvd);&lt;/P&gt;&lt;P&gt;DROP TABLE [DATA];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;// QVD EXISTS ALREADY =&amp;gt; DO NOTHING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next MonthNum;&lt;/P&gt;&lt;P&gt;next Year;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;After the 'QVD MONTH' are generated, I concatenate the 12 Months into a QVD Year.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;After the 'QVD YEAR" are generated, I concatenate them into 1 QVD which is loaded into the App.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 01:30:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455121#M35787</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-17T01:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop to create QVD from xlsx</title>
      <link>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455122#M35788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Josefina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, I cannot find how to add the data to the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, I do not think the issue comes from the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthieu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 01:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455122#M35788</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-17T01:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop to create QVD from xlsx</title>
      <link>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455123#M35789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I did not see the notification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no table name into a QVD.&lt;/P&gt;&lt;P&gt;When you load the QVD, you can :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Load the qvd without explicitly naming the table, the name will defines itself with the name of the source.&lt;/LI&gt;&lt;LI&gt;Explicit the name of the table you are loading as&lt;/LI&gt;&lt;LI&gt;TableName: LOAD *, etc.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark the answer as correct if you solved your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 09:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-Loop-to-create-QVD-from-xlsx/m-p/1455123#M35789</guid>
      <dc:creator>thomaslg_wq</dc:creator>
      <dc:date>2018-02-07T09:01:05Z</dc:date>
    </item>
  </channel>
</rss>

