<?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: Exclude files from load, depending on their header. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exclude-files-from-load-depending-on-their-header/m-p/1559077#M742471</link>
    <description>&lt;P&gt;You can check file size using filesize()&lt;/P&gt;&lt;PRE&gt;FOR Each vCurFile in FileList('Input\*.csv')
	
	IF FileSize('$(vCurFile)') &amp;gt; 0 THEN
		//QV uses by default autoconcatenate to tables with the same fields set	
		LOAD *
		FROM [$(vCurFile)]
		(txt, utf8, embedded labels, delimiter is ';', msq);
		
	ENDIF //IF FileSize('$(vCurFile)') &amp;gt; 0 THEN
	
NEXT //FOR Each vCurFile in FileList('Input\*.csv')&lt;/PRE&gt;</description>
    <pubDate>Wed, 20 Mar 2019 14:34:15 GMT</pubDate>
    <dc:creator>mrybalko</dc:creator>
    <dc:date>2019-03-20T14:34:15Z</dc:date>
    <item>
      <title>Exclude files from load, depending on their header.</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-files-from-load-depending-on-their-header/m-p/1558487#M742464</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I want to know if it is possible to exclude files depending on the headers in the file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Say I have two different files with different headers in the same folder (in this case I have millions and more like 6 different filetypes)&amp;nbsp;&lt;/P&gt;&lt;P&gt;File 1:&amp;nbsp; Headers&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SerialNo&lt;/TD&gt;&lt;TD&gt;Created&lt;/TD&gt;&lt;TD&gt;Volume1&lt;/TD&gt;&lt;TD&gt;Volume2&lt;/TD&gt;&lt;TD&gt;Volume3&lt;/TD&gt;&lt;TD&gt;Volume4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File 2:&amp;nbsp;Headers&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SerialNo&lt;/TD&gt;&lt;TD&gt;Created&lt;/TD&gt;&lt;TD&gt;Heat1&lt;/TD&gt;&lt;TD&gt;Heat2&lt;/TD&gt;&lt;TD&gt;Heat3&lt;/TD&gt;&lt;TD&gt;Heat4&lt;/TD&gt;&lt;TD&gt;Temperature&lt;/TD&gt;&lt;TD&gt;Delta-T&lt;/TD&gt;&lt;TD&gt;ErrorCode&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for something like&lt;/P&gt;&lt;PRE&gt;load

SerialNo,
Created,
Volume1,
Volume2,
Volume3,
Volume4

from *.csv where header = Volume1 or Volume2 &lt;/PRE&gt;&lt;P&gt;And then I would make another load&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;load 
SerialNo,	
Created,	
Heat1,	
Heat2,	
Heat3,	
Heat4,	
Temperature,	
Delta-T,
ErrorCode,

from *.csv where header = Heat1&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to achieve something like another open question I have in the community, just instead of separating&amp;nbsp;the content in a folder, depending on the headers. -&amp;gt; &lt;A href="https://community.qlik.com/t5/New-to-QlikView/How-to-use-Dynamic-header-on-different-headers-and-rows/m-p/1557957#M371873" target="_blank" rel="noopener"&gt;Here&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-files-from-load-depending-on-their-header/m-p/1558487#M742464</guid>
      <dc:creator>varmekontrol</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude files from load, depending on their header.</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-files-from-load-depending-on-their-header/m-p/1558501#M742466</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6298"&gt;@varmekontrol&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I want to know if it is possible to exclude files depending on the headers in the file.&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes it is possible. You can read first row and determine header types. But it is required to load every file in your huge storage.&lt;/P&gt;&lt;P&gt;Is your task conversion numerous csv to one qvd for every header type?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 14:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-files-from-load-depending-on-their-header/m-p/1558501#M742466</guid>
      <dc:creator>mrybalko</dc:creator>
      <dc:date>2019-03-19T14:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude files from load, depending on their header.</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-files-from-load-depending-on-their-header/m-p/1558511#M742467</link>
      <description>&lt;P&gt;Thank you for your answer &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/35960"&gt;@mrybalko&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My task is to use qlik&amp;nbsp;to filter out the different 6 types of files that are&amp;nbsp;in the folder. The files are from an automated system that delivers them daily to a folder, and the system does not know the difference between the different files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;From that filtering, I need to filter out a table with all the files with that specific header. Then repeat for the last 5 types.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 14:47:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-files-from-load-depending-on-their-header/m-p/1558511#M742467</guid>
      <dc:creator>varmekontrol</dc:creator>
      <dc:date>2019-03-19T14:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude files from load, depending on their header.</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-files-from-load-depending-on-their-header/m-p/1558935#M742468</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6298"&gt;@varmekontrol&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Find example in attachment.&amp;nbsp; I assume that you have enough RAM to load all csv at once.&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://community.qlik.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;I suggest to create individual qvw for every csv type and split qvds if they exceed 200 MB&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 11:31:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-files-from-load-depending-on-their-header/m-p/1558935#M742468</guid>
      <dc:creator>mrybalko</dc:creator>
      <dc:date>2019-03-20T11:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude files from load, depending on their header.</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-files-from-load-depending-on-their-header/m-p/1558961#M742469</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/35960"&gt;@mrybalko&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the blueprint and description of how to solve this problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 20+ GB&amp;nbsp;ddr4 ram, so should not be a problem as I think I will also limit the historical data by only a couple of week.,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for all the work, and it works like a charm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 12:09:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-files-from-load-depending-on-their-header/m-p/1558961#M742469</guid>
      <dc:creator>varmekontrol</dc:creator>
      <dc:date>2019-03-20T12:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude files from load, depending on their header.</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-files-from-load-depending-on-their-header/m-p/1559028#M742470</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/35960"&gt;@mrybalko&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to prevent the script from generating an error when running into an empty file?&amp;nbsp;&lt;/P&gt;&lt;P&gt;There were no fields to load in the given source.&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM [C:\Users\sorensda\Documents\QlikView\Alarm og Rapport system\Convert\Input\0006046949_60749040_valuereport_20190317033736_2105.csv]&lt;BR /&gt;(txt, utf8, embedded labels, delimiter is ';', msq)&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 13:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-files-from-load-depending-on-their-header/m-p/1559028#M742470</guid>
      <dc:creator>varmekontrol</dc:creator>
      <dc:date>2019-03-20T13:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude files from load, depending on their header.</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-files-from-load-depending-on-their-header/m-p/1559077#M742471</link>
      <description>&lt;P&gt;You can check file size using filesize()&lt;/P&gt;&lt;PRE&gt;FOR Each vCurFile in FileList('Input\*.csv')
	
	IF FileSize('$(vCurFile)') &amp;gt; 0 THEN
		//QV uses by default autoconcatenate to tables with the same fields set	
		LOAD *
		FROM [$(vCurFile)]
		(txt, utf8, embedded labels, delimiter is ';', msq);
		
	ENDIF //IF FileSize('$(vCurFile)') &amp;gt; 0 THEN
	
NEXT //FOR Each vCurFile in FileList('Input\*.csv')&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Mar 2019 14:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-files-from-load-depending-on-their-header/m-p/1559077#M742471</guid>
      <dc:creator>mrybalko</dc:creator>
      <dc:date>2019-03-20T14:34:15Z</dc:date>
    </item>
  </channel>
</rss>

