<?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: &amp;quot;General Script Error&amp;quot; woes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/quot-General-Script-Error-quot-woes/m-p/520679#M1270693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you see the script, what is the next line to the error, or the one that should be executed after the LOAD statement that make QlikView stop throwing "Execution Failed"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jul 2013 13:40:36 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2013-07-25T13:40:36Z</dc:date>
    <item>
      <title>"General Script Error" woes</title>
      <link>https://community.qlik.com/t5/QlikView/quot-General-Script-Error-quot-woes/m-p/520675#M1270684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been trying to figure this out for hours now and can't get to the bottom of it.&amp;nbsp; I developed an application using v11 and everything works fine.&amp;nbsp; I put it on the v11 server, reload, and it fails every time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the final few lines of the task log,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:57:20.7287493 Information Reloading&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:20.7309308 Information Reloading.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:46.8032143 Information The Source Document reload complete. DocumentPath=E:\QlikView\Documents\Knova\QV11_RGN_ConsonaKM_v4.qvw&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:46.8032143 Information Memory Allocation Delta for this file=801.66 Mb. Available Physical Memory Before Reload=3219.25 Mb. Available Physical Memory After Reload=2402.55 Mb. Total Physical Memory=2402.55 Mb.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:47.2562378 Error The Source Document was NOT reloaded successfully. DocumentPath=E:\QlikView\Documents\Knova\QV11_RGN_ConsonaKM_v4.qvw. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:47.3187238 Information Closing the document.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:47.8810978 Information Closed the QlikView Engine successfully. ProcessID=1356&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:50.1305938 Error The task "Knova/QV11_RGN_ConsonaKM_v4.qvw" failed. Exception:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;QDSMain.Exceptions.DistributionFailedException: Distribute failed with errors to follow. ---&amp;gt; QDSMain.Exceptions.ReloadFailedException: Reload failed ---&amp;gt; QDSMain.Exceptions.LogBucketErrorException: The Source Document was NOT reloaded successfully. DocumentPath=E:\QlikView\Documents\Knova\QV11_RGN_ConsonaKM_v4.qvw. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; at QDSMain.ReloadTask.VerifyConditions(TaskResult taskResult)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; at QDSMain.ReloadTask.Reload(String fileName, TaskResult taskResult, String sectionAccessUserName, String sectionAccessPassword, eReloadOptions reloadOption, String variableName, String variableValue, Boolean moniterCpuUsage)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; at QDSMain.ReloadTask.Reload(String fileName, TaskResult taskResult, String sectionAccessUserName, String sectionAccessPassword, eReloadOptions reloadOption, String variableName, String variableValue, Boolean moniterCpuUsage)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; at QDSMain.Task.AbstractTask.TaskExecution(ILogBucket logBucket, TaskResult taskResult)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:50.2711873 Information Task Execute Duration=00:05:34.1985954&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:50.2711873 Information TaskResult.status=Finished&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:50.4117808 Information Notifying all triggers of new state:FinishedWithErrors&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:50.4274023 Information Notifying all triggers of new state:FinishedWithErrors - completed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:50.4742668 Information Saving Task Result&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here are the final few lines of the document log,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:09.9364743 Information 2013-07-24 p1:58:09: 0112&amp;nbsp; IF -1 THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:09.9364743 Information 2013-07-24 p1:58:09: 0114&amp;nbsp;&amp;nbsp;&amp;nbsp; CONCATENATE (RGN_GenAct) LOAD * FROM GenAct.qvd (qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:09.9364743 Information 2013-07-24 p1:58:09: 0115&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:09.9364743 Information 2013-07-24 p1:58:09:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17 fields found: LogDate, LogTime, SessionID, UserID, EventType, SessionMicrosite, SearchQuery, UserName, UserTitle, UserDepartment, UserRole, BankingGroup, BankingArea, BankingMarket, UserCCName, UserBranchID, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:46.2408403 Information UserCCID, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:46.7407283 Information General Script Error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:46.7407283 Information 2013-07-24 p1:58:46:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execution Failed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;7/24/2013 13:58:46.7407283 Information 2013-07-24 p1:58:46:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execution finished.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance to any assistance you can provide.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-General-Script-Error-quot-woes/m-p/520675#M1270684</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: "General Script Error" woes</title>
      <link>https://community.qlik.com/t5/QlikView/quot-General-Script-Error-quot-woes/m-p/520676#M1270688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A little more information.&amp;nbsp; The words "General Script Error" above in the document log are always in the place of "X lines fetched" of a successful run.&amp;nbsp; Not sure what that means, but it seems interesting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 19:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-General-Script-Error-quot-woes/m-p/520676#M1270688</guid>
      <dc:creator />
      <dc:date>2013-07-24T19:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: "General Script Error" woes</title>
      <link>https://community.qlik.com/t5/QlikView/quot-General-Script-Error-quot-woes/m-p/520677#M1270691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those errors sometimes happen when either the filesystem where the files are stored are running out of space or more likely, because a write operation attempt has failed, for example, in a STORE line trying to overwrite a QVD file when the Windows UAC is set, or because of a lack of permissions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any chance this is happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 22:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-General-Script-Error-quot-woes/m-p/520677#M1270691</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2013-07-24T22:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: "General Script Error" woes</title>
      <link>https://community.qlik.com/t5/QlikView/quot-General-Script-Error-quot-woes/m-p/520678#M1270692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't look like those are factors here.&amp;nbsp; The account running the services is a local admin on the server and there is plenty of space available.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 12:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-General-Script-Error-quot-woes/m-p/520678#M1270692</guid>
      <dc:creator />
      <dc:date>2013-07-25T12:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: "General Script Error" woes</title>
      <link>https://community.qlik.com/t5/QlikView/quot-General-Script-Error-quot-woes/m-p/520679#M1270693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you see the script, what is the next line to the error, or the one that should be executed after the LOAD statement that make QlikView stop throwing "Execution Failed"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 13:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-General-Script-Error-quot-woes/m-p/520679#M1270693</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2013-07-25T13:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: "General Script Error" woes</title>
      <link>https://community.qlik.com/t5/QlikView/quot-General-Script-Error-quot-woes/m-p/520680#M1270695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like it might be failing here,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;IF $(vQvdExists) THEN&lt;/P&gt;&lt;P&gt; CONCATENATE ($(vTableName)) LOAD * FROM $(vQvdFile) (qvd) ;&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 15:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-General-Script-Error-quot-woes/m-p/520680#M1270695</guid>
      <dc:creator />
      <dc:date>2013-07-25T15:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: "General Script Error" woes</title>
      <link>https://community.qlik.com/t5/QlikView/quot-General-Script-Error-quot-woes/m-p/520681#M1270697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple of interesting items....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - When I reload the app from my machine it reloads fine, but the QVDs disappear.&amp;nbsp; NOTE - it never runs an incremental load which it is scripted to do, but at least it does load.&lt;/P&gt;&lt;P&gt;2 - When I reload the exact same app from the QV server it fails, but the QVDs are where I expect them to be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Server = v11.00.11282 x86&lt;/P&gt;&lt;P&gt;Desktop = v11.20.11922 x64&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 15:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-General-Script-Error-quot-woes/m-p/520681#M1270697</guid>
      <dc:creator />
      <dc:date>2013-07-25T15:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: "General Script Error" woes</title>
      <link>https://community.qlik.com/t5/QlikView/quot-General-Script-Error-quot-woes/m-p/520682#M1270700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed a weird behavior. So I guess vQvdExists stores a numeric value 0 or 1 for false or true, and vTableName and vQvdFile a string that is correctly populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would make sense for if you are using Publisher tasks in the server to reload and as the script never gets to the STORE file, the QVD is not generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I guessing it right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 06:51:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-General-Script-Error-quot-woes/m-p/520682#M1270700</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2013-07-26T06:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: "General Script Error" woes</title>
      <link>https://community.qlik.com/t5/QlikView/quot-General-Script-Error-quot-woes/m-p/520683#M1270702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a setting on my desktop client which deletes the QVD after a reload, so that is straight.&amp;nbsp; Now on to my real problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You've got the jist of it.&amp;nbsp; Here is the part of the script creating the QVD or loading it incrementally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vQvdFile='c:\mick\openfolder\qv\GenAct.qvd'; //The QVD filename on my machine&lt;BR /&gt;//SET vQvdFile='E:\QlikView\Documents\Knova\GenAct.qvd'; //The QVD filename on NOCDKMCOMBO1&lt;BR /&gt;SET vTableName='RGN_GenAct';&amp;nbsp; //The name of the QV table we are loading on the Data Load tab&lt;BR /&gt;//SET vPK='EventId';&amp;nbsp;&amp;nbsp;&amp;nbsp; //Data Primary Key&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// Set a variable indicating if the QVD exists or not. -1 is True, 0 is False&lt;BR /&gt;LET vQvdExists = if(FileSize('$(vQvdFile)') &amp;gt; 0, -1, 0);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;IF $(vQvdExists) THEN&amp;nbsp; // QVD exists, we will do an incremental reload&lt;BR /&gt; maxdateTab:&lt;BR /&gt; // Get the max date from this QVD for use in incremental SELECT&lt;BR /&gt; LOAD max(date(LogDate)) as maxdate //?? Set the name of the date or datetime field&lt;BR /&gt; FROM $(vQvdFile) (qvd);&lt;/P&gt;&lt;P&gt; LET vIncrementalExpression = 'WHERE LogDate &amp;gt;' &amp;amp; chr(39) &amp;amp; peek('maxdate') &amp;amp; chr(39);&lt;BR /&gt; DROP table maxdateTab;&lt;BR /&gt; &lt;BR /&gt;ELSE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // QVD does not exist&lt;BR /&gt; LET vIncrementalExpression = '';&amp;nbsp; // No QVD. Force full reload &lt;BR /&gt;END IF&lt;/P&gt;&lt;P&gt;RGN_GenAct:&lt;BR /&gt;sql select &lt;BR /&gt;&amp;nbsp; LogDate&lt;BR /&gt; , LogTime&lt;BR /&gt; ,&amp;nbsp; SessionID&lt;BR /&gt; ,&amp;nbsp; UserID&lt;BR /&gt; ,&amp;nbsp; EventType&lt;BR /&gt; ,&amp;nbsp; Microsite as SessionMicrosite&lt;BR /&gt; ,&amp;nbsp; upper(SearchQuery) as SearchQuery&lt;BR /&gt; ,&amp;nbsp; UserName&lt;BR /&gt; ,&amp;nbsp; UserTitle&lt;BR /&gt; , UserDepartment&lt;BR /&gt; ,&amp;nbsp; UserRole&lt;BR /&gt; ,&amp;nbsp; BankingGroup&lt;BR /&gt; ,&amp;nbsp; BankingArea&lt;BR /&gt; ,&amp;nbsp; BankingMarket&lt;BR /&gt; , UserCCName&lt;BR /&gt; ,&amp;nbsp; UserBranchID&lt;BR /&gt; ,&amp;nbsp; UserCCID &lt;BR /&gt;from "kanalyticsprod"."dbo"."RGN_GenAct"&lt;BR /&gt;$(vIncrementalExpression);&lt;/P&gt;&lt;P&gt;// If incremental reload was , load previous data and concatenate to data just read.&lt;BR /&gt;IF $(vQvdExists) THEN&lt;BR /&gt; // Use CONCATENATE in case we've added any new fields.&lt;BR /&gt; CONCATENATE ($(vTableName)) LOAD * FROM $(vQvdFile) (qvd);&lt;BR /&gt;END IF&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;Overwrite the QVD with the QV datatable. &lt;BR /&gt;*/&lt;BR /&gt;STORE $(vTableName) INTO $(vQvdFile);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 13:32:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-General-Script-Error-quot-woes/m-p/520683#M1270702</guid>
      <dc:creator />
      <dc:date>2013-07-26T13:32:05Z</dc:date>
    </item>
  </channel>
</rss>

