Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Not applicable

Engine API - openDoc returning error

Hi,

I'm getting an error, code 1002, message 'App already open' when I do the following:

  1. Send an 'openDoc' request for 'App A'.  This works.
  2. Send an 'openDoc' request for 'App B'.  This returns an error.

I am using the Desktop version, and I'm communicating using the web socket endpoint of ws://localhost:4848/app/

I have noticed that the protocol tester, which now supports opening multiple apps, communicates not with ws://localhost:4848/app, but with ws://localhost:4848/app/AppName.qvf.

What should the URL be for a server environment?  ws://server/app/AppGuid    ?

I'm yet to try it, but I haven't found information about this anywhere, so hoping this could help others.

Thanks,

Shane.

Tags (2)
1 Solution

Accepted Solutions
Not applicable

Re: Engine API - openDoc returning error

Hi Shane,

The reason that you are getting app already open is becase you already have 'App A' opened.

You can use ws://localhost:4848/app/AppName.qvf to directly open an app (on server ws://server/app/AppGuidOrName).

Best Regard

Lars-Göran Book

3 Replies
Not applicable

Re: Engine API - openDoc returning error

Hi Shane,

The reason that you are getting app already open is becase you already have 'App A' opened.

You can use ws://localhost:4848/app/AppName.qvf to directly open an app (on server ws://server/app/AppGuidOrName).

Best Regard

Lars-Göran Book

Not applicable

Re: Engine API - openDoc returning error

Hi,

thanks - so this implies that for the the endpoint (without a specific app name or guid), only one app can be opened, and once that's opened, you can't open another. 

The error message is not as clear as it could be IMHO, perhaps it could say something like:

"An app has already been opened"

Regards,

Shane.

chkiriti
New Contributor II

Re: Engine API - openDoc returning error

Hi,

I have the same issue. Can you also please share the solution technically how to resolve it?

Thanks,

Kiriti