Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
richard74
Partner - Contributor
Partner - Contributor

Calling REST API via OData which returns JSON

I'm trying to make a call to a REST API which returns JSON data. When I attempt to ListResources on it I get this error:

richard74_0-1686216802502.png

"Expecting XML but got JSON - try using the Accept parameter or $format=xml / $format=atom OData Query Options parameter to request XML"

I've set the OData Options and the Accept parameter as suggested, including all possible combinations of both but I keep getting the same error back.

If I call JsonV4ListResources, it returns a "no columns returned" error.

Interestingly, there's an XML variant of the API I can call but it reports no data returned when I ListResources. 

Both the JSON and XML API calls are working fine in the browser and PostMan. I've confused, any suggestions anyone can offer?

Thanks 😁

1 Reply
richard74
Partner - Contributor
Partner - Contributor
Author

So after speaking to support, it turns out that OData in QCDI is not supported, despite it being in the documentation. Sense is an option on the Qlik stack though I will likely look to see what Talend has to offer now.