Troubleshooting
Problem
Unique constraint violation error when updating a record.
Cause
This has been identified as a product defect under APAR PI89398
Environment
When using an insert/update operation on the output card of an IBM Transformation Extender (ITX)/WebSphere Transformation Extender (WTX) map, it may be noted that the update operation fails to find a matching primary key (even though the value DOES exist) and then the insert operation fails because the data to update then fails that same primary key.
Please note that this issue only occurs when 'NLS_LENGTH_SEMANTICS' is set to CHAR instead of BYTE.
Diagnosing The Problem
The ITX/WTX Database log file (.dbl) contains the following error.
Error returned by OCIStmtExecute, errcode=1ORA-00001: unique constraint (TableName) violated
Resolving The Problem
Obtain patch for APAR PI89398.
As a workaround the tables can be explicitly created with BYTE length:
COLOUR CHAR(45 BYTE) NOT NULL
instead of
COLOUR CHAR(45) NOT NULL
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg22010102