Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.
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);
});
I think I found the solution, at least to this problem, thanks to this post.
Hope it helps.
I think I found the solution, at least to this problem, thanks to this post.
Hope it helps.