abort job and capture rejcts
Posted: Sun Dec 06, 2009 8:31 am
Hello
I have a scenario where i have to abort the job if i see any rejects out of oracle stage.I am doing only inserts in the oracle stage. So i have changed the property in the oracle stage to ouput reject rows=true. But the requirement is i need to capture the first rejected record from the oracle stage in a file so that i can send email to the support team and then i have to abort the job.
my job design is as below
seqfile----trf----oracle------trf---seqfile
i used abort after 1 row property in the transformer coming out of orcle. the job is getting aborted but when i see the rejected File it is empty. Is there a way that i can achiveve it.
Thanks
I have a scenario where i have to abort the job if i see any rejects out of oracle stage.I am doing only inserts in the oracle stage. So i have changed the property in the oracle stage to ouput reject rows=true. But the requirement is i need to capture the first rejected record from the oracle stage in a file so that i can send email to the support team and then i have to abort the job.
my job design is as below
seqfile----trf----oracle------trf---seqfile
i used abort after 1 row property in the transformer coming out of orcle. the job is getting aborted but when i see the rejected File it is empty. Is there a way that i can achiveve it.
Thanks