Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
swarup_malli
Specialist
Specialist

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 name:SomeAPP_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"

    },

1 Solution

Accepted Solutions
jvi
Employee
Employee

Did you try with UserID=sa_repository

View solution in original post

2 Replies
jvi
Employee
Employee

Did you try with UserID=sa_repository

swarup_malli
Specialist
Specialist
Author

Thank you Jacob! its working