<?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: ODBC connection time out- reconnect in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ODBC-connection-time-out-reconnect/m-p/1143308#M374342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know the publisher but maybe there are further settings to ignore the errormode or not.&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, 26 Jul 2016 09:18:07 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-07-26T09:18:07Z</dc:date>
    <item>
      <title>ODBC connection time out- reconnect</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-connection-time-out-reconnect/m-p/1143305#M374339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qlikview application connects to DB via odbc connection. Sometimes it fails due to connection time out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to have a loop function in the script to try to connect and execute 'ODBC Connect' statement&amp;nbsp; until a successful connection is established?&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;&amp;lt;Update&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;I tried to execute the below code in my script to&amp;nbsp; have looping functionality for ODBC connection:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;//Script Begins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;Let vConnect=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;do while vConnect=1&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;ODBC Connect To testDB;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;If ScriptError=0 THEN&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;Let vConnect=2;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;Endif;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;loop;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;//Script Ends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;The above script works fine when I reload via Qlikview application instance- it tries to reload again and again until a successful connection is established.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;However, when the same script/application is reloaded via QMC(Qlikview Publisher), it tries to connect and if it fails the first time, the reload task doesn't try to connect again - do while.. loop is not executed.The job ends with 'Failed' status.&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;Is there a way to reload the task again in QMC until a connection is established, with this script or any other setting?&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;Note: There is a setting in Publisher to set 'Number of re-runs'. However, I don't want to limit the number of re-runs to a fixed value. I want it to be executed as many time as it takes, until a connection is created. I am trying to explore if anyone has tried anyother method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: prashanthi janakiraman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 03:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-connection-time-out-reconnect/m-p/1143305#M374339</guid>
      <dc:creator />
      <dc:date>2016-07-26T03:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC connection time out- reconnect</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-connection-time-out-reconnect/m-p/1143306#M374340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as the connect-statement returned an error you could react on them within if-loops by using &lt;A href="https://community.qlik.com/docs/DOC-3733"&gt;ErrorHandling in Qlikview&lt;/A&gt;.&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, 26 Jul 2016 07:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-connection-time-out-reconnect/m-p/1143306#M374340</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-07-26T07:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC connection time out- reconnect</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-connection-time-out-reconnect/m-p/1143307#M374341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;I tried to execute the below code in my script to&amp;nbsp; have looping functionality for ODBC connection:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;//Script Begins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;Let vConnect=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;do while vConnect=1&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;ODBC Connect To testDB;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;If ScriptError=0 THEN&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;Let vConnect=2;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;Endif;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;loop;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;//Script Ends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;The above script works fine when I reload via Qlikview application instance- it tries to reload again and again until a successful connection is established.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;However, when the same script/application is reloaded via QMC(Qlikview Publisher), it tries to connect and if it fails the first time, the reload task doesn't try to connect again - do while.. loop is not executed.The job ends with 'Failed' status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;Is there a way to reload the task again in QMC until a connection is established, with this script or any other setting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #737373; text-indent: 0px;"&gt;Note: There is a setting in Publisher to set 'Number of re-runs'. However, I don't want to limit the number of re-runs to a fixed value. I want it to be executed as many time as it takes, until a connection is created. I am trying to explore if anyone has tried anyother method? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 08:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-connection-time-out-reconnect/m-p/1143307#M374341</guid>
      <dc:creator />
      <dc:date>2016-07-26T08:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC connection time out- reconnect</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-connection-time-out-reconnect/m-p/1143308#M374342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know the publisher but maybe there are further settings to ignore the errormode or not.&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, 26 Jul 2016 09:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-connection-time-out-reconnect/m-p/1143308#M374342</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-07-26T09:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC connection time out- reconnect</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-connection-time-out-reconnect/m-p/1143309#M374343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added 'Set ErrorMode =0' statement in the beginning and it worked in QMC, further used the settings in publisher to limit run time, so it doesn't run infinitely in case the issue persists for a long time. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 07:02:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-connection-time-out-reconnect/m-p/1143309#M374343</guid>
      <dc:creator />
      <dc:date>2016-07-27T07:02:02Z</dc:date>
    </item>
  </channel>
</rss>

