<?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: global.openDoc in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-global-openDoc-App-already-open-error/m-p/1915768#M16580</link>
    <description>&lt;P&gt;I think I found the solution, at least to this problem, thanks to this &lt;A href="https://community.qlik.com/t5/Integration-Extension-APIs/App-already-open-error-in-Qlik-Sense-Engine-API/td-p/111381" target="_self"&gt;post&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 10:20:56 GMT</pubDate>
    <dc:creator>AG-gugelbisolutions</dc:creator>
    <dc:date>2022-04-07T10:20:56Z</dc:date>
    <item>
      <title>Engine API global.openDoc 'App already open' error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-global-openDoc-App-already-open-error/m-p/1915437#M16577</link>
      <description>&lt;P&gt;Hi there, I'm pretty new to Qlik Sense development involving APIs. In particolar, I'm using Qlik Engine JSON API, at this stage, to simply open a document for further elaborations. I also played with error handling in order to transform the "App already open" error to a simple string printed to the standard output.&lt;/P&gt;
&lt;P&gt;The point is that even changing the app ID to a wrong one, I continue to receive (and catch) the "App already open" error! How is this possible? I'm sure I'm getting something wrong.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;session.open().then((global) =&amp;gt; {

console.log('Session was opened successfully');

global.openDoc(
'3304f560-7653-4515-a8d2-82b62ba533e8'
).catch((error)=&amp;gt;{
if( error.message.includes("App already open") ) {
console.log('INFO: the app is already open'); 
} else {
console.log('An error occurred while opening Qlik Sense app:', error);
process.exit(1);
}
});

}).catch((error) =&amp;gt; {
console.log('An error occurred while opening Qlik Sense Engine session:', error);
process.exit(1);
});&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 13:51:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-global-openDoc-App-already-open-error/m-p/1915437#M16577</guid>
      <dc:creator>AG-gugelbisolutions</dc:creator>
      <dc:date>2022-11-01T13:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: global.openDoc</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-global-openDoc-App-already-open-error/m-p/1915768#M16580</link>
      <description>&lt;P&gt;I think I found the solution, at least to this problem, thanks to this &lt;A href="https://community.qlik.com/t5/Integration-Extension-APIs/App-already-open-error-in-Qlik-Sense-Engine-API/td-p/111381" target="_self"&gt;post&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 10:20:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Engine-API-global-openDoc-App-already-open-error/m-p/1915768#M16580</guid>
      <dc:creator>AG-gugelbisolutions</dc:creator>
      <dc:date>2022-04-07T10:20:56Z</dc:date>
    </item>
  </channel>
</rss>

