Feedback
Did this article resolve your question/issue?

   

Article

"INSERT/UPDATE INVALID; INDEX RESTRICTS COLUMNS with SAME VALUES" error with Connect for ODBC DB2 Wire Protocol driver

Information

 
Title"INSERT/UPDATE INVALID; INDEX RESTRICTS COLUMNS with SAME VALUES" error with Connect for ODBC DB2 Wire Protocol driver
URL NameINSERT-UPDATE-INVALID-INDEX-RESTRICTS-COLUMNS-with-SAME-VALUES-error-with-Connect-for-ODBC-DB2-Wire-Protocol-driver
Article Number000186367
EnvironmentProduct: Connect for ODBC DB2 Wire Protocol driver
Version: 7.1
OS: Windows
Database: DB2 z/OS
Application: All applications
Question/Problem Description

Application throws the error shown below when trying to insert or update data to DB2 database using Connect for ODBC DB2 Wire Protocol driver
User-added image

Steps to Reproduce
Clarifying Information
Error Message[DataDirect][ODBC DB2 Wire Protocol driver][UDB DB2 for OS/390 and z/OS] INSERT/UPDATE INVALID; INDEX XXXXX RESTRICTS COLUMNS with SAME VALUES. 000007910B
Defect Number
Enhancement Number
Cause

This error occurs when a unique index is invalidated by the inserting of a new record, or by updating the indexed field of an existing record.  
This is not an error from the driver.The error message is generated by the database (DB2), and the number value at the end of the message indicates the row id of the index which was violated.

Resolution

Check INDEX XXXXX in the connected DB2 schema to see which table/columns are experiencing "non-uniqueness".  
For more information on this error message please contact IBM.

Workaround
Notes
Last Modified Date6/14/2016 9:01 PM
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.