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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

exact difference between 'die on error' option in component level and

Hi,
I would like to know the exact difference between 'die on error' option  in component level and tdie component.I knew 'die on error' option will stop to run once there is an error.Most of the component have die on error option,Using this option also we can capture all kind error for logging.then what is the exact  usage of tdie component and in which case can i use tdie component.
Thanks & regards,
Naveen S
Labels (2)
2 Replies
Anonymous
Not applicable
Author

Hi
Die on error option make the job die if there is runtime error, tDie is usually used based on the execution result of previous processing, and allows you to customize the error messages. For example, we want to stop the job if there is no data are queried from database.
tMysqlInput_1--main--tLogRow--runIf--tDie
   |
onsubjobok
   |
other processing
set the condition of runIf link with the global variable:
((Integer)globalMap.get("tMysqlInput_1_NB_LINE"))==0
Regards
Shong
Anonymous
Not applicable
Author

Thanks a lot Shong!