Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tRESTResponse returning 404 when no records found

I have tried a number of things to handle this but none have worked.
In the attached example I simply have a tXMLMap that pushes the response body and code to the tRESTResponse.
If a record is present it works and returns the correct response and code.
If no records it always returns a 404 not found.
Is this how it is supposed to behave?
Mike
0683p000009MEOX.png 0683p000009ME9J.png
Labels (4)
1 Reply
Anonymous
Not applicable
Author

Yes it is. Please keep in mind a RESTful web service delivers a document representation of an object and if you try to read an none existing object, this is the right answer of the service for this request.
You need to know which object exists. Please try to get a list of all objects and iterate through this list.