<?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 General Script Error storing a QVD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/General-Script-Error-storing-a-QVD/m-p/299396#M705965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks, I've followed the code and can understand your logic. I'll start to implement this across my qvw's and then, I guess, keep my figures crossed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jan 2012 15:06:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-23T15:06:21Z</dc:date>
    <item>
      <title>General Script Error storing a QVD</title>
      <link>https://community.qlik.com/t5/QlikView/General-Script-Error-storing-a-QVD/m-p/299393#M705962</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 have a lot of problems with general script errors because all my QVW's that run through the server publish their vital stats to a central LogFile.QVD at the end of their run which I then report on separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is that the QVD logFile becomes locked when two or more try QVW's try and perform the Store at the same time. I have tried the sleep command as another post suggests for this error but this didn't resolve the issue. And the same post also says to delete the QVD which I don't think I can do via the script and even if I could I don't think this is the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think what I'm looking for is some sort of 'On Error' code which can be switched on just before, if an error is detected (general script error) then it will SLEEP and try again. It will continue to try this for a set number of goes and then Exit Script is it still doesn't have joy.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've looked at the manual but if anyone can give me some pointers that would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 13:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-Script-Error-storing-a-QVD/m-p/299393#M705962</guid>
      <dc:creator />
      <dc:date>2012-01-23T13:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: General Script Error storing a QVD</title>
      <link>https://community.qlik.com/t5/QlikView/General-Script-Error-storing-a-QVD/m-p/299394#M705963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is indeed a variable ScriptError (further documentation on its codes in the Reference Manual) that you can use in an If conditional in your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;// Ignore errors and keep executing the next line&lt;/P&gt;&lt;P&gt;SET ErrorMode = 0; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[...] // Script here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE Table INTO File.qvd (qvd); // First attempt&lt;/P&gt;&lt;P&gt;// If everthing went fine, the following will only iterate 5 taking very few time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR vAttemptNo = 1 TO 5 // Number of attempts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF ScriptError = 1 THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SLEEP 10000; // 10 secs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXIT SCRIPT WHEN $(vAttemptNo) =&amp;gt; 5;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STORE Table INTO File.qvd (qvd); // another attempt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tested the code, so I have missed something.&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>Mon, 23 Jan 2012 14:26:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-Script-Error-storing-a-QVD/m-p/299394#M705963</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-01-23T14:26:57Z</dc:date>
    </item>
    <item>
      <title>General Script Error storing a QVD</title>
      <link>https://community.qlik.com/t5/QlikView/General-Script-Error-storing-a-QVD/m-p/299395#M705964</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;Why not have a separate stats QVD for each QVW?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Easy to concatenate them into a central file for analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 14:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-Script-Error-storing-a-QVD/m-p/299395#M705964</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2012-01-23T14:49:10Z</dc:date>
    </item>
    <item>
      <title>General Script Error storing a QVD</title>
      <link>https://community.qlik.com/t5/QlikView/General-Script-Error-storing-a-QVD/m-p/299396#M705965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks, I've followed the code and can understand your logic. I'll start to implement this across my qvw's and then, I guess, keep my figures crossed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 15:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-Script-Error-storing-a-QVD/m-p/299396#M705965</guid>
      <dc:creator />
      <dc:date>2012-01-23T15:06:21Z</dc:date>
    </item>
    <item>
      <title>General Script Error storing a QVD</title>
      <link>https://community.qlik.com/t5/QlikView/General-Script-Error-storing-a-QVD/m-p/299397#M705966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Stephen, originally that's how it worked and your right with the * wildcard when loading they'll concat simply..... think I'm a bit OCD really and prefer to remedy the problem and keep a single logfile rather than going back to loads (and I have a lot of QVWs and growing). Cheers for the repsonse though. Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 15:09:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-Script-Error-storing-a-QVD/m-p/299397#M705966</guid>
      <dc:creator />
      <dc:date>2012-01-23T15:09:47Z</dc:date>
    </item>
  </channel>
</rss>

