Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
AG-gugelbisolutions
Creator II
Creator II

Engine API global.openDoc 'App already open' error

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.

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. 

Any ideas?

 

 

 

 

session.open().then((global) => {

console.log('Session was opened successfully');

global.openDoc(
'3304f560-7653-4515-a8d2-82b62ba533e8'
).catch((error)=>{
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) => {
console.log('An error occurred while opening Qlik Sense Engine session:', error);
process.exit(1);
});

 

 

 

 

 

Labels (2)
1 Solution

Accepted Solutions
AG-gugelbisolutions
Creator II
Creator II
Author

I think I found the solution, at least to this problem, thanks to this post.

Hope it helps.

View solution in original post

1 Reply
AG-gugelbisolutions
Creator II
Creator II
Author

I think I found the solution, at least to this problem, thanks to this post.

Hope it helps.