7 Replies Latest reply: Nov 10, 2017 2:08 AM by Petr Kyncl RSS

    QS API

    Petr Kyncl

      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

      }

        • Re: QS API
          Petr Kyncl

          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

            • Re: QS API
              Michael Tarallo

              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

            • Re: QS API
              Erik Wetterberg

              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

                • Re: QS API
                  Petr Kyncl

                  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

                  }