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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Format of errorMessage of tRestClient

 

I call a webservice with a tRestClient component. When I have an error, I'd like to get the json structure of the error.

But the 'error' response is an errorCode, and errorMessage, and they are 'string'.

How to cast errorMessage to Document to have a tree on it?

 

Thanks,

 

Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hi
Not able to configure the component to return the error message with XML or json format, it could be reported as a new option. If you want to extract data from the error string, you can use tExtractRegularFields component after tRestClient.

Regards
Shong