Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Duplicate Key Error During Upgrade of Enterprise Analyzer Workspace

Duplicate Key Error During Upgrade of Enterprise Analyzer Workspace


Client receives error during attempted upgrade of workspace in Enterprise Analyzer.  Upgrade log returns following message: [Oracle][ODBC][Ora]ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
.  While upgrading UpgradeModel> <code: Fatal>


This error results from duplicate keys stored in a specific EA table.  The table is usually identified in the few lines in the log leading up to the error message.  A SQL query can be used to identify and remove the duplicates to allow the upgrade to proceed.

The query below can be modified for any table.  In the example below, the table is RelProgramusesPsbModule.

delete from RelProgramUsesPsbModule

where ROWID in (select RID

                   from (select ROWID as RID,



                                ROW_NUMBER() OVER(PARTITION BY leftobject, rightobject order by leftobject, rightobject) as RNK

                           from RelProgramUsesPsbModule) TMP1

                  where TMP1.RNK > 1)





Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Version history
Revision #:
1 of 1
Last update:
‎2014-10-03 18:03
Updated by:
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.