Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
jp_golay
Partner - Creator II
Partner - Creator II

App already open in different mode [LOCERR_APP_ALREADY_OPEN_IN_DIFFERENT_MODE]:

Hi,

We have this error in .NET Api

App already open in different mode [LOCERR_APP_ALREADY_OPEN_IN_DIFFERENT_MODE]:

We have opened the app without data, but we closed the app (app = null) how to open it back in with data mode?

It seem that app stays open somewhere

Thanks Jean-Philippe

ebiexperts CTO
With WIP, Control everything!
Qlik Sense, QlikView and NPrinting Source control, Versioning and Deployment, Agile Lifecycle Management
4 Replies
konrad_mattheis
Luminary Alumni
Luminary Alumni

Hi JP,

just to set that app to null, changes nothing on the engine side, because the websocket connection behind are not closed.

You can try to displose the hub / location and hope that the .net will close the connection.

What you can also do is to use the Logout API and than make a complete new connection to the hub.

bye Konrad

Alexander_Thor
Employee
Employee

And even if you close the websocket connection the Engine will keep the session alive until the timeout period hits before we dispose of your app from memory just in case you would connect again so we can preserve selection state.

If you can supply a "identity" param in the Location connection that will create a new engine session and you can then call openDoc again, this time with data.

jp_golay
Partner - Creator II
Partner - Creator II
Author

‌How can add the identity parameters I can't see it in the location properties

Thanks

ebiexperts CTO
With WIP, Control everything!
Qlik Sense, QlikView and NPrinting Source control, Versioning and Deployment, Agile Lifecycle Management
konrad_mattheis
Luminary Alumni
Luminary Alumni

Hi JP,

try again, with code:

ISession session = null;

if (EngineConnection.ExtraSession)

    session = Session.Random;

else

    session = Session.WithApp(appIdentifier, SessionType.Default);

   

var hub = CurrentLocation.Hub(session, true); 

If you use the first Path with session = Session.Random, you should get a new session.

bye Konrad