Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

applypatches method not working

Hi Community,

I'm using Engine API Explorer. I'd like to set qStateName of a pane filter object, equal to "S1", already defined for Doc.

I'm using ApplyPatches method to set this value but always return the following error:

"error": {

  "code": 8,

  "parameter": "Patch value not on valid JSON format.",

  "message": "Invalid parameters"

I've already seen  Qlik Sense 2.1 Engine API; AddAlternateState me... | Qlik Community‌ and I've already tried using \" and '. I attach the request script:

{

  "handle": 2,

  "method": "ApplyPatches",

  "params": {

  "qPatches": [

  {

  "qOp": "add",

  "qPath": "/qListObjectDef/qStateName",

  "qValue": "S1"

  }

  ],

  "qSoftPatch": false

  }

}

Any suggestion?

Thanks so much in advance.

IB

1 Reply
Anonymous
Not applicable
Author

Looking back, I notice Doc's state is always invalid and every change I try to make to the Doc, such as creating a sheet, result null: "No available sheets" is the message I receive when I open the app (sheets previously created temporarily disappear!).

Why that? I find Invalid state either in Desktop and Server...