My Oracle Support Banner

Deploying / Importing a Portal that uses a Page Template Fails with: The object ... cannot be updated because it has changed or been deleted since it was last read (Doc ID 2762255.1)

Last updated on FEBRUARY 02, 2024

Applies to:

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

Symptoms


Deploying / Importing a Portal that uses a page template fails with: "The object ... cannot be updated because it has changed or been deleted since it was last read."

ERROR 
The import log shows the following error:

<DATE-TIME> <Warning> <EclipseLink> <BEA-2005000> <Exception [EclipseLink-5006] (Eclipse Persistence Services - 2.6.7.v20190604-418f1a1c56): org.eclipse.persistence.exceptions.OptimisticLockException
Exception Description: The object [null [namespace=assetCollection, id=<ID>, type=oracle.webcenter.portal.persistence.AssetCollectionResource, version=185]] cannot be updated because it has changed or been deleted since it was last read.
Class> oracle.webcenter.portal.persistence.entity.PortalEntityObject Primary Key> <ID>>
<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)
...

Caused By: javax.persistence.RollbackException: javax.persistence.OptimisticLockException: Exception [EclipseLink-5006] (Eclipse Persistence Services - 2.6.7.v20190604-418f1a1c56): org.eclipse.persistence.exceptions.OptimisticLockException
Exception Description: The object [null [namespace=assetCollection, id=<ID>, type=oracle.webcenter.portal.persistence.AssetCollectionResource, version=185]] cannot be updated because it has changed or been deleted since it was last read.
Class> oracle.webcenter.portal.persistence.entity.PortalEntityObject Primary Key> <ID>
          at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:157)
          at oracle.webcenter.portal.persistence.transaction.TransactionManagerImpl.commit(TransactionManagerImpl.java:485)
          at oracle.webcenter.portal.persistence.transaction.TransactionManagerImpl.commitIfAllowed(TransactionManagerImpl.java:467)
          at oracle.webcenter.portal.persistence.transaction.TransactionManagerImpl.commitTransaction(TransactionManagerImpl.java:326)
...

<DATE-TIME> <Warning> <oracle.webcenter.lifecycle.LifecycleContext> <BEA-000000> <'<portal-name>': An internal error occurred while importing portal data. Refer to the WebCenter Portal Server log for more information.>
ADDED WARNING: '<portal-name>': An internal error occurred while importing portal data. Refer to the WebCenter Portal Server log for more information.

 STEPS

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

  1. Deleted and recreated a page template in the target instance.
     
  2. Import a portal that uses the page template.
    Here the error occurs.

 

Changes

 

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.