Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

swarup_malli
Valued Contributor

Not able to start a task via QRS. Error that we’re getting is: Cannot find a task with the following name

We’re trying to use QRS to start a job. We’re authenticating using certificates which are assigned to a particular machine and user.

This is the config that we’re using:

var config = {
authentication: 'certificates',
host: '....',
useSSL: true,
cert: 'client.pem',
key: 'client_key.pem',
ca: 'root.pem',
port: 4242,
headerKey: 'X-Qlik-User',
headerValue: 'UserDirectory=Internal;UserId=....'
};

We tried doing POST requests to these end points:

/qrs/task/ <task id>/start

/qrs/task/start/synchronous/?name=…&xrfkey=ABCDEFG123456789

But the result is similar to this one.

"statusCode": 400,

    "body": "Cannot find a task with the following nameSmiley FrustratedomeAPP_Dev",

    "headers": {

      "cache-control": "private, must-revalidate, max-age=0",

"transfer-encoding": "chunked",

      "expires": "Tue, 12 Jul 2016 19:36:38 GMT",

      "server": "Repository API REST Server/2.2.4.0 Microsoft-HTTPAPI/2.0",

      "date": "Tue, 12 Jul 2016 19:36:37 GMT",

      "connection": "close"

    },

Tags (3)
1 Solution

Accepted Solutions
jvi
New Contributor II

Re: Not able to start a task via QRS. Error that we’re getting is: Cannot find a task with the following name

Did you try with UserID=sa_repository

2 Replies
jvi
New Contributor II

Re: Not able to start a task via QRS. Error that we’re getting is: Cannot find a task with the following name

Did you try with UserID=sa_repository

swarup_malli
Valued Contributor

Re: Not able to start a task via QRS. Error that we’re getting is: Cannot find a task with the following name

Thank you Jacob! its working

Community Browser