<?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 REST API data connection error handling so the script will continue in case of error in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/REST-API-data-connection-error-handling-so-the-script-will/m-p/1672186#M50848</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;in my load script we are pulling data from many connections,&amp;nbsp;&lt;/P&gt;&lt;P&gt;one of the connections is REST API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when the RESP API get error 400,500 etc.. the script fails.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. how can i make the script continue even if the API failed?&lt;/P&gt;&lt;P&gt;2. or better is there error handling i can do? like try and catch?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 19:10:52 GMT</pubDate>
    <dc:creator>gal_polak</dc:creator>
    <dc:date>2024-11-16T19:10:52Z</dc:date>
    <item>
      <title>REST API data connection error handling so the script will continue in case of error</title>
      <link>https://community.qlik.com/t5/App-Development/REST-API-data-connection-error-handling-so-the-script-will/m-p/1672186#M50848</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;in my load script we are pulling data from many connections,&amp;nbsp;&lt;/P&gt;&lt;P&gt;one of the connections is REST API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when the RESP API get error 400,500 etc.. the script fails.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. how can i make the script continue even if the API failed?&lt;/P&gt;&lt;P&gt;2. or better is there error handling i can do? like try and catch?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/REST-API-data-connection-error-handling-so-the-script-will/m-p/1672186#M50848</guid>
      <dc:creator>gal_polak</dc:creator>
      <dc:date>2024-11-16T19:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: REST API data connection error handling so the script will continue in case of error</title>
      <link>https://community.qlik.com/t5/App-Development/REST-API-data-connection-error-handling-so-the-script-will/m-p/1672256#M50858</link>
      <description>&lt;P&gt;You can use&amp;nbsp;ErrorMode; you could set it to 0 before that specific load and back to 1 after&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/November2019/Subsystems/Hub/Content/Sense_Hub/Scripting/ErrorVariables/ErrorMode.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense/November2019/Subsystems/Hub/Content/Sense_Hub/Scripting/ErrorVariables/ErrorMode.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Argument Description&lt;/P&gt;&lt;TABLE cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN class="statement"&gt;ErrorMode=1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;The default setting. The script execution will halt and the user will be prompted for action (non-batch mode).&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN class="statement"&gt;ErrorMode =0&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN class="CommonComponentsQlik Sense"&gt;Qlik Sense&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;will simply ignore the failure and continue script execution at the next script statement.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN class="statement"&gt;ErrorMode =2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN class="CommonComponentsQlik Sense"&gt;Qlik Sense&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;will trigger an "Execution of script failed..." error message immediately on failure, without prompting the user for action beforehand.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 04 Feb 2020 17:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/REST-API-data-connection-error-handling-so-the-script-will/m-p/1672256#M50858</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2020-02-04T17:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: REST API data connection error handling so the script will continue in case of error</title>
      <link>https://community.qlik.com/t5/App-Development/REST-API-data-connection-error-handling-so-the-script-will/m-p/1672261#M50859</link>
      <description>&lt;P&gt;thx!&lt;/P&gt;&lt;P&gt;i see it lets me continue,&amp;nbsp;&lt;/P&gt;&lt;P&gt;do you know a way also to catch the specific error that i get?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 17:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/REST-API-data-connection-error-handling-so-the-script-will/m-p/1672261#M50859</guid>
      <dc:creator>gal_polak</dc:creator>
      <dc:date>2020-02-04T17:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: REST API data connection error handling so the script will continue in case of error</title>
      <link>https://community.qlik.com/t5/App-Development/REST-API-data-connection-error-handling-so-the-script-will/m-p/1672296#M50866</link>
      <description>&lt;P&gt;Have a look at this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/November2019/Subsystems/Hub/Content/Sense_Hub/Scripting/ErrorVariables/ScriptErrorList.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/November2019/Subsystems/Hub/Content/Sense_Hub/Scripting/ErrorVariables/ScriptErrorList.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 20:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/REST-API-data-connection-error-handling-so-the-script-will/m-p/1672296#M50866</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2020-02-04T20:28:28Z</dc:date>
    </item>
  </channel>
</rss>

