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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
jimbo20814
Creator
Creator

tDie vs tJobFailure

What is the core difference between tDie and tJobFailure? And when should one use one over the other? I want to simply stop the job (and parent job) from running when an error occurs. Both seem to do exactly that and both use tLogCatcher so I'm wondering what the core difference(s) is.

Labels (2)
3 Replies
srota25
Contributor
Contributor

tDie can be used to explicitly fail the job with failure code and failure message depending on our requirement.
jeoste
Creator II
Creator II

tDie can be used with TOS, it's a free component.
tJobFailure exist in Big Data studio.

I don't know the second one, but the first one do the job you want to.

 

Here's two examples : first one the first subjob is OK, so the flow continues to the second subjob and print "Success : OK"

0683p000009M9pU.png

The second one, I've created an error, so the first subjob failed and the second subjob don't print anything0683p000009M9VJ.png

The message highlighted in the second screenshot is the message defined inside the tDie component

My opinion : it's better to use this component, more commons than the other one, and do the same job.

 

Hope it helps !

jeoste
Creator II
Creator II

tDie component is free and can be used in TOS

tJobFailure is for the Big Data studio and is premium

 

My opinion : because I don't know much about the tJobFailure component, I would use the tDie component which do the same job as the second one (referring to the official documentation).

 

Here's a concret example with tDie to prove it

 

First one, the first subjob is KO, so tDie component write "Subjob failed KO" in the console (highlighted). The second subjob don't start.

0683p000009M9jX.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

This is the second part, first subjob is OK, so the second subjob is executing and print "Success : OK".

0683p000009M9pZ.png