Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
}
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
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
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
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
}
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
i don't understand what you mean.
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
API talked to me: "qSuccess": true
This magic answer make me really happy.
Erik, thanks so much.