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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Loop On Error?

Is there a good way to make a component loop back and re-execute on an error? And beyond that, control the number of re-executions?

We have some connections to REST services in our environment that seem to be "spotty" at certain times of the day, but a quick retry usually resolves them. Rather than having an entire job fail, I'd like to loop back once or twice to retry the connection before failing outright.

Labels (3)
2 Replies
Anonymous
Not applicable
Author

You can certainly do this, but there is no standard functionality supporting this I am afraid. The best way (of the top of my head) of handling this is to have a tLoop controlling this. Ensure that you simply have a tLoop, the component you are using for your service call and an output (db, tHash, file, etc). Base the looping on the success or failure of the service call.

pnair123
Contributor II
Contributor II

Hi Mike,

 

Did you ever figure this out? I am trying to do the same, there seem to be no right way for this.

 

Preethi