<?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: Loading Files to QVD in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Loading-Files-to-QVD/m-p/2006062#M83256</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You can use the wildcard * to load files that begin with certain text.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;Load Column1, Column2 .. from [lib://Connection/&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;AP_*&lt;/STRONG&gt;&lt;/FONT&gt;] ;&lt;/P&gt;
&lt;P&gt;This would load all files that start with "AP_" .&lt;/P&gt;
&lt;P&gt;They need to have the same structure if you define the columns (so they will automatically concatenate).&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Thu, 17 Nov 2022 19:26:07 GMT</pubDate>
    <dc:creator>Gui_Approbato</dc:creator>
    <dc:date>2022-11-17T19:26:07Z</dc:date>
    <item>
      <title>Loading Files to QVD</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Files-to-QVD/m-p/2005955#M83250</link>
      <description>&lt;P&gt;Hi I have 20 files named in the Accounts Folder, of which 10 are AccountsPayable with date appended to the files for each month rest are&amp;nbsp;miscellaneous that i will not need . the accounts payable file have the same number of columns are field headers. I want to load these 10 files into my app . But how ever the accounts payable file names end with the month name appended to it. eg File 1:&amp;nbsp; AP_112021, File 2 :&amp;nbsp;AP_102021 File 3:&amp;nbsp;AP_092021... so on. I wont be able to create a new folder to have this file separately. all file should be accessed from this folder. The field names are Account number, dept, vendor, invoice details . Each month the files will be placed under this folder, which should also be processed by QLik once the files are there&lt;/P&gt;
&lt;P&gt;Is there a way i could load all the AP files through the data load editor, even if the new files comes each month , with&amp;nbsp; having to change the load editor script each month&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 15:09:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Files-to-QVD/m-p/2005955#M83250</guid>
      <dc:creator>Qlikuser09</dc:creator>
      <dc:date>2022-11-17T15:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Files to QVD</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Files-to-QVD/m-p/2006062#M83256</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You can use the wildcard * to load files that begin with certain text.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;Load Column1, Column2 .. from [lib://Connection/&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;AP_*&lt;/STRONG&gt;&lt;/FONT&gt;] ;&lt;/P&gt;
&lt;P&gt;This would load all files that start with "AP_" .&lt;/P&gt;
&lt;P&gt;They need to have the same structure if you define the columns (so they will automatically concatenate).&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 19:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Files-to-QVD/m-p/2006062#M83256</guid>
      <dc:creator>Gui_Approbato</dc:creator>
      <dc:date>2022-11-17T19:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Files to QVD</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Files-to-QVD/m-p/2006130#M83266</link>
      <description>&lt;P&gt;While &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/83197"&gt;@Gui_Approbato&lt;/a&gt; script does what was requested, it has a few weak points. Firstly, if the load fails, it won't tell you which QVD file is causing the issue. This can be avoided by not using the star wildcard during the load, and instead wrap the load in a for each filelist loop. Secondly, natural concatenation is nice when it works, but a pain when something unexpectedly breaks it. Using explicit concatenation is a far more robust approach.&lt;/P&gt;
&lt;P&gt;So something like this is what I'd suggest:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;for each vL.QVD in FileList('$(vL.FolderPath)AP_*.qvd')
	trace &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;: $(vL.QVD);

	if Alt(NoOfRows('AccountsPayable'), 0) = 0 then

		NOCONCATENATE
		AccountsPayable:
		LOAD
			Field1,
			Field2,
			Field3
		FROM
			[$(vL.QVD)] (qvd);

	else

		CONCATENATE(AccountsPayable)
		LOAD
			Field1,
			Field2,
			Field3
		FROM
			[$(vL.QVD)] (qvd);

	end if

	let vL.QVD = ;
next&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 17 Nov 2022 21:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Files-to-QVD/m-p/2006130#M83266</guid>
      <dc:creator>oskartoivonen</dc:creator>
      <dc:date>2022-11-17T21:29:04Z</dc:date>
    </item>
  </channel>
</rss>

