<?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: How can I check if a file exists ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/1841019#M1215285</link>
    <description>&lt;P&gt;You can check it with FileList():&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;LET&amp;nbsp;vFileName='/A/B/C.D';&lt;/P&gt;&lt;P class="lia-align-left"&gt;LET vFileExist=0;&lt;/P&gt;&lt;P class="lia-align-left"&gt;FOR Each vFile in FileList('$(vFileName)')&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;LET vFileExist=1;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Next vFile;&lt;BR /&gt;&lt;BR /&gt;IF (vFileExist = 1) THEN&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;TRACE File exists;&lt;/P&gt;&lt;P class="lia-align-left"&gt;ELSE&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp; &amp;nbsp; TRACE File does not exist;&lt;/P&gt;&lt;P class="lia-align-left"&gt;END IF&lt;/P&gt;</description>
    <pubDate>Fri, 01 Oct 2021 23:54:12 GMT</pubDate>
    <dc:creator>Kostan</dc:creator>
    <dc:date>2021-10-01T23:54:12Z</dc:date>
    <item>
      <title>How can I check if a file exists ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/518834#M1148400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;is it possible to verify if a file exists or not ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 21:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/518834#M1148400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-27T21:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I check if a file exists ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/518835#M1148401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider this script it may help you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET vFileName='C:\Users\Sheet.txt';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vFileExsist=if(FileSize($(vFileName))&amp;gt;0,-1,0);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if $(vFileExsist) then &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load * from $(vFileName)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml,no labels,table is[]);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Else &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MsgBox('File Not Found') as Warning1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End if;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 05:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/518835#M1148401</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2013-06-28T05:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I check if a file exists ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/518836#M1148402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can go to following thread they will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/thread/28381"&gt;http://community.qlik.com/thread/28381&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/340253#340253"&gt;http://community.qlik.com/message/340253#340253&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 05:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/518836#M1148402</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2013-06-28T05:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I check if a file exists ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/518837#M1148403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;EM&gt;vListqvdexists&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;isnull&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;QvdCreateTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;('File.qvd'));&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;// if qvd exists then 0 else -1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green; font-size: 9pt; font-family: 'Courier New';"&gt;//if Qvd is exist then Delta loading Else Initial Loading.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;Regards-Bika&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 05:43:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/518837#M1148403</guid>
      <dc:creator />
      <dc:date>2013-06-28T05:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I check if a file exists ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/518838#M1148404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks !!&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 07:13:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/518838#M1148404</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-28T07:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I check if a file exists ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/518839#M1148405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To make the variable act as a Boolean value, add "not" before isnull:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vListQVDExists = &lt;STRONG&gt;not&lt;/STRONG&gt; isnull(QVDCreateTime('File.qvd')); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can use &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF $(vListQVDExists) THEN... &lt;/P&gt;&lt;P&gt;instead of &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF $(vListQVDExists) = 0 THEN...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes it easier,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 23:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/518839#M1148405</guid>
      <dc:creator>smoon63</dc:creator>
      <dc:date>2014-01-10T23:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I check if a file exists ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/518840#M1148406</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;Is it possible to check and not to load a sheet in excel file which is not existing ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation in which in one excel file have couple of sheets. First and second sheets are on monthly bases, but third is on quarterly base. I would like to load first two and check if third is existing . If not skip and load other sheets, if exist load all.&lt;/P&gt;&lt;P&gt;I attach a sample excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 09:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/518840#M1148406</guid>
      <dc:creator />
      <dc:date>2015-11-20T09:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I check if a file exists ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/518841#M1148407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i ilke the way you formulated your answer. clear, usefull and concrete&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 12:50:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/518841#M1148407</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-25T12:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I check if a file exists ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/518842#M1148408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for your help with this, i am up and running again ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 15:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/518842#M1148408</guid>
      <dc:creator>cspindley</dc:creator>
      <dc:date>2018-04-24T15:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I check if a file exists ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/1841019#M1215285</link>
      <description>&lt;P&gt;You can check it with FileList():&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;LET&amp;nbsp;vFileName='/A/B/C.D';&lt;/P&gt;&lt;P class="lia-align-left"&gt;LET vFileExist=0;&lt;/P&gt;&lt;P class="lia-align-left"&gt;FOR Each vFile in FileList('$(vFileName)')&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;LET vFileExist=1;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Next vFile;&lt;BR /&gt;&lt;BR /&gt;IF (vFileExist = 1) THEN&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;TRACE File exists;&lt;/P&gt;&lt;P class="lia-align-left"&gt;ELSE&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp; &amp;nbsp; TRACE File does not exist;&lt;/P&gt;&lt;P class="lia-align-left"&gt;END IF&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 23:54:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-check-if-a-file-exists/m-p/1841019#M1215285</guid>
      <dc:creator>Kostan</dc:creator>
      <dc:date>2021-10-01T23:54:12Z</dc:date>
    </item>
  </channel>
</rss>

