<?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 Connector - Http Status Codes in Variable in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-Http-Status-Codes-in-Variable/m-p/1330488#M2785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to get the HTTP Status code from a API request with the Qlik REST Connector?&lt;/P&gt;&lt;P&gt;I want to have the status 200, 204 or 206 from my API Datasource, as long as I got a 206 (Partial) there is more data available, so I have to page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR Jochem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Apr 2017 21:00:25 GMT</pubDate>
    <dc:creator>jochem_zw</dc:creator>
    <dc:date>2017-04-17T21:00:25Z</dc:date>
    <item>
      <title>REST Connector - Http Status Codes in Variable</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-Http-Status-Codes-in-Variable/m-p/1330488#M2785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to get the HTTP Status code from a API request with the Qlik REST Connector?&lt;/P&gt;&lt;P&gt;I want to have the status 200, 204 or 206 from my API Datasource, as long as I got a 206 (Partial) there is more data available, so I have to page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR Jochem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 21:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-Http-Status-Codes-in-Variable/m-p/1330488#M2785</guid>
      <dc:creator>jochem_zw</dc:creator>
      <dc:date>2017-04-17T21:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: REST Connector - Http Status Codes in Variable</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-Http-Status-Codes-in-Variable/m-p/1330489#M2786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jochem,&lt;/P&gt;&lt;P&gt;I'm using ScriptErrorDetails in my script and searches for '404' to stop loading. You should be able to do something similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ErrorMode = 0;&lt;/P&gt;&lt;P&gt;Do&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&amp;lt;something&amp;gt;&lt;/P&gt;&lt;P&gt;FROM &amp;lt;something&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vContinueLoad = SubStringCount('$(ScriptErrorDetails)','206');&lt;/P&gt;&lt;P&gt;exit do when &lt;SPAN style="font-size: 13.3333px;"&gt;vContinueLoad &lt;/SPAN&gt; &amp;lt;&amp;gt; 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like that might do the trick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2017 08:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-Http-Status-Codes-in-Variable/m-p/1330489#M2786</guid>
      <dc:creator>Bjorn_Wedbratt</dc:creator>
      <dc:date>2017-04-18T08:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: REST Connector - Http Status Codes in Variable</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-Http-Status-Codes-in-Variable/m-p/1330490#M2787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like to use it in the 'WITH CONNECTION' part of the script&lt;/P&gt;&lt;P&gt;I already tried the errormode, but there is no error coming from the 'WITH CONNECTION'&lt;/P&gt;&lt;P&gt;So ScriptErrorDetails stays &amp;lt;NULL&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I get a 206 means there is more data available from the REST API so I would like to take the next 100 (page_size).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2017 08:53:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-Http-Status-Codes-in-Variable/m-p/1330490#M2787</guid>
      <dc:creator>jochem_zw</dc:creator>
      <dc:date>2017-04-18T08:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: REST Connector - Http Status Codes in Variable</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-Http-Status-Codes-in-Variable/m-p/1556355#M3707</link>
      <description>Did you manage to solve this?</description>
      <pubDate>Thu, 14 Mar 2019 07:36:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-Http-Status-Codes-in-Variable/m-p/1556355#M3707</guid>
      <dc:creator>celindho</dc:creator>
      <dc:date>2019-03-14T07:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: REST Connector - Http Status Codes in Variable</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-Http-Status-Codes-in-Variable/m-p/1844502#M9635</link>
      <description>&lt;P&gt;My script was exiting without saving when HTTP Error 416 was returned, and that is when I know the system is making a call beyond last page. So I just did&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SET ErrorMode = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Before loading part and I just ignore the errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what's the proper way of telling:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF HTTP Error = 416 THEN STOP&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 17:06:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-Http-Status-Codes-in-Variable/m-p/1844502#M9635</guid>
      <dc:creator>Josh-Head-of-BI-HGreg</dc:creator>
      <dc:date>2021-10-09T17:06:39Z</dc:date>
    </item>
  </channel>
</rss>

