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: 
gladi-cz
Creator
Creator

QS API

Hello guys,

i have got a issue with QS API. Method CopyApp does't work in my js file nor in QS the dev-hub.

Everytime i get response from QS API with error code -32601.

Do you know, where is mistake?

Below you can se request and response with error.

Thanks,

Petr

______________________________

Request:

{

"handle": -1,

"method": "CopyApp",

"params": {

"qTargetAppId": "MESTech01.qvf",

"qSrcAppId": "MEStemplate.qvf",

"qIds": [

""

]

},

"outKey": -1,

"id": 4

}

Response from API:

{

"jsonrpc": "2.0",

"id": 4,

"error": {

"code": -32601,

"parameter": "CopyApp",

"message": "Method not found"

},

"isHandled": true

}

1 Solution

Accepted Solutions
ErikWetterberg

Just a detail:

"qIds": [

""

]

That is an array with an empty string. You probably should not send that, en empty array would be better:

"qIds": []

Though I don't think that is the problem. Looks more like engine does not find one of the apps.

Erik


View solution in original post

7 Replies
gladi-cz
Creator
Creator
Author

Could you check the issue, Michael? mto‌ 

It is example created on QS desktop September, but on Enterprise version i get same issue.

Thanks,Petr

ErikWetterberg

According to the documentation CopyApp method ‒ Qlik Sense this only works on server, so there is no point in trying this on desktop.

Note that:

'The app entity must have been previously created by the repository (via the REST API).'

(from the documentation


Erik Wetterberg

gladi-cz
Creator
Creator
Author

Thanks for replay Erik,

It's true - i looked over information that this action isn't possible on DT, but i failed as well on enterprise.

Request:

{

"handle": -1,

"method": "CopyApp",

"params": {

"qTargetAppId": "2d4fe586-f705-4cb9-aed4-6024e12ec9ad",

"qSrcAppId": "c2b8a83e-18f9-4209-8f4b-418e9d5cd8b8",

"qIds": [

""

]

},

"outKey": -1,

"id": 4

}

Error response:

{

"jsonrpc": "2.0",

"id": 4,

"error": {

"code": 9003,

"parameter": "Engine ID not found",

"message": "Resource not found"

},

"isHandled": true

}



ErikWetterberg

Just a detail:

"qIds": [

""

]

That is an array with an empty string. You probably should not send that, en empty array would be better:

"qIds": []

Though I don't think that is the problem. Looks more like engine does not find one of the apps.

Erik


gladi-cz
Creator
Creator
Author

i don't understand what you mean.

Michael_Tarallo
Employee
Employee

Hi Petr - Erik is awesome and a valued Qlik Community member.  I see he has replied to you, he is the best one to address your concern. If you need further assistance, please let us know.

When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.

Regards,

Mike Tarallo

Qlik

Regards,
Mike Tarallo
Qlik
gladi-cz
Creator
Creator
Author

API talked to me: "qSuccess": true

This magic answer make me really happy.


Erik, thanks so much.