Qlik Community

QlikView Publisher

Discussion Board for collaboration on QlikView Publisher.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Not applicable

QMS GetTaskStatus returns null

Hi there,

I'm using the QMS API to get the task status - it works fine for DocumentTasks:

   TaskInfo task = client.FindTask(distService.ID, TaskType.DocumentTask , "Some DocumentTask");

   TaskStatus status = client.GetTaskStatus(task.ID, TaskStatusScope.All);

When I do the same for ExternalProgramTask or DBCommandTask the GetTaskStatus-Method returns null:


   TaskInfo task = client.FindTask(distService.ID, TaskType.DBCommandTask , "My DB Command Task");

           --> returns a valid task.ID


   TaskStatus status = client.GetTaskStatus(task.ID, TaskStatusScope.All);

         --> returns status == null

 

How do I get the task status of a Non-DocumentTask via QMS API?               

Regards

Stefan

Tags (2)