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: 
_AnonymousUser
Specialist III
Specialist III

[resolved] OnSubjobOk is not working as expected

Hi All,
I have multiple subjobs with the components tFixedFlowInput, tFlowtoIterate & tRunJob.
When I use OnSubJobOk on tFixedFlowInput to another tFixedFlowInput of another subjob, it is not working as expected. The other jobs are running fine though the subjob is throwing an error.
FYI, I have selected "Die on child error" option in tRunJobOk component.

Thanks,
Siva
Labels (2)
15 Replies
Anonymous
Not applicable

Hi,
Would you mind uploading your current job design screenshots into forum so that we can see if your workflow is correct in logic.
Best regards
Sabrina
Anonymous
Not applicable

Hi Sabrina,
PFA the screenshot of talend job.

Thanks,
Siva
0683p000009MEH2.png
Anonymous
Not applicable

Hi Siva
What's the error message you get on the console?
Shong
Anonymous
Not applicable

Hi Shong,
In the subjob, I have one context.variable as status variable and I'm the providing the values as SUCCESS/FAILED. If, it contains value as FAILED then I have used tDie Component to stop the complete job.
Error message is something like "Child job has failed" as it has status as FAILED.
Here my concern is, If the subjob has failed with any kind of issue, then the other subjob having OnSubjobOk won't run right. Correct me If I'm wrong with it.

Thanks,
Siva
Anonymous
Not applicable

Hi
It depends on the 'die on error' option on tRunJob even though the child job has an error:
if 'die on error' option is checked, the exception will be thrown out to the main job, the main job will die and stop to run, the subjob linked with onsubjobok will not be fired.
if 'die on error' option is not checked, the exception will be captured and handled by program, the main job will continue to run, the subjob linked with onsubjobok will be fired.
Shong
Anonymous
Not applicable

Hi Shong,
FYI, I have selected the "Die on child error" on tRunJob component. But Still the subjob having onSubjobOk is running.

Thanks,
Siva
Anonymous
Not applicable

Hi Shong,
FYI, I have selected the "Die on child error" on tRunJob component. But Still the subjob having onSubjobOk is running.

Thanks,
Siva

If the subjob linked with onsubjobok is still running, means there is no error/exception occurs in the child job. If the child job really has an error/exception, and the 'die on child error' box is checked, you will see an error message as read below on the console when running the main job.
the end is near
Exception in component tRunJob_1
java.lang.RuntimeException: Child job running failed
at

Shong
Anonymous
Not applicable

Hi Shong,
I have got the following exception:
Exception in component tRunJob_2
java.lang.RuntimeException: Child job running failed
at ......
But Still the remaining process is continued.
PFA the screenshot of the talend job.
Thanks,
Siva
0683p000009ME7X.png
Anonymous
Not applicable

Hi Siva
Which version are you using? I have tried to reproduce this problem in v5.4.1, but it can't be reproduced, it works as expected. If you are using an older version, try to download the newest version and test it again.

Shong