This document has not been formally reviewed for accuracy and is provided "as is" for your convenience.
Summary
Error
After deployment a patch, for some projects could happen that it is not possible to login the project. The debug log shows that ALM is trying to insert a row in the table BPM_ELEMENT_TYPES and getting unique constraint violation error from the database.
Failed to Connect Project; [Mercury][Oracle JDBC Driver][Oracle]ORA-00001: unique constraint (ARCHIV_IT_RELEASE_SPRINT_ARCHI.BPMET_PRIMARYKEY) violated Failed SQL: /* ~~QC */ INSERT INTO BPM_ELEMENT_TYPES (BPMET_ID, BPMET_TYPE_NAME, BPMET_IS_INCLUDED_IN_PATHS) VALUES (690, 'epc98_function', 'Y');
Stack Trace:
java.sql.SQLException: [Mercury][Oracle JDBC Driver][Oracle]ORA-00001: unique constraint (ARCHIV_IT_RELEASE_SPRINT_ARCHI.BPMET_PRIMARYKEY) violated Failed SQL: /* ~~QC */ INSERT INTO BPM_ELEMENT_TYPES
(BPMET_ID, BPMET_TYPE_NAME, BPMET_IS_INCLUDED_IN_PATHS) VALUES (690, 'epc98_function', 'Y')...
Cause
Fix
In order to resolve this issue add the record by executing the below SQL query (please ask your DBA for assistance):
INSERT INTO DATACONST ( DC_CONST_NAME , DC_VALUE ) VALUES ( 'ArisDbSchemaVersion' , '1' );