Checkin fails E03020003: Database error after upgrade to v13.03

Document ID : KB000121499
Last Modified Date : 03/12/2018
Show Technical Document Details
After the Upgrade from CA Harvest Software Change Manager R12.6 to R13.0.3 getting error message during the Checkin process.

---------- Begin Process ---------------
E03020003: Database error [CA Harvest SCM][ODBC 20101 driver][Oracle]ORA-00001: unique constraint (CASCM.HARVERSIONDATA_PK) violated SQLSTATE=43.
I00060079: Check in summary: Total: 1; Success: 0; Failed: 0; Not Processed: 1.
E03060019: Process Execute failed. Process Name: CheckIn.
---------- End Process ---------------
- Copy of the whole database before started the upgrade and worked with hdbsetup through the migration

Product Release =13.0 
Release: 13.0.3, 
Operating System: Linux SUSE Linux Enterprise Server 11 SP4 64bit 
Databse: Oracle Database 12c Standard Edition Release - 64bit before Oracle Release 64bit 

Please contact CA Support for help.

This error does not necessarily state that your database is corrupted.
Sometimes during export and import, the sequence values in the schema are not updated properly and that's when you receive this error. 
A script will provided from CA Support to  reset sequences and we need the created output for information.
This will tell us whether a reset is required for your sequences.
Based on the result from above step, CA provide you another script CA_Harvest_Fix_Sequences.sql that does the actual sequence correction for you.
And that will put an end to these problems. 

Additional Information:
Error message informations:

Database error %s1. 
A database or ODBC error occurred on the server. The reasons can include an incorrect SQL syntax, operation out of sequence, or database constraint violation. This could be a sign of corrupt data in the database or an obscure server bug. 
For assistance, contact CA Support at 

[ODBC 20101 driver][Oracle]ORA-00001