<?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 Cannot read property 'setOnError' of undefined error within Mashup in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Cannot-read-property-setOnError-of-undefined-error-within-Mashup/m-p/1552170#M10113</link>
    <description>&lt;P&gt;Hello, everyone. I am trying to put the created mashup to the external server and constantly meeting "Cannot read property 'setOnError' of undefined" error.&lt;/P&gt;&lt;P&gt;I have changed the direct link to the qlik requirejs and it seems to read it, however, there is always an error of undefined and qlik objects are not loading.&amp;nbsp; I thought that the problem is that it can't get access to qlik.js or other necessary js and tried to include it inside the js file by paths, it doesn't help. Maybe the problem is the order of accessing require js?&lt;/P&gt;&lt;P&gt;What can be the problem, please?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;below is the part of the js code&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;require.config({
	baseUrl: (config.isSecure ? "https://" : "http://" ) + config.host + (config.port ? ":" + config.port : "" ) + config.prefix + "resources",
    
    paths: {
        productinfo: 'https://server/resources/autogenerated/product-info',
        qlik: 'https://server/resources/js/qlik',
        client: 'https://server/resources/translate/en-US/client',
        common: 'https://server/resources/translate/en-US/common',
        devhub: 'https://server/resources/translate/en-US/devhub',
        engine: 'https://server/resources/translate/en-US/engine',
        single: 'https://server/resources/js/single'
    },

    waitSeconds: 10000
});

require(["js/qlik"], function (qlik) {
    window.qlik = qlik;

    qlik.setOnError(function (error) {
        console.log(error);
    });&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2019 07:49:54 GMT</pubDate>
    <dc:creator>zyevniyeva</dc:creator>
    <dc:date>2019-03-05T07:49:54Z</dc:date>
    <item>
      <title>Cannot read property 'setOnError' of undefined error within Mashup</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Cannot-read-property-setOnError-of-undefined-error-within-Mashup/m-p/1552170#M10113</link>
      <description>&lt;P&gt;Hello, everyone. I am trying to put the created mashup to the external server and constantly meeting "Cannot read property 'setOnError' of undefined" error.&lt;/P&gt;&lt;P&gt;I have changed the direct link to the qlik requirejs and it seems to read it, however, there is always an error of undefined and qlik objects are not loading.&amp;nbsp; I thought that the problem is that it can't get access to qlik.js or other necessary js and tried to include it inside the js file by paths, it doesn't help. Maybe the problem is the order of accessing require js?&lt;/P&gt;&lt;P&gt;What can be the problem, please?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;below is the part of the js code&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;require.config({
	baseUrl: (config.isSecure ? "https://" : "http://" ) + config.host + (config.port ? ":" + config.port : "" ) + config.prefix + "resources",
    
    paths: {
        productinfo: 'https://server/resources/autogenerated/product-info',
        qlik: 'https://server/resources/js/qlik',
        client: 'https://server/resources/translate/en-US/client',
        common: 'https://server/resources/translate/en-US/common',
        devhub: 'https://server/resources/translate/en-US/devhub',
        engine: 'https://server/resources/translate/en-US/engine',
        single: 'https://server/resources/js/single'
    },

    waitSeconds: 10000
});

require(["js/qlik"], function (qlik) {
    window.qlik = qlik;

    qlik.setOnError(function (error) {
        console.log(error);
    });&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 07:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Cannot-read-property-setOnError-of-undefined-error-within-Mashup/m-p/1552170#M10113</guid>
      <dc:creator>zyevniyeva</dc:creator>
      <dc:date>2019-03-05T07:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read property 'setOnError' of undefined error within Mashup</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Cannot-read-property-setOnError-of-undefined-error-within-Mashup/m-p/1817591#M15153</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/11602"&gt;@zyevniyeva&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm facing same issue. did you found the any solution for this?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 10:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Cannot-read-property-setOnError-of-undefined-error-within-Mashup/m-p/1817591#M15153</guid>
      <dc:creator>Manoj_Prabu</dc:creator>
      <dc:date>2021-06-24T10:38:33Z</dc:date>
    </item>
  </channel>
</rss>

