Hi,
I created a simple parallel job having three stages:
1) Input - Oracle enterprise stage
2) Transformer
3) Output - Oracle enterprise stage
This job fetches data from a source table and deletes the data from the target table. I have used auto generated delete statement in the target stage.
The delete happens on the primary key value.
I ran he job for a single record. This record was not deleted from the target and it got rejected. In the log statistics I saw the record as rejected. But the job had no warnings.
The reason of rejection was there are some foreign key constraints which prevented this record from being deleted in the datastage job. However my question is datastage doesnot throw up any warnings on foreign key violations? Does it simply reject the record without any warnings?
Is there any environmental variable that would help in my case?
Thanks for the help.
Regards,
PR
Datastage job not throwing warnings on foreign key violation
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
I can capture that through a reject link to a file or dataset. But that would mean this reject file has to be monitored after every run.
My question is can we get the information as a warning in the datastage logfiles itself that a record has been rejected because of foreign key violation? Is this the normal behaviour in case of oracle stage where a record is silently rejected even in case of failure to write into a table?
regards,
PR
My question is can we get the information as a warning in the datastage logfiles itself that a record has been rejected because of foreign key violation? Is this the normal behaviour in case of oracle stage where a record is silently rejected even in case of failure to write into a table?
regards,
PR