<?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 Trapping &amp;quot;System error:***&amp;quot; in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Trapping-quot-System-error-quot/m-p/1520631#M62612</link>
    <description>&lt;P&gt;I believe what is happening is that more than one Application is loading/writing to the same Folder Connection. It is not the same file; so maybe Qlik Sense treats a Folder Connection as single use?&lt;/P&gt;&lt;P&gt;I put&amp;nbsp; code into my load script to attempt to wait for the "lock" to be released; below is an excerpt of the log. You can see that the error occurs and the script continues with ErrorMode=0, however ScriptError is null so it's as if there isn't an error.&lt;/P&gt;&lt;P&gt;Any other variable to check? Any other way to handle this error? Do we really need unique connections to a folder? We are storing several qvd in a folder for a foundation of several applications to minimize retrieval from the databases.&lt;/P&gt;&lt;PRE&gt;2018-12-13 13:07:52 0055 SET ErrorMode=0
2018-12-13 13:07:52 0056 SET LoopCnt=1
2018-12-13 13:07:52 0058 DO
2018-12-13 13:07:52 0060 STORE [Provider] INTO LIB://qvd/PROVIDER.qvd (qvd)
2018-12-13 13:08:02 Error: Cannot open file: 'LIB://qvd/PROVIDER.qvd' (Native Path: ***
2018-12-13 13:08:02 System error: ***)
2018-12-13 13:08:02 0065 If LoopCnt=5 then
2018-12-13 13:08:02 0069 LET msg = 'Error: ' &amp;amp; ScriptError &amp;amp; ' - Loop: ' &amp;amp; LoopCnt
2018-12-13 13:08:02 0070 Trace Error: - Loop: 1
2018-12-13 13:08:02 0070 Error: - Loop: 1
2018-12-13 13:08:02 0071 
2018-12-13 13:08:02 0073 Sleep 10000
2018-12-13 13:08:12 0074 LET LoopCnt = LoopCnt +1
2018-12-13 13:08:12 0076 LOOP UNTIL ScriptError=0
2018-12-13 13:08:12 0079 SET ErrorMode=1&lt;/PRE&gt;&lt;P&gt;Please and Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 02 Apr 2021 07:43:41 GMT</pubDate>
    <dc:creator>dwforest</dc:creator>
    <dc:date>2021-04-02T07:43:41Z</dc:date>
    <item>
      <title>Trapping "System error:***"</title>
      <link>https://community.qlik.com/t5/App-Development/Trapping-quot-System-error-quot/m-p/1520631#M62612</link>
      <description>&lt;P&gt;I believe what is happening is that more than one Application is loading/writing to the same Folder Connection. It is not the same file; so maybe Qlik Sense treats a Folder Connection as single use?&lt;/P&gt;&lt;P&gt;I put&amp;nbsp; code into my load script to attempt to wait for the "lock" to be released; below is an excerpt of the log. You can see that the error occurs and the script continues with ErrorMode=0, however ScriptError is null so it's as if there isn't an error.&lt;/P&gt;&lt;P&gt;Any other variable to check? Any other way to handle this error? Do we really need unique connections to a folder? We are storing several qvd in a folder for a foundation of several applications to minimize retrieval from the databases.&lt;/P&gt;&lt;PRE&gt;2018-12-13 13:07:52 0055 SET ErrorMode=0
2018-12-13 13:07:52 0056 SET LoopCnt=1
2018-12-13 13:07:52 0058 DO
2018-12-13 13:07:52 0060 STORE [Provider] INTO LIB://qvd/PROVIDER.qvd (qvd)
2018-12-13 13:08:02 Error: Cannot open file: 'LIB://qvd/PROVIDER.qvd' (Native Path: ***
2018-12-13 13:08:02 System error: ***)
2018-12-13 13:08:02 0065 If LoopCnt=5 then
2018-12-13 13:08:02 0069 LET msg = 'Error: ' &amp;amp; ScriptError &amp;amp; ' - Loop: ' &amp;amp; LoopCnt
2018-12-13 13:08:02 0070 Trace Error: - Loop: 1
2018-12-13 13:08:02 0070 Error: - Loop: 1
2018-12-13 13:08:02 0071 
2018-12-13 13:08:02 0073 Sleep 10000
2018-12-13 13:08:12 0074 LET LoopCnt = LoopCnt +1
2018-12-13 13:08:12 0076 LOOP UNTIL ScriptError=0
2018-12-13 13:08:12 0079 SET ErrorMode=1&lt;/PRE&gt;&lt;P&gt;Please and Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 07:43:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trapping-quot-System-error-quot/m-p/1520631#M62612</guid>
      <dc:creator>dwforest</dc:creator>
      <dc:date>2021-04-02T07:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Trapping "System error:***"</title>
      <link>https://community.qlik.com/t5/App-Development/Trapping-quot-System-error-quot/m-p/1523122#M62613</link>
      <description>Update, changing the test to ScriptErrorCount&amp;lt;&amp;gt;0 works for catching the error, but still running into an issue writing the QVD.&lt;BR /&gt;Is there a way to test for file lock rather than just adding an arbitrary wait?</description>
      <pubDate>Thu, 20 Dec 2018 16:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trapping-quot-System-error-quot/m-p/1523122#M62613</guid>
      <dc:creator>dwforest</dc:creator>
      <dc:date>2018-12-20T16:27:14Z</dc:date>
    </item>
  </channel>
</rss>

