My Oracle Support Banner

Importing / Deploying a Portal Fails on Page Template Import With ORA-00001: unique constraint (AEPERF_WEBCENTER.IX_UNIQUE_PORTA_NAMESPACE_NAME) violated (Doc ID 2705376.1)

Last updated on AUGUST 27, 2020

Applies to:

Oracle WebCenter Portal - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms


Attempting to deploy portals from one environment to another results in the following error in the WC_Portal logs:


ERROR

DATE-TIME> <Warning> <EclipseLink> <BEA-2005000> <DATE_TIME--UnitOfWork(682959059)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.7.v20190604-418f1a1c56): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (AEPERF_WEBCENTER.IX_UNIQUE_PORTA_NAMESPACE_NAME) violated

Error Code: 1
Call: INSERT INTO WC_PORTAL_ENTITY (ID, AUX_DATE_1, AUX_DATE_10, AUX_DATE_2, AUX_DATE_3, AUX_DATE_4, AUX_DATE_5, AUX_DATE_6, AUX_DATE_7, AUX_DATE_8, AUX_DATE_9, AUX_INDEXED_NUMBER_1, AUX_INDEXED_NUMBER_2, AUX_INDEXED_STRING_1, AUX_INDEXED_STRING_2, AUX_INDEXED_STRING_3, AUX_INDEXED_STRING_4, AUX_INDEXED_STRING_5, AUX_NUMBER_1, AUX_NUMBER_10, AUX_NUMBER_11, AUX_NUMBER_12, AUX_NUMBER_13, AUX_NUMBER_14, AUX_NUMBER_15, AUX_NUMBER_2, AUX_NUMBER_3, AUX_NUMBER_4, AUX_NUMBER_5, AUX_NUMBER_6, AUX_NUMBER_7, AUX_NUMBER_8, AUX_NUMBER_9, AUX_STRING_1, AUX_STRING_10, AUX_STRING_11, AUX_STRING_12, AUX_STRING_13, AUX_STRING_14, AUX_STRING_15, AUX_STRING_16, AUX_STRING_17, AUX_STRING_18, AUX_STRING_19, AUX_STRING_2, AUX_STRING_20, AUX_STRING_21, AUX_STRING_22, AUX_STRING_23, AUX_STRING_24, AUX_STRING_25, AUX_STRING_26, AUX_STRING_27, AUX_STRING_28, AUX_STRING_29, AUX_STRING_3, AUX_STRING_30, AUX_STRING_31, AUX_STRING_32, AUX_STRING_33, AUX_STRING_34, AUX_STRING_35, AUX_STRING_4, AUX_STRING_5, AUX_STRING_6, AUX_STRING_7, AUX_STRING_8, AUX_STRING_9, CREATED, CREATOR, DESCRIPTION, DOCUMENT_REF, IS_INITIALIZED, IS_SECURED, IS_SEEDED, MODIFIED, MODIFIER, NAME, NAMESPACE, SECURITY_ID, SHORT_ID, TYPE, VERSION, VERSION_ID, PORTAL_ID, SECURITY_ENTITY_ID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
         bind => [86 parameters bound]
Query: InsertObjectQuery(null [namespace=pageTemplate/<Template-Name>/pageView, id=<template-Internal-ID>, type=oracle.webcenter.portal.persistence.PageViewResource, version=1])>
<DATE-TIME> <Error> <oracle.webcenter.portal.persistence.transaction.TransactionManagerImpl> <WCS-72011> <An error occurred while committing a transaction.
oracle.webcenter.portal.transaction.TransactionException: An error occurred while committing a transaction.
        at oracle.webcenter.portal.persistence.transaction.TransactionManagerImpl.commit(TransactionManagerImpl.java:510)
        at oracle.webcenter.portal.persistence.transaction.TransactionManagerImpl.commitIfAllowed(TransactionManagerImpl.java:467)
        at oracle.webcenter.portal.persistence.transaction.TransactionManagerImpl.commitTransaction(TransactionManagerImpl.java:326)
        at oracle.webcenter.portal.persistence.transaction.TransactionManagerImpl$Proxy$_$$_WeldClientProxy.commitTransaction(Unknown Source)
        at oracle.webcenter.lifecycle.data.PersistenceUnit$2.run(PersistenceUnit.java:460)
...

Caused By: javax.persistence.RollbackException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.7.v20190604-418f1a1c56): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (AEPERF_WEBCENTER.IX_UNIQUE_PORTA_NAMESPACE_NAME) violated




STEPS

The issue can be reproduced at will with the following steps:

  1. Deploy a portal from one environment to another using the WebCenter portal UI or wlst command.

  2. This will return the error.



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
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.