Creating New Asset Using AssetAPI Fails, Unique Constraint Violated
(Doc ID 1571014.1)
Last updated on NOVEMBER 03, 2022
Applies to:
Oracle WebCenter Sites - Version 7.6.0 to 7.6.2 [Release FatWire]Information in this document applies to any platform.
Symptoms
We create assets in a standalone application using Asset API. Occasionally this fails due to a constraint conflict (e.g. on AssetPublication table), when CS allocates an ID to the asset which has already been allocated before to a different asset.
For example
Exception executing prepared statement: INSERT INTO AssetPublication (ID,PUBID,ASSETTYPE,ASSETID) VALUES (?,?,?,?)
ID = <id>
PUBID = <pubid>
ASSETTYPE = MyAssetType
ASSETID = <assetid>
java.sql.SQLException: ORA-00001: unique constraint (CUST_FWE.<indexid>) violated
fails because there already exists an asset on this publication with a different assettype but the same assetid <assetid>
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 |