Cannot Create Certain Assets Because the Subtype Value is Too Large for the Column

(Doc ID 2320884.1)

Last updated on OCTOBER 31, 2017

Applies to:

Oracle WebCenter Sites - Version 11.1.1.8.0 to 11.1.1.8.0 [Release FatWire]
Information in this document applies to any platform.

Symptoms

After upgrading from Sites 7.6.2 to 11.1.1.8.0, we are encountering an ORA-12899 error when attempting to create certain assets. Sites appears to be trying to access a column which was null in 7.6.2.

For example:
We have an asset called "Asset1" which is stored in a "content_c" table. This table has a "subtype" column which takes varchar2(32) data type. This column was not used (always set to null) in 7.6.2. In both 7.6.2 and 11.1.1.8.0, the information about the subtype of the asset can be found in a different table, "content_cd", where the "flextemplateid" field in "content_c" corresponds to the "id" field in "content_cd." The equivalent to "subtype" in "content_c" is "name" in "content_cd", which takes a varchar2(64) data type.

Now, in 8.0, when the user attempts to create a new Content asset with the subtype "Landing Highlight Content Definition", the following error is thrown:

java.sql.SQLException: ORA-12899: value too large for column "CSUSERTEST"."CONTENT_C"."SUBTYPE" (actual: 36, maximum: 32)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms