<?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: Error from Engine (showDialog) - Cannot read property 'then' of undefined. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Error-from-Engine-showDialog-Cannot-read-property-then-of/m-p/1266981#M25982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;Root Cause: Bug QLIK-71126 Solution: Version 3.1 SR5 has the error message and returns the right data.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Feb 2017 19:06:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-02-20T19:06:13Z</dc:date>
    <item>
      <title>Error from Engine (showDialog) - Cannot read property 'then' of undefined.</title>
      <link>https://community.qlik.com/t5/App-Development/Error-from-Engine-showDialog-Cannot-read-property-then-of/m-p/1266980#M25981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a potential bug with Qlik Engine error handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is when an error occurs in the Qlik engine such as "Error code: 5 (Access Denied), it is followed by an exception from within require.js.&amp;nbsp; Instead of showing an error dialog, this leaves our iframe blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can code around this on non-single object apps by binding a function to the qlikApp.model.session.Error, and handling the error on our own, but when loading a single app in an iframe we are unable to because of cross-domain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a screenshot of the errors from console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Console log displays the EXPECTED error due to Section Access, but it appears to error when trying to display the error dialog (showDialog):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error from Engine: Object error: Object code: 5 message: "Access denied"parameter: ""__proto__: Object__defineGetter__: __defineGetter__()__defineSetter__: __defineSetter__()__lookupGetter__: __lookupGetter__()__lookupSetter__: __lookupSetter__()constructor: Object()hasOwnProperty: hasOwnProperty()isPrototypeOf: isPrototypeOf()propertyIsEnumerable: propertyIsEnumerable()toLocaleString: toLocaleString()toString: toString()valueOf: valueOf()get __proto__: __proto__()set __proto__: __proto__()id: 1 jsonrpc: "2.0"__proto__: Object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;TypeError: Cannot read property 'then' of undefined&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Object.get (single.js??1481126454213:formatted:14813)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Object.j [as showDialog] (single.js??1481126454213:formatted:14847)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at single.js??1481126454213:formatted:17685&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at g (require.js?1481126454213:formatted:9452)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at require.js?1481126454213:formatted:9462&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at o.$eval (require.js?1481126454213:formatted:9947)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at o.$digest (require.js?1481126454213:formatted:9875)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at require.js?1481126454213:formatted:9951&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at f (require.js?1481126454213:formatted:6810)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at require.js?1481126454213:formatted:6922&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 15:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-from-Engine-showDialog-Cannot-read-property-then-of/m-p/1266980#M25981</guid>
      <dc:creator />
      <dc:date>2017-01-31T15:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error from Engine (showDialog) - Cannot read property 'then' of undefined.</title>
      <link>https://community.qlik.com/t5/App-Development/Error-from-Engine-showDialog-Cannot-read-property-then-of/m-p/1266981#M25982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: arial, verdana, sans-serif; font-size: 13px;"&gt;Root Cause: Bug QLIK-71126 Solution: Version 3.1 SR5 has the error message and returns the right data.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 19:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-from-Engine-showDialog-Cannot-read-property-then-of/m-p/1266981#M25982</guid>
      <dc:creator />
      <dc:date>2017-02-20T19:06:13Z</dc:date>
    </item>
  </channel>
</rss>

