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 OCTOBER 01, 2022
Applies to:
Oracle WebCenter Portal - Version 12.2.1.4.200408 and laterInformation 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:
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:
- Deleted and recreated a page template in the target instance.
- 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 |