<?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 Execution of Script Failed. Reload Old data?  Error message in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Execution-of-Script-Failed-Reload-Old-data-Error-message/m-p/1112884#M635290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to load multiple sheets from an Excel 2010 file with the following script - this script seems to work for many people in the community.&lt;/P&gt;&lt;P&gt;The script windows shows that all the lines have been fetched.&amp;nbsp; However, after that I get an error message "Execution of Script Failed. Reload Old Data?"&lt;/P&gt;&lt;P&gt;I checked and I do have read / write access to the folder.&lt;/P&gt;&lt;P&gt;I closed all existing QV.exe from the task manager (even restarted the machine a few times!)&lt;/P&gt;&lt;P&gt;I created a new .qvw file, inserted the script and received the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG style="font-size: 10pt;"&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;vFilePath&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; = 'C:\Qview\ALM_ALCO_PACK\trial';&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;FOR&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;EACH&lt;/SPAN&gt; &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;file&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;in&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;FileList&lt;/SPAN&gt;('$(vFilePath)\*.xlsm');&amp;nbsp; &lt;SPAN style="color: #008f00;"&gt;// Loops each excel file in the given Folder&lt;BR /&gt; //In order to get the file information from SQLtables command making use of the ODBC connection format&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;ODBC&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;CONNECT64&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;TO&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;[Excel Files;DBQ=$(file)]&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; SheetNames:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; SQLtables;&amp;nbsp; &lt;SPAN style="color: #008f00;"&gt;// Loads all sheet names in the Excel file.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;DISCONNECT&lt;/STRONG&gt;&lt;/SPAN&gt;;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;FOR&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;index&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; = 0 &lt;SPAN style="color: #0433ff;"&gt;to&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;NoOfRows&lt;/SPAN&gt;('SheetNames')-1&amp;nbsp; &lt;SPAN style="color: #008f00;"&gt;// Loops for each sheet in the Excel file.&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;sheetName&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; = &lt;SPAN style="color: #0433ff;"&gt;PurgeChar&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;PurgeChar&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;Peek&lt;/SPAN&gt;('TABLE_NAME', &lt;SPAN style="color: #941100;"&gt;index&lt;/SPAN&gt;, 'SheetNames'), &lt;SPAN style="color: #0433ff;"&gt;Chr&lt;/SPAN&gt;(39)), &lt;SPAN style="color: #0433ff;"&gt;Chr&lt;/SPAN&gt;(36)); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; TableName:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt; * ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;FileBaseName&lt;/SPAN&gt;()&lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;File&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;FileDir&lt;/SPAN&gt;() &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;Dir&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;FileName&lt;/SPAN&gt;() &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;File_Name&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; '$(sheetName)' &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;Sheet_name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #0433ff;"&gt;From&lt;/SPAN&gt; &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(file)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;ooxml&lt;/SPAN&gt;, &lt;SPAN style="color: #0433ff;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;labels&lt;/SPAN&gt;, &lt;SPAN style="color: #0433ff;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;is&lt;/SPAN&gt; [$(sheetName)]);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;NEXT&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;index&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;DROP&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;TABLE&lt;/SPAN&gt; SheetNames;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG style="font-size: 10pt;"&gt;NEXT &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I am also attaching the excel file i was trying to load. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Please help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jun 2016 17:06:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-14T17:06:05Z</dc:date>
    <item>
      <title>Execution of Script Failed. Reload Old data?  Error message</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-of-Script-Failed-Reload-Old-data-Error-message/m-p/1112884#M635290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to load multiple sheets from an Excel 2010 file with the following script - this script seems to work for many people in the community.&lt;/P&gt;&lt;P&gt;The script windows shows that all the lines have been fetched.&amp;nbsp; However, after that I get an error message "Execution of Script Failed. Reload Old Data?"&lt;/P&gt;&lt;P&gt;I checked and I do have read / write access to the folder.&lt;/P&gt;&lt;P&gt;I closed all existing QV.exe from the task manager (even restarted the machine a few times!)&lt;/P&gt;&lt;P&gt;I created a new .qvw file, inserted the script and received the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG style="font-size: 10pt;"&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;vFilePath&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; = 'C:\Qview\ALM_ALCO_PACK\trial';&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;FOR&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;EACH&lt;/SPAN&gt; &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;file&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;in&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;FileList&lt;/SPAN&gt;('$(vFilePath)\*.xlsm');&amp;nbsp; &lt;SPAN style="color: #008f00;"&gt;// Loops each excel file in the given Folder&lt;BR /&gt; //In order to get the file information from SQLtables command making use of the ODBC connection format&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;ODBC&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;CONNECT64&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;TO&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;[Excel Files;DBQ=$(file)]&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; SheetNames:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; SQLtables;&amp;nbsp; &lt;SPAN style="color: #008f00;"&gt;// Loads all sheet names in the Excel file.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;DISCONNECT&lt;/STRONG&gt;&lt;/SPAN&gt;;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;FOR&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;index&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; = 0 &lt;SPAN style="color: #0433ff;"&gt;to&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;NoOfRows&lt;/SPAN&gt;('SheetNames')-1&amp;nbsp; &lt;SPAN style="color: #008f00;"&gt;// Loops for each sheet in the Excel file.&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;sheetName&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; = &lt;SPAN style="color: #0433ff;"&gt;PurgeChar&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;PurgeChar&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;Peek&lt;/SPAN&gt;('TABLE_NAME', &lt;SPAN style="color: #941100;"&gt;index&lt;/SPAN&gt;, 'SheetNames'), &lt;SPAN style="color: #0433ff;"&gt;Chr&lt;/SPAN&gt;(39)), &lt;SPAN style="color: #0433ff;"&gt;Chr&lt;/SPAN&gt;(36)); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; TableName:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt; * ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;FileBaseName&lt;/SPAN&gt;()&lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;File&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;FileDir&lt;/SPAN&gt;() &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;Dir&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;FileName&lt;/SPAN&gt;() &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;File_Name&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; '$(sheetName)' &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;Sheet_name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #0433ff;"&gt;From&lt;/SPAN&gt; &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(file)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;ooxml&lt;/SPAN&gt;, &lt;SPAN style="color: #0433ff;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;labels&lt;/SPAN&gt;, &lt;SPAN style="color: #0433ff;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;is&lt;/SPAN&gt; [$(sheetName)]);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;NEXT&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;index&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;DROP&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;TABLE&lt;/SPAN&gt; SheetNames;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG style="font-size: 10pt;"&gt;NEXT &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I am also attaching the excel file i was trying to load. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Please help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 17:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-of-Script-Failed-Reload-Old-data-Error-message/m-p/1112884#M635290</guid>
      <dc:creator />
      <dc:date>2016-06-14T17:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Execution of Script Failed. Reload Old data?  Error message</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-of-Script-Failed-Reload-Old-data-Error-message/m-p/1112885#M635291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you might have forgotten to attach the file. Can you please reattach &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 17:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-of-Script-Failed-Reload-Old-data-Error-message/m-p/1112885#M635291</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-14T17:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Execution of Script Failed. Reload Old data?  Error message</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-of-Script-Failed-Reload-Old-data-Error-message/m-p/1112886#M635292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, attached the excel file now..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 03:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-of-Script-Failed-Reload-Old-data-Error-message/m-p/1112886#M635292</guid>
      <dc:creator />
      <dc:date>2016-06-15T03:14:54Z</dc:date>
    </item>
  </channel>
</rss>

