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

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

tRestClient output connections question

Hello

I use tRestClient to make a rest call which may return error status (i.e. 500). In case of success (200) I need, for example, put result into file "success.txt", in case of error I need to put it to the file "error.txt". I have following job:

 

0683p000009M1Fj.jpg

 

What I notices is that in any case (success or error rerurned from rest service) BOTH files are created. One of them is empty, another is not, depending of what status was returned. Like both connections are always fired.

 

Is it as designed? Why both connection are processed? How to avoid this?

Labels (3)
1 Reply
vapukov
Master II
Master II

output connections (files) initialized before input component start work

 

some components (but not tFileOutputJSON) have checkbox - "do not create empty files", 

 

as variant - do not store data direct to file, store response in memory, and process it after