<?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: Dynamic File Load and store it as qvd in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-File-Load-and-store-it-as-qvd/m-p/1741184#M720726</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the above script, it fails due to the below error. Wat would be the reason ?&lt;/P&gt;&lt;P&gt;All my excel have only one sheet and all excel columns and&amp;nbsp; sheet name would be the same. Could you please help and let me know where to write the store commnet, It fails on adding next to Next vfile.&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="Prabhu1204_0-1599194659073.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/40085iED78F3B82DE446D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Prabhu1204_0-1599194659073.png" alt="Prabhu1204_0-1599194659073.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Sep 2020 04:45:04 GMT</pubDate>
    <dc:creator>Prabhu1204</dc:creator>
    <dc:date>2020-09-04T04:45:04Z</dc:date>
    <item>
      <title>Dynamic File Load and store it as qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-File-Load-and-store-it-as-qvd/m-p/1740736#M720722</link>
      <description>&lt;P&gt;Hello All, I have a requirement like, There will be a 5 to 6 ( department) will put the file in a folder having the same naming convention and common values. Like file1, file2 etc.. I need to load all the files from the folder and do a concatenation and store that into a qvd. whenver the new files arrives the data has be get append in the qvd.How to achieve this. do anyone have script. i searched the community and took the below script. But i am not sure that does the the code mean "FOR i = 0 to NoOfRows('tables')-1" and where the concatenation and stroring qvd happens.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone please help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FOR EACH file in FileList('F:\AnT\Next \*.xlsx');&lt;/P&gt;&lt;P&gt;//In order to get the file information from SQLtables command making use of the ODBC connection format&lt;BR /&gt;ODBC CONNECT32 TO [Excel Files;DBQ=$(file)];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;tables:&lt;BR /&gt;SQLtables;&lt;BR /&gt;DISCONNECT;&lt;/P&gt;&lt;P&gt;FOR i = 0 to NoOfRows('tables')-1&lt;BR /&gt;LET sheetName = purgeChar(purgeChar(peek('TABLE_NAME', i, 'tables'), chr(39)), chr(36));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table:&lt;BR /&gt;Load * ,&lt;BR /&gt;FileBaseName()as FIle,&lt;BR /&gt;FileDir() as Dir,&lt;BR /&gt;FileName() as File_Name,&lt;BR /&gt;'$(sheetName)' as Sheet_name&lt;BR /&gt;From $(file)(ooxml, embedded labels, table is [$(sheetName)]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-File-Load-and-store-it-as-qvd/m-p/1740736#M720722</guid>
      <dc:creator>Prabhu1204</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic File Load and store it as qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-File-Load-and-store-it-as-qvd/m-p/1740961#M720723</link>
      <description>&lt;P&gt;try below. Change path to your actual path&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;for Each vFile in FileList('C:\*.xlsx')


ODBC CONNECT TO [Excel Files;DBQ=$(vFile)];

Temp:
LOAD *;
SQLtables;
DISCONNECT;

Data:
LOAD * INLINE [
junk ];

FOR i = 0 TO NOOFROWS('Temp')-1

LET vSheetName = PURGECHAR(PURGECHAR(PEEK('TABLE_NAME', i, 'Temp'), CHR(39)), CHR(36));

CONCATENATE(Data)
LOAD *,
FILEBASENAME() AS FileName,
'$(vSheetName)' AS Sheet_name
FROM $(vFile)(ooxml, embedded labels, table is [$(vSheetName)]);

NEXT i


DROP TABLE Temp;

DROP FIELD junk;

NEXT $(vFile)

Set ErrorMode=0;
Drop Field A;     // When there is blank sheet in excel file, field A is created
Set ErrorMode=1;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 12:20:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-File-Load-and-store-it-as-qvd/m-p/1740961#M720723</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-03T12:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic File Load and store it as qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-File-Load-and-store-it-as-qvd/m-p/1740985#M720724</link>
      <description>&lt;P&gt;Thanks Kush. Will try it out and reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 13:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-File-Load-and-store-it-as-qvd/m-p/1740985#M720724</guid>
      <dc:creator>Prabhu1204</dc:creator>
      <dc:date>2020-09-03T13:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic File Load and store it as qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-File-Load-and-store-it-as-qvd/m-p/1741184#M720726</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the above script, it fails due to the below error. Wat would be the reason ?&lt;/P&gt;&lt;P&gt;All my excel have only one sheet and all excel columns and&amp;nbsp; sheet name would be the same. Could you please help and let me know where to write the store commnet, It fails on adding next to Next vfile.&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="Prabhu1204_0-1599194659073.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/40085iED78F3B82DE446D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Prabhu1204_0-1599194659073.png" alt="Prabhu1204_0-1599194659073.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 04:45:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-File-Load-and-store-it-as-qvd/m-p/1741184#M720726</guid>
      <dc:creator>Prabhu1204</dc:creator>
      <dc:date>2020-09-04T04:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic File Load and store it as qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-File-Load-and-store-it-as-qvd/m-p/1741188#M720727</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I rectified the error.Thanks a lot. Only thing i need to know is&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Where to use the store command ?&lt;/P&gt;&lt;P&gt;2) The user will delete the excels from the folder and put the new excels in the folder, In that way also will it work fine and the qvd hold the old data too ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 04:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-File-Load-and-store-it-as-qvd/m-p/1741188#M720727</guid>
      <dc:creator>Prabhu1204</dc:creator>
      <dc:date>2020-09-04T04:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic File Load and store it as qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-File-Load-and-store-it-as-qvd/m-p/1741233#M720728</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/100262"&gt;@Prabhu1204&lt;/a&gt;&amp;nbsp; You can use store command at the end. Yes,if user will add or delete file then it will automatically look at the existing file only and create QVDs out of those.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 09:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-File-Load-and-store-it-as-qvd/m-p/1741233#M720728</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-04T09:51:07Z</dc:date>
    </item>
  </channel>
</rss>

