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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to capture ORA- errors into a file or table

I am trying to find out how to capture Oracle error, like Unique Key constraint violation error eg: ORA-00001: unique constraint (SHICKL.ROW_UID_PK) violated.
I need to capture above mentioned error in to a file. Right now the above error can be visible in RUN area or execution area.
Please suggest me how do catch the ORA error in Talend in a file or table
Thanks,
Vivek Jayapalan
Labels (2)
11 Replies
Anonymous
Not applicable
Author

We can use the Row Rejects link on the tOracleOutput component to capture the row errors. This will work only in a non-batch mode.
tFileInputDelimited_1 --(row1:Main)--> tOracleOutput_1 --(row2:Rejects)--> tFileOutputDelimited_1
Here row2 is a rejects (Row: Rejects) link from tOracleOutput_1 to tFileOutputDelimited_1.
Regards,
Abhi
Anonymous
Not applicable
Author

Hello Abhi,
There is no option for reject link from toracleoutput.
tfileinputdelimited ---> row(Main)---> toracleoutput --->row(Main)<Only row main is available> --> tfileoutputdelimited

What i could fina an option was the below method, But error_code and error message is coming null, but i can see the ORA error in the run screen.
tfileinputdelimited ---> row(Main)---> toracleoutput
|
|
|------> row(Reject)---> tfileoutputdelimited
Thanks,
Vivek Jayapalan
Anonymous
Not applicable
Author

Hello Abhi,
There is no option for reject link from toracleoutput.
tfileinputdelimited ---> row(Main)---> toracleoutput --->row(Main)<Only row main is available> --> tfileoutputdelimited

What i could fina an option was the below method, But error_code and error message is coming null, but i can see the ORA error in the run screen.
tfileinputdelimited ---> row(Main)---> toracleoutput
|
|
|------> row(Reject)---> tfileoutputdelimited
Thanks,
Vivek Jayapalan
Anonymous
Not applicable
Author

Hello Abhi,
Your Idea is working fine, i have removed the Batch option from the tOracleoutput, then i could see the Reject row link.

Thanks a lot...
Vivek Jayapalan
Anonymous
Not applicable
Author

Hi,
I am working Talend DI version 5.0.1 and i want to capture the rejected rows from tOracleOutPut to a tFileOutPutDelimited.
But i am not able to see the reject option on tOracleOutPut. Can anyone please help me on this?
Many Thanks,
Manju
janhess
Creator II
Creator II

Go to advanced settings and deselect Use Batch Size.
Anonymous
Not applicable
Author

Thanks a lot , it worked !!!
Anonymous
Not applicable
Author

Thanks - that s what I need
We can use the Row Rejects link on the tOracleOutput component to capture the row errors. This will work only in a non-batch mode.
Go to advanced settings and deselect Use Batch Size.

ps ? about speed - seems it will be slowly
Anonymous
Not applicable
Author

Hi !
Can we use this logic for tgreenplumrow ?
tgreenplumrow->reject
|
oncomponentok
|
tgreenplumcommit