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

soft exit from the job under a certain condition

Hi,

 

In the prejob I wanted to check if the last record has reached. If reached do a soft exit. I do not want to error out. How to achieve this?

 

In the prejob, read a file which has last processed record id. If the last record record id is the maximum id of that table, create a done file and do a soft exit.

 

For this I have a if condition which check for equality of last record id and maximum id and it is true call tFileTouch.

From tFileTouch --> OnComponentOk ---> tDie component.

 

But this tDie exists the job only when the priority is Error.

I wanted a soft exit.

 

Please assist.

 

 

 

Labels (2)
1 Reply
akumar2301
Specialist II
Specialist II

In Die , did you select advance setting "Exit JVM Immediately" ?

if you need exit error code as 1 , add a tPostJob in your job and do not select above setting.

tPostJob -- > tjava

 

if you need exit error code as 0 , in tDie , set exit code 0.

 

if you need exit error code as 0 in all the case ,  add a tPostJob in your job then tjava(as last component of Job) and use expression System.exit(0)


let me know if works