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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

expression json tMap to tRestClient

Hello,
I would like to send a json expression (in tXMLMap) to a tRestClient for a POST message but I have an error:
Exception in component tRESTClient_4
javax.ws.rs.ClientErrorException: HTTP 422

I want to send this expression : "{\"host_set\":{\"_id\":1009},\"exhaustive\":true,\"indicator\":\"" + row8.content + "\"}"

0683p000009MApe.png 0683p000009MB7A.png 0683p000009MAZj.png 0683p000009MB7F.png

I think I don't have the good syntax, what's your opinion? can you help me to solve the problem?
Thanks,
Labels (6)
1 Reply
Anonymous
Not applicable
Author

Hi
In this case simply set a body type to String and avoid using tXMLMap. tXmlMap is only useful if the DOM XML to JSON auto-conversion is expected
Cheers, Sergey