<?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: Error: Cannot open HTML file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-Cannot-open-HTML-file/m-p/1318375#M840806</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you really much for your help, I was too blind to see that I already had each filename in the document log &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;So was able to locate the bad file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 May 2017 17:05:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-05-10T17:05:10Z</dc:date>
    <item>
      <title>Error: Cannot open HTML file</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Cannot-open-HTML-file/m-p/1318371#M840802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an application which reads a bunch of excel files&amp;nbsp; (&amp;gt; 6.000, all should have the same format) in a loop. At a certain point I get the following error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Error: Cannot open HTML file"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is : i am sure that only a few of the files cuase the error but I don`t know which..so how can a trace the name of the file which could not be opened?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my script code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;let vDataFolder = '..\..\..\ExcelData\';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set ErrorMode=0;&lt;/P&gt;&lt;P&gt;if(FileSize('$(vDataFolder)*.xls')&amp;gt;0) then&lt;/P&gt;&lt;P&gt;trace "files exist";&lt;/P&gt;&lt;P&gt;&amp;nbsp; for each vFiles in filelist('$(vDataFolder)*.xls')&lt;/P&gt;&lt;P&gt;&amp;nbsp; Ligalisten_tmp1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD FileName() as filename, FileTime() as filetime, *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [$(vFiles)](html, codepage is 1252, no labels, table is @4);&lt;/P&gt;&lt;P&gt;&amp;nbsp; NEXT&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;trace "no files exist";&lt;/P&gt;&lt;P&gt;END if;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Hendrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Cannot-open-HTML-file/m-p/1318371#M840802</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Cannot open HTML file</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Cannot-open-HTML-file/m-p/1318372#M840803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you getting data from Share point? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 15:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Cannot-open-HTML-file/m-p/1318372#M840803</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-10T15:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Cannot open HTML file</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Cannot-open-HTML-file/m-p/1318373#M840804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In load script make this statement before execution of loop:&lt;/P&gt;&lt;P&gt;ErrorMode = 0;&lt;/P&gt;&lt;P&gt;It'll make your loop run without stop.&lt;/P&gt;&lt;P&gt;Another part of code must load FileName of handeled file. Something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; First 1 LOAD FileName() as FileName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (fix, codepage is 1251, no labels);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;You need to make table of passed and unpassed files in your loop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;After loop turn ErrorMode ON by script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ErrorMode = 1;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I guess you are well trained developer in scripting and my advise would help to make what you want.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 15:50:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Cannot-open-HTML-file/m-p/1318373#M840804</guid>
      <dc:creator>stantrolav</dc:creator>
      <dc:date>2017-05-10T15:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Cannot open HTML file</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Cannot-open-HTML-file/m-p/1318374#M840805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tested your code and I found problem in the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;(html, codepage is 1252, no labels, table is @4);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Because of this, each file reading is throwing cannot open HTML file.&lt;/P&gt;&lt;P&gt;I suggest you create script by clicking table files button at the bottom of the script editor and generate the code from one of your target file and use that code in the script above. When I used &lt;STRONG&gt;(biff, embedded labels, table is DATA$); &lt;/STRONG&gt;for my sample files it worked properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I kept one HTML file in the folder, it skipped that because we are only targetting the files with xls extension. so having html file in folder is not a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 16:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Cannot-open-HTML-file/m-p/1318374#M840805</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2017-05-10T16:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Cannot open HTML file</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Cannot-open-HTML-file/m-p/1318375#M840806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you really much for your help, I was too blind to see that I already had each filename in the document log &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;So was able to locate the bad file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 17:05:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Cannot-open-HTML-file/m-p/1318375#M840806</guid>
      <dc:creator />
      <dc:date>2017-05-10T17:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Cannot open HTML file</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Cannot-open-HTML-file/m-p/1318376#M840807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you solve it? just curious to know!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 17:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Cannot-open-HTML-file/m-p/1318376#M840807</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2017-05-10T17:07:06Z</dc:date>
    </item>
  </channel>
</rss>

