Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

gladi-cz
Contributor

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
erik_wetterberg
Honored Contributor

Re: QS API

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


Erik Wetterberg
https://extendingqlik.upper88.com/
7 Replies
gladi-cz
Contributor

Re: QS API

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

erik_wetterberg
Honored Contributor

Re: QS API

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

Erik Wetterberg
https://extendingqlik.upper88.com/
gladi-cz
Contributor

Re: QS API

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

}



erik_wetterberg
Honored Contributor

Re: QS API

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


Erik Wetterberg
https://extendingqlik.upper88.com/
gladi-cz
Contributor

Re: QS API

i don't understand what you mean.

Employee
Employee

Re: QS API

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
Contributor

Re: QS API

API talked to me: "qSuccess": true

This magic answer make me really happy.


Erik, thanks so much.


Community Browser