Fatal Error with succesfull Completion
Moderators: chulett, rschirm, roy
Fatal Error with succesfull Completion
Bonjour,
I run the DataStage PX with DB2 in the UNIX system.
I create a job that insert to a DB2 table. When I ran my job twice I got the followed error from DB2 --> DB2 Driver Embedded SQL: -803;
sqlcode = 23505;
sqlstate = SQL0803N One or more values in the INSERT statement, UPDATE statement, or
foreign key update caused by a DELETE statement are not valid because the
primary key, unique constraint or unique index identified by "1" constrains.
When I check in the DIRECTOR log I saw 2 FATAL error. This is normal I tried to insert row already in the table.
My problem is that my job completed with "succesfull".
Wich option I have to set to said to DataStage to stop the job when DB2 got a FATAL error.
Thank !
I run the DataStage PX with DB2 in the UNIX system.
I create a job that insert to a DB2 table. When I ran my job twice I got the followed error from DB2 --> DB2 Driver Embedded SQL: -803;
sqlcode = 23505;
sqlstate = SQL0803N One or more values in the INSERT statement, UPDATE statement, or
foreign key update caused by a DELETE statement are not valid because the
primary key, unique constraint or unique index identified by "1" constrains.
When I check in the DIRECTOR log I saw 2 FATAL error. This is normal I tried to insert row already in the table.
My problem is that my job completed with "succesfull".
Wich option I have to set to said to DataStage to stop the job when DB2 got a FATAL error.
Thank !
Not understanding you requirment fully .......
This is again a warning from db2.
if you try to load some duplicate data, the first set of data will be loaded and rest will be rejected.
And it will try to load further with the rest of records.
so instead of rejecting the flow you can try to collect into a reject file.
regards
kumar
This is again a warning from db2.
if you try to load some duplicate data, the first set of data will be loaded and rest will be rejected.
And it will try to load further with the rest of records.
so instead of rejecting the flow you can try to collect into a reject file.
regards
kumar
-
- Premium Member
- Posts: 141
- Joined: Tue Mar 16, 2004 8:22 am
- Location: HSBC - UK and India
- Contact:
l'm also getting this error.
I'm also getting this error. What causes this problem? Is it a bug (will it be fixed)? What's the best workaround for it?
Thanks
Thanks
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
If you're running version 7.5 or later, and if you're controlling the job from a job sequence, then you can include a Terminator activity to issue stop requests to all jobs running under control of that sequence.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Premium Member
- Posts: 141
- Joined: Tue Mar 16, 2004 8:22 am
- Location: HSBC - UK and India
- Contact:
I believe this bug has been fixed in 7.5
I can recreate this error in 7.1 but not in 7.5 (i.e. the job correctly aborts when one partition fails because of a deadlock). Is it possible to get it confirmed that this bug has been fixed?