Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Highlighted
swarup_malli
Valued Contributor

Any ideas on what Status 1 ,Status 2 ....stands for ?QRS API

We are using Qlik Sense Repository Service API to get a state of a task using this endpoint /qrs/executionresult/full

Response from this request looks like this:

{ id: '28ac6482-f188-4180-9226-8a767836130f',

  createdDate: '2016-07-22T13:06:16.304Z',

  modifiedDate: '2016-07-22T13:06:17.241Z',

  modifiedByUserName:’..’,

  taskID: '38057f1e-788d-4100-98f7-cb26b0f1eff9',

  executionID: 'b77b9ed2-bb4c-43f0-a01b-dacc8446e966',

  appID: '74bbffdf-38d8-4f4e-854e-160ba6f4e12d',

  executingNodeID: '1cdff835-aaa5-4320-83f1-5a1fc00523de',

  executingNodeName: ‘….’,

status: 2,                                           <----------------------------------------------This is the field we are interested in

  startTime: '2016-07-22T13:06:16.288Z',

  stopTime: '1753-01-01T00:00:00.000Z',

  duration: 0,

  fileReferenceID: '00000000-0000-0000-0000-000000000000',

  scriptLogAvailable: false,

  details:

   [ { id: 'd1ff6ccb-d173-442b-9c08-509e513b3ad6',

       detailsType: 2,

       message: 'Changing task state to Triggered',

       detailCreatedDate: '2016-07-22T13:06:16.851Z',

       privileges: null

],

  privileges: null,

  schemaPath: 'ExecutionResult' }

We are interested in the status here. At this point status is 2 which we think means “In Progress” We know that the numeric status can go from 1-8

And we need to know what each number represents.

1 Reply
Employee
Employee

Re: Any ideas on what Status 1 ,Status 2 ....stands for ?QRS API

Hi,

please try to call 'Get enums API' to get more information about the number.

[Qlik Sense Repository Service API - Get enums]

http://help.qlik.com/en-US/sense-developer/3.2/Subsystems/RepositoryServiceAPI/Content/RepositorySer...

For example, we get a response as below.

----------

...

"StatusEnum":{"Values":["0: NeverStarted","1: Triggered","2: Started","3: Queued","4: AbortInitiated","5: Aborting","6: Aborted","7: FinishedSuccess","8: FinishedFail","9: Skipped","10: Retry","11: Error","12: Reset"],"Usages":["ExecutionResult.Status"]},

...

----------