Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

'App already open' error in Qlik Sense Engine API

We are trying to fetch Qlik Sense object level information using Engine APIs with Java websockets. We are able to make connection to qlik server and get list of all App ids. But when we try to get sheet level information(thro opendoc and getlayout methods) for all apps fetched, code gets stuck to first app and doesn’t give sheet level information for other apps giving error “App already open”. Looks like we need to disconnect the first app after fetching sheet level information and then move to next app. Issue is that there is no direct way to disconnect an app which is open using Engine APIs. If you have any idea how to resolve this issue then please let us know.

11 Replies
SaturnV
Partner - Contributor III
Partner - Contributor III

I think this is a good idea.

But which cookie do I append? I only have the response you can see 3 posts above.

Øystein_Kolsrud
Employee
Employee

It would depend on how you are doing the handshake. One option is to do an http request to get the cookie then put that cookie in the session container. Here's an example showing such a flow with the .NET SDK:

https://github.com/AptkQlik/PublicExamples/tree/master/ConnectServerTicketAttach

First the session is created and cookie collected here:

https://github.com/AptkQlik/PublicExamples/blob/master/ConnectServerTicketAttach/Program.cs#L50

Then it is fed in as a parameter when configuring the authentication here:

https://github.com/AptkQlik/PublicExamples/blob/master/ConnectServerTicketAttach/Program.cs#L63