<?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>article Qlik Sense: fail-and-retry connection sample script in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-fail-and-retry-connection-sample-script/ta-p/1710508</link>
    <description>&lt;P&gt;When connecting to a data connection, the developer may want to set up fail-and-retry logic. When the main connection fails, a backup connection is used.&lt;/P&gt;
&lt;P&gt;How to achieve it?&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;Setting&amp;nbsp;&lt;FONT face="courier new,courier"&gt;errormode&lt;/FONT&gt; to &lt;FONT face="courier new,courier"&gt;0&lt;/FONT&gt; can force the script to continue after a failure.&lt;/P&gt;
&lt;P&gt;The code will look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;//Suppress reload failure in case of connection failure
Set errormode = 0;
//Connect to the main Connection
LIB CONNECT TO 'MainConnection';
//Evaluate error code
LET tempErrorDetails = ScriptErrorDetails;
IF Len(tempErrorDetails) &amp;gt; 0 THEN
    // If there is an error connecting to this connection
   trace ERROR: $(tempErrorDetails);
   LIB CONNECT TO 'backupConnection';
End If
//Resume error mode
Set errormode = 1;
// Load Script Start
// Load Script End
// Disconnect
DisConnect;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sample QVF is also attached. Please modify the sample code in it accordingly before using.&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2022 19:23:50 GMT</pubDate>
    <dc:creator>Andre_Sostizzo</dc:creator>
    <dc:date>2022-05-10T19:23:50Z</dc:date>
    <item>
      <title>Qlik Sense: fail-and-retry connection sample script</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-fail-and-retry-connection-sample-script/ta-p/1710508</link>
      <description>&lt;P&gt;When connecting to a data connection, the developer may want to set up fail-and-retry logic. When the main connection fails, a backup connection is used.&lt;/P&gt;
&lt;P&gt;How to achieve it?&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;Setting&amp;nbsp;&lt;FONT face="courier new,courier"&gt;errormode&lt;/FONT&gt; to &lt;FONT face="courier new,courier"&gt;0&lt;/FONT&gt; can force the script to continue after a failure.&lt;/P&gt;
&lt;P&gt;The code will look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;//Suppress reload failure in case of connection failure
Set errormode = 0;
//Connect to the main Connection
LIB CONNECT TO 'MainConnection';
//Evaluate error code
LET tempErrorDetails = ScriptErrorDetails;
IF Len(tempErrorDetails) &amp;gt; 0 THEN
    // If there is an error connecting to this connection
   trace ERROR: $(tempErrorDetails);
   LIB CONNECT TO 'backupConnection';
End If
//Resume error mode
Set errormode = 1;
// Load Script Start
// Load Script End
// Disconnect
DisConnect;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sample QVF is also attached. Please modify the sample code in it accordingly before using.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 19:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-fail-and-retry-connection-sample-script/ta-p/1710508</guid>
      <dc:creator>Andre_Sostizzo</dc:creator>
      <dc:date>2022-05-10T19:23:50Z</dc:date>
    </item>
  </channel>
</rss>

