Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a loop that pulls a list of ids and executes a tRest api for each id. This works until it doesn't.
When it works it brings back json with it's Body and ERROR_CODE columns. From there I can troubleshoot any data. But occasionally it brings back a random xml that I can't even capture. It fails the trest component with a error...
"Too many "Content-Type" header values: "[text/xml: charset="utf-8", null]"
Is there a way that when the api blows up, I can do a resume next or any continue to the next iteration?
Hello
Move the tRest component to a child job, iterate each id and pass the current id to child job, please refer to https://community.qlik.com/t5/Official-Support-Articles/Passing-a-value-from-a-parent-Job-to-a-child...
In the main job, use a tRunJob to run the child job and uncheck the 'Die on child error' option.
Let me know if you have any questions/issues.
Regards
Shicong
Hello
Move the tRest component to a child job, iterate each id and pass the current id to child job, please refer to https://community.qlik.com/t5/Official-Support-Articles/Passing-a-value-from-a-parent-Job-to-a-child...
In the main job, use a tRunJob to run the child job and uncheck the 'Die on child error' option.
Let me know if you have any questions/issues.
Regards
Shicong