Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Qlik Sense - Qlik Engine API : {"jsonrpc":"2.0","change":[1,2],"suspend":[1]}

Hello,

After a GetObject or a GetProperties using Qlik Engine API, we received this answer :
                             {"jsonrpc":"2.0","change":[1,2],"suspend":[1]}


Does anyone know the meaning of this answer?
It's not a result answer, not an error answer. Nothing in the help about this.


Thanks a lot.

Best regards.


Jean-Michel.

4 Replies
ErikWetterberg

Hi,

Some info about the profil is here: Qlik Engine API ‒ Qlik Sense

change: [1,2] means that objects with handle 1 and 2 are invalid. 1 is usually the app.

If there is no Id in the package it means that it is not a reply but a notification. Is there another process working with the app? Perhaps a reload? That might explain 'suspend' that I have never seen before and seems undocumented.

Hope this helps

Erik Wetterberg

Anonymous
Not applicable
Author

Thanks Erik.

ErikWetterberg

The part about notifications is actually in the jsonrpc spec, section 4.1 (it's not a long spec).

Note that a lot of fields, like handle, change, suspend (and also delta) are not covered by jsonrpc.

Erik

Firefly_cam
Partner - Contributor III
Partner - Contributor III

This is a notification from Qlik and usually happening when the app is refreshed and saved while you have active websocket.

To pick up the right response you can check the next message from websocket or re-execute.
Also you need to throw a the Doc.Resume method to bypass this safely and continue working

Regards, Roman