<?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: Check If Excel file exists in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Check-If-Excel-file-exists/m-p/670913#M243752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Smith...Its working fine now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jun 2014 14:34:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-06-13T14:34:48Z</dc:date>
    <item>
      <title>Check If Excel file exists</title>
      <link>https://community.qlik.com/t5/QlikView/Check-If-Excel-file-exists/m-p/670906#M243745</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;I want to check the existance of an excel file in a relative path in between 2 LOAD scripts which are being CONCATENATED.&lt;/P&gt;&lt;P&gt;Eg.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * FROM ExcelA;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CHECK FILE(ExcelB) and If exists then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CONCATENATE(Table1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * FROM ExcelB;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help on how this can be achieved in QV script.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 21:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-If-Excel-file-exists/m-p/670906#M243745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-12T21:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Check If Excel file exists</title>
      <link>https://community.qlik.com/t5/QlikView/Check-If-Excel-file-exists/m-p/670907#M243746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;Table1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;LOAD * FROM ExcelA;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;IF FILETIME(ExcelB)&amp;gt;0 THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONCATENATE(Table1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;LOAD * FROM ExcelB;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;END IF&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 21:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-If-Excel-file-exists/m-p/670907#M243746</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-06-12T21:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Check If Excel file exists</title>
      <link>https://community.qlik.com/t5/QlikView/Check-If-Excel-file-exists/m-p/670908#M243747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Smith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the above script, but it is not working&lt;/P&gt;&lt;P&gt;Used Debugger but the loop is not going insisde IF condition.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit;"&gt;Table1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit;"&gt;LOAD * FROM ExcelA;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;IF &lt;SPAN style="font-family: inherit; font-style: inherit;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FileTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[..\Files\ExcelB.xlsx]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;THEN &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit;"&gt;CONCATENATE(Table1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit;"&gt;LOAD * FROM ExcelB;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit;"&gt;END IF&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit;"&gt;Please let me know whether the above script is correct. Specifically the syntax for file path.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit;"&gt;Also, I have checked the 'Relative paths' check box.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 21:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-If-Excel-file-exists/m-p/670908#M243747</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-12T21:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Check If Excel file exists</title>
      <link>https://community.qlik.com/t5/QlikView/Check-If-Excel-file-exists/m-p/670909#M243748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try just loading from the file using the path like you have written:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD * FROM ExcelA;&lt;/P&gt;&lt;P&gt;CONCATENATE(Table1)&lt;/P&gt;&lt;P&gt;LOAD * FROM [..\Files\ExcelB.xlsx];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 21:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-If-Excel-file-exists/m-p/670909#M243748</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-06-12T21:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Check If Excel file exists</title>
      <link>https://community.qlik.com/t5/QlikView/Check-If-Excel-file-exists/m-p/670910#M243749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Smith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In normal LOAD the file is fetched from the path which I have mentioned above.&lt;/P&gt;&lt;P&gt;But in the IF statement the condition gets failed and coming out of loop.&lt;/P&gt;&lt;P&gt;I am using the same path in the IF statement as like used in the LOAD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 14:07:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-If-Excel-file-exists/m-p/670910#M243749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-13T14:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Check If Excel file exists</title>
      <link>https://community.qlik.com/t5/QlikView/Check-If-Excel-file-exists/m-p/670911#M243750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to write the filetime() piece like this:&lt;/P&gt;&lt;P&gt;FileTime('..\Files\ExcelB.xlsx')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 14:14:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-If-Excel-file-exists/m-p/670911#M243750</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-06-13T14:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Check If Excel file exists</title>
      <link>https://community.qlik.com/t5/QlikView/Check-If-Excel-file-exists/m-p/670912#M243751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD * FROM ExcelA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each vFileName in FileList('C:\Path\ExcelB.xls')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CONCATENATE(Table1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LOAD * FROM [vFileName];&lt;/P&gt;&lt;P&gt;Next vFileName &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 14:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-If-Excel-file-exists/m-p/670912#M243751</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-06-13T14:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Check If Excel file exists</title>
      <link>https://community.qlik.com/t5/QlikView/Check-If-Excel-file-exists/m-p/670913#M243752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Smith...Its working fine now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 14:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-If-Excel-file-exists/m-p/670913#M243752</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-13T14:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Check If Excel file exists</title>
      <link>https://community.qlik.com/t5/QlikView/Check-If-Excel-file-exists/m-p/670914#M243753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Henric.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 14:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-If-Excel-file-exists/m-p/670914#M243753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-13T14:36:03Z</dc:date>
    </item>
  </channel>
</rss>

