Hi, I am getting below warning message. I searched on SQLSTATE=23000 in dsxchange but did not get answer. Can you please tell me what exactly this means?
My job design is Hash file ---->TFM---->ODBC Stage
tgtins.xfm.DW_Root: DSD.BCIPut call to function SQLExecute failed.
SQL statement:INSERT INTO "DW_Root"("Root_Code", "Root_Description", DW_SOURCE, DW_BATCH_ID) VALUES (?,?,?,?)
SQLSTATE=23000, DBMS.CODE=2601
[DataStage][SQL Client][ODBC][IBM(DataDirect OEM)][ODBC SQL Server Driver][SQL Server]Cannot insert duplicate key row in object 'dbo.DW_Root' with unique index 'IDX_Site_Code'.
SQLSTATE=01000, DBMS.CODE=3621
[DataStage][SQL Client][ODBC][IBM(DataDirect OEM)][ODBC SQL Server Driver][SQL Server]The statement has been terminated.
root_Code = "6033"
root_Description = "?-UNKNOWN"
DW_SOURCE = "China"
DW_BATCH_ID = "20110616130116"
SQLSTATE=23000, DBMS.CODE=2601
Moderators: chulett, rschirm, roy
-
- Charter Member
- Posts: 56
- Joined: Fri Apr 21, 2006 9:53 am
-
- Charter Member
- Posts: 56
- Joined: Fri Apr 21, 2006 9:53 am
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You don't need anything more. You have to inspect the data you're sending - you are attempting to insert a record that violates the unique constraint implemented by the index named in the error message.
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.