<?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 ErrorCode.16 in mashups in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-ErrorCode-16-in-mashups/ta-p/1712889</link>
    <description>&lt;P&gt;The mashup page shows an extra element with error code 16.&lt;/P&gt;
&lt;P&gt;The app list is fetched correctly but the following error is shown directly in the HTML:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;ErrorDialog.Title&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;ErrorCode.16&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Common.Refresh&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Sample code:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;&amp;lt;script src="https://qlikserver1.domain.local/resources/assets/external/requirejs/require.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type="text/javascript"&amp;gt;

    //Read server connection
    var config = {
	host: "qlikserver1.domain.local",
	prefix: "/",
	port: 443,
	isSecure: true
	};

    //Start here.
    $(document).ready(function () {
        console.log("document ready -------------------");
        setupRequire()
    });

    function setupRequire() {

        require.config({
            baseUrl: ( config.isSecure ? "https://" : "http://" ) + config.host + (config.port ? ":" + config.port : "") + config.prefix + "resources"
	});

        require(["js/qlik"], function (qlik) {            

            try {
                qlik.getAppList(function(list){
                    console.log("received list");
                }, config);
            }
            catch(error) {
                console.error(error);
            }

        });   
    }

&amp;lt;/script&amp;gt;&lt;/PRE&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environments:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;In order to limit the number of WebSockets opened, Qlik Sense will close the WebSocket connection immediately after getting the app list, which is getting interpreted as an error.&lt;BR /&gt;&lt;BR /&gt;Use&amp;nbsp;app.global.getAppList(), which keeps the WebSocket open. app.global is intended to be used if there are several API calls that need to be done.&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;const global = qlik.getGlobal(...)
[...thousand of lines later....]
global.getAppList()&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;For the sample code mentioned above, it will look like this:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;require(["js/qlik"], function (qlik) {            

            try {
                qlik.getGlobal(config).getAppList(function(list){
                    console.log(list);
                });
            }
            catch(error) {
                console.error(error);
            }

        });&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jul 2021 07:58:43 GMT</pubDate>
    <dc:creator>Damien_V</dc:creator>
    <dc:date>2021-07-28T07:58:43Z</dc:date>
    <item>
      <title>Qlik Sense ErrorCode.16 in mashups</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-ErrorCode-16-in-mashups/ta-p/1712889</link>
      <description>&lt;P&gt;The mashup page shows an extra element with error code 16.&lt;/P&gt;
&lt;P&gt;The app list is fetched correctly but the following error is shown directly in the HTML:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;ErrorDialog.Title&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;ErrorCode.16&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Common.Refresh&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Sample code:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;&amp;lt;script src="https://qlikserver1.domain.local/resources/assets/external/requirejs/require.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type="text/javascript"&amp;gt;

    //Read server connection
    var config = {
	host: "qlikserver1.domain.local",
	prefix: "/",
	port: 443,
	isSecure: true
	};

    //Start here.
    $(document).ready(function () {
        console.log("document ready -------------------");
        setupRequire()
    });

    function setupRequire() {

        require.config({
            baseUrl: ( config.isSecure ? "https://" : "http://" ) + config.host + (config.port ? ":" + config.port : "") + config.prefix + "resources"
	});

        require(["js/qlik"], function (qlik) {            

            try {
                qlik.getAppList(function(list){
                    console.log("received list");
                }, config);
            }
            catch(error) {
                console.error(error);
            }

        });   
    }

&amp;lt;/script&amp;gt;&lt;/PRE&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environments:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;In order to limit the number of WebSockets opened, Qlik Sense will close the WebSocket connection immediately after getting the app list, which is getting interpreted as an error.&lt;BR /&gt;&lt;BR /&gt;Use&amp;nbsp;app.global.getAppList(), which keeps the WebSocket open. app.global is intended to be used if there are several API calls that need to be done.&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;const global = qlik.getGlobal(...)
[...thousand of lines later....]
global.getAppList()&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;For the sample code mentioned above, it will look like this:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;require(["js/qlik"], function (qlik) {            

            try {
                qlik.getGlobal(config).getAppList(function(list){
                    console.log(list);
                });
            }
            catch(error) {
                console.error(error);
            }

        });&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 07:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-ErrorCode-16-in-mashups/ta-p/1712889</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2021-07-28T07:58:43Z</dc:date>
    </item>
  </channel>
</rss>

