Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have two subjobs a, that are running parallel by connecting with tparallelize. In both my subjobs I have given like on subjob error connected to mail component With specific messages. I have checked "Die when one of the subjob fails" in tparallelize. So when any subjob fails sometimes its triggering mail and die with tparallelize and sometime without even sending mail tparallelize stops the talend job. I want the error mail to be triggered and stop the job
Can you give us a screenshot of your job please?
Please find attached
Could you try adding a tDie after the SendMail? that should terminate the job.
Job is failing for me no issues in that but error mail is not triggering and its not always sometimes it triggered the mail compo ent and fails and sometimes before that.
And to reply your question I added t die and tried then also am not getting mail , tdie also not triggered
Have you identified where the error is occurring? I notice that your last Subjob on one of your branches does not have the sendmail component attached to it. I am guess that the error may be occurring there.....
Another way of dealing with this that is cleaner is to use a tPostJob component. This component will always run at the end of a job even if it errors and dies. This is a good way of maintaining error notifications. Add a tPostJob and connect your email component to it using a RunIf link. Add some logic so that it only runs if there is an error.
Hi , error occurred in subjob where it was attached to mail component. I came up with workaround like created one master job and dragged this job into that master job and connected onsubjob error from this child job to mail component