<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: QMS API GetDocumentTask returning null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QMS-API-GetDocumentTask-returning-null/m-p/1160267#M1252441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved. Was an issue with the tasks being empty on the server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2016 17:01:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-11T17:01:56Z</dc:date>
    <item>
      <title>QMS API GetDocumentTask returning null</title>
      <link>https://community.qlik.com/t5/QlikView/QMS-API-GetDocumentTask-returning-null/m-p/1160266#M1252439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been using the QMS API for a while now, and have previously been able to grab tasks with GetDocumentTask fine. For some reason yesterday GetDocumentTask started returning null on a server, I am able to connect to the server and generate a QMSClient object through that server, I am also able to generate a servicekey and functions such as GetServices and GetTasks work fine. For whatever reason when trying to generate a DocumentTask object with the GetDocumentTask function using an ID from one of the tasks in the list (GetTasks) and DocumentTaskScope.All, the method returns null. I have successfully accomplished this in the exact same way before, and it suddenly quit working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The log inside the QlikView server reports this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;20160809T123538.553-0700&amp;nbsp;&amp;nbsp;&amp;nbsp; Error&amp;nbsp;&amp;nbsp;&amp;nbsp; GetDocumentTask failed: Specified argument was out of the range of valid values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot figure out what has happened, all the qlikview services are started on the server, I also tried rebooting the server with no success. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code, successfully getting task infos, but failing to getdocumenttask (returns null)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IQMS apiClient = new QMSClient();&lt;/P&gt;&lt;P&gt;ServiceKeyClientMessageInspector.ServiceKey = apiClient.GetTimeLimitedServiceKey();;&lt;/P&gt;&lt;P&gt;List&amp;lt;ServiceInfo&amp;gt; serviceList = apiClient.GetServices(ServiceTypes.All).ToList();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;List&amp;lt;TaskInfo&amp;gt; taskInfoList = apiClient.GetTasks(serviceList[1].ID).ToList();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TaskInfo taskInfo = apiClient.GetTask(taskInfoList[0].ID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DocumentTask docTask = new DocumentTask();&lt;/P&gt;&lt;P&gt;docTask = apiClient.GetDocumentTask(taskInfoList[0].ID, DocumentTaskScope.All);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QMS-API-GetDocumentTask-returning-null/m-p/1160266#M1252439</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: QMS API GetDocumentTask returning null</title>
      <link>https://community.qlik.com/t5/QlikView/QMS-API-GetDocumentTask-returning-null/m-p/1160267#M1252441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved. Was an issue with the tasks being empty on the server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 17:01:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QMS-API-GetDocumentTask-returning-null/m-p/1160267#M1252441</guid>
      <dc:creator />
      <dc:date>2016-08-11T17:01:56Z</dc:date>
    </item>
  </channel>
</rss>

