<?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: General script error handling in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/General-script-error-handling/m-p/675387#M245235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the variable ErrorMode you can first make sure that the script will not exit upon hitting on that error.&lt;/P&gt;&lt;P&gt;=&amp;gt; That will let you proceed, and you can use the variable ScriptErrorCount to determine whether or not your command has succeeded.&lt;/P&gt;&lt;P&gt;=&amp;gt; In case it hasn't because someone has it open, you could, like, take a timestamp and then make the script try again after a certain nr. of minutes has passed. Unfortunately there doesn't seem to be sth like a &amp;gt;Wait&amp;lt; function, but I'm sure that you can find a way to do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jul 2014 14:41:27 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2014-07-29T14:41:27Z</dc:date>
    <item>
      <title>General script error handling</title>
      <link>https://community.qlik.com/t5/QlikView/General-script-error-handling/m-p/675386#M245234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently outputting a table to a txt file on a network drive using the following command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store Table Into "\\Folder\File.csv" (txt);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine unless another user has the file open when the script runs (and therefore the script cannot write to the file), I get a general script error, and the script ends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would expect to be able to do is handle the error, but I can't; the script exits on the general script error without any opportunity to handle it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I resolve this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 14:29:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-script-error-handling/m-p/675386#M245234</guid>
      <dc:creator />
      <dc:date>2014-07-29T14:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: General script error handling</title>
      <link>https://community.qlik.com/t5/QlikView/General-script-error-handling/m-p/675387#M245235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the variable ErrorMode you can first make sure that the script will not exit upon hitting on that error.&lt;/P&gt;&lt;P&gt;=&amp;gt; That will let you proceed, and you can use the variable ScriptErrorCount to determine whether or not your command has succeeded.&lt;/P&gt;&lt;P&gt;=&amp;gt; In case it hasn't because someone has it open, you could, like, take a timestamp and then make the script try again after a certain nr. of minutes has passed. Unfortunately there doesn't seem to be sth like a &amp;gt;Wait&amp;lt; function, but I'm sure that you can find a way to do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 14:41:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-script-error-handling/m-p/675387#M245235</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-07-29T14:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: General script error handling</title>
      <link>https://community.qlik.com/t5/QlikView/General-script-error-handling/m-p/675388#M245236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - I have set the ErrorMode variable to ensure it doesn't exit; but it exits anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 15:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-script-error-handling/m-p/675388#M245236</guid>
      <dc:creator />
      <dc:date>2014-07-29T15:00:12Z</dc:date>
    </item>
  </channel>
</rss>

