Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

Qlik Sense API request errors when importing apps via QRS API

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Sonja_Bauernfeind
Digital Support
Digital Support

Qlik Sense API request errors when importing apps via QRS API

Last Update:

May 11, 2021 6:01:44 AM

Updated By:

Sonja_Bauernfeind

Created date:

Dec 20, 2019 3:44:39 AM

When importing an app via the QRS API as documented here, here and explained further here How to Import a QlikSense App Via the QRS API, the API call throws a 500 Internal Server Error with an error message that says:

Value cannot be null.
Parameter name: path2


Or the API call throws a 400 Bad Request error with an error massage that says:

Additional text encountered after finished reading JSON content: :. Path '', line 1, position 10.

Is this a defect or is there something being done wrong?

Environment:

Qlik Sense Enterprise on Windows 

 

In both cases, the calls are being made incorrectly. For the 500 error, the request body is likely missing, so check that. The 400 error is more of a documentation clarity issue. This error is thrown because after reading the API documentation, the request body being used is something like the following:

{
    "filename": "myApp.qvf"
}

However, the above is incorrect. Instead, the request body should simply be the following:

"myApp.qvf"

In other words, there are no curly brackets or identifiers that need to be specified, just the app name with extension. The other two documentation sources above in the description do a better job at explaining this.

Labels (1)
Version history
Last update:
‎2021-05-11 06:01 AM
Updated by: