<?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: Database Running Check? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Database-Running-Check/m-p/1461382#M436135</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. That's where I was headed, but was hoping QV had built in functionality. Here's what I came up with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// By default (ErrorMode=1) the script execution will halt and the user will be prompted for action&lt;/P&gt;&lt;P&gt;// (non-batch mode). By setting ErrorMode=0 QlikView will simply ignore the failure and continue script&lt;/P&gt;&lt;P&gt;// execution at the next script statement.&lt;/P&gt;&lt;P&gt;LET ScriptErrorCount = 0;&lt;/P&gt;&lt;P&gt;LET ScriptErrorList = '';&lt;/P&gt;&lt;P&gt;a=0&lt;/P&gt;&lt;P&gt;SET ErrorMode=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL Connectv7;&lt;/P&gt;&lt;P&gt;//&amp;nbsp; Check ScriptErrorCount for connection problems&lt;/P&gt;&lt;P&gt;DO WHILE a&amp;lt;60 and ScriptErrorCount &amp;gt; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET a=a+1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRACE &amp;gt;&amp;gt;&amp;gt; Connection attempt $(a) to v7 failed. Reason = $(ScriptErrorList);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;//&amp;nbsp; Reset ErrorCount and Information&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;LET ScriptErrorCount = 0;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;LET ScriptErrorList = '';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;CALL Connectv7;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;SLEEP 60 * 1000; // 60 Seconds&lt;/P&gt;&lt;P&gt;LOOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ScriptErrorCount &amp;gt; 0 THEN&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;TRACE &amp;gt;&amp;gt;&amp;gt; Exiting script after $(a) connectiion attempts to v7. $(ScriptErrorCount) $(ScriptErrorList);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;EXIT script;&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ErrorMode=1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jan 2018 18:55:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-09T18:55:19Z</dc:date>
    <item>
      <title>Database Running Check?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Running-Check/m-p/1461380#M436133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Does anyone know of functionality that will allow my extracts to immediately start once the databases are up? &lt;/SPAN&gt;We have a process that brings our database down and back up at different times anywhere from 5:30, to 6:00. Thus, I would like to schedule the extracts for 5:30, contingent on the databases being up. Some sort of functionality that "pings" the database every minute, and as soon as it's successful the extract starts? TIA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 14:02:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Running-Check/m-p/1461380#M436133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-09T14:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Database Running Check?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Running-Check/m-p/1461381#M436134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your used database-driver returned an error if the database isn't available then you could use a loop with a sleep-statement to trigger the call to each minute and the ERRORMODE to fetch the error itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 14:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Running-Check/m-p/1461381#M436134</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-01-09T14:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Database Running Check?</title>
      <link>https://community.qlik.com/t5/QlikView/Database-Running-Check/m-p/1461382#M436135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. That's where I was headed, but was hoping QV had built in functionality. Here's what I came up with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// By default (ErrorMode=1) the script execution will halt and the user will be prompted for action&lt;/P&gt;&lt;P&gt;// (non-batch mode). By setting ErrorMode=0 QlikView will simply ignore the failure and continue script&lt;/P&gt;&lt;P&gt;// execution at the next script statement.&lt;/P&gt;&lt;P&gt;LET ScriptErrorCount = 0;&lt;/P&gt;&lt;P&gt;LET ScriptErrorList = '';&lt;/P&gt;&lt;P&gt;a=0&lt;/P&gt;&lt;P&gt;SET ErrorMode=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL Connectv7;&lt;/P&gt;&lt;P&gt;//&amp;nbsp; Check ScriptErrorCount for connection problems&lt;/P&gt;&lt;P&gt;DO WHILE a&amp;lt;60 and ScriptErrorCount &amp;gt; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET a=a+1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRACE &amp;gt;&amp;gt;&amp;gt; Connection attempt $(a) to v7 failed. Reason = $(ScriptErrorList);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;//&amp;nbsp; Reset ErrorCount and Information&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;LET ScriptErrorCount = 0;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;LET ScriptErrorList = '';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;CALL Connectv7;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;SLEEP 60 * 1000; // 60 Seconds&lt;/P&gt;&lt;P&gt;LOOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ScriptErrorCount &amp;gt; 0 THEN&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;TRACE &amp;gt;&amp;gt;&amp;gt; Exiting script after $(a) connectiion attempts to v7. $(ScriptErrorCount) $(ScriptErrorList);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;EXIT script;&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ErrorMode=1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 18:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-Running-Check/m-p/1461382#M436135</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-09T18:55:19Z</dc:date>
    </item>
  </channel>
</rss>

