My Oracle Support Banner

VC Custom Program does not Update PK changes from Target Tables (Doc ID 2742087.1)

Last updated on JULY 13, 2023

Applies to:

Oracle Life Sciences Data Management Workbench - Version 2.5.2 to 3.0.0 [Release 2.5.0 to 3.0.0]
Information in this document applies to any platform.

Symptoms

When attempting to change the Primary Key from a Custom Program associated with a Validation Check in order to avoid duplicate records, the following error still occurs:

ERROR
-----------------------
CDR_W###_######_1.<PACKAGE_BAME>.<PROCEDURE_NAME> ; end;" caught:java.sql.SQLException:
ORA-20002: Duplicate records inserted result in key violation ("<COLUMN_NAME>") for
values (<RECORD_VALUE>)
ORA-06512: at "<CDR_SCHEMA_NAME>.P1707432", line 307
ORA-06512: at "<CDR_SCHEMA_NAME>.DV1707432$INS", line 17
ORA-04088: error during execution of trigger '<CDR_SCHEMA_NAME>.DV1707432$INS'
ORA-06512: at "<CDR_SCHEMA_NAME>.<PACKAGE_NAME>", line 6
ORA-06512: at line 1

STEPS
-----------------------
The issue can be reproduced with the following steps:
1. Create a Table1 with Primary Key defined over Col1
2. Create Table2 with Primary Key Col1
3. Create Table3 with Primary Key Col1
4. Create Program1
5. Add Table1 and Table2 as source Tables to Program1
6. Add Table3 as Target Table to Program1
7. Create VC1 and choose to create VC with Custom Program from Program1
8. Install and submit VC1
9. VC failed with error 'ORA-20002: Duplicate records inserted result in key violation ("COL1") for values'
10. Modify Table3 primary key and add Col2 column.
11. Update TD in Program 1 with latest version of Table 3 and checked in.
12. Update VC1 with latest version of Program1
13. Install and submit VC1.
14. VC fails again with the same error 'ORA-20002: Duplicate records inserted result in key violation ("COL1") for values'.

Changes

 This has been logged as BUG 32342615 - VC Custom Program does not Update PK changes from Target Tables

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.