on 03-03-2015 8:16 AM
Hi,
I am using "Error Handling"/"Use Overflow file" option in target table to capture errors like "Unique Constraint".
So, When a duplicate key arrives it will be thrown to overflow file and the job is getting succesfully executed aswell as error will be shown in error file.
But if i use this option, catch block will never be executed even if there are errros.
Here i want to capture Error_Messgae() into a gloabl variable (like .. $ERROR=ERROR_MESSAGE()) where this can be done in catch block only!!!
Can some one help how to capture error message when we use this option in target table?
Thanks ,
Amar.
Add a script to the catch block and use variable to capture the raise_exception_ext function. If exception is raised the message will be captured.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dirk,
The Data flow may abort for various reasons like Unique constraint, DB full, Conneciton lost.etc...
Here i need the specific error message into a variable!
So, file_exists can only say if there were error records or not, but it wont say due to what kind of issue the file is generetd!!
Can you help on this?
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.