My Oracle Support Banner

Catalog Maintenance Stored Procedure Failing with Error "ORA-06502: PL/SQL: numeric or value error: character string buffer too small" (Doc ID 2030642.1)

Last updated on JANUARY 05, 2017

Applies to:

Oracle Commerce Platform - Version 11.1 and later
Information in this document applies to any platform.

Symptoms

The catalog maintenance stored procedure fails when there is a category_id that is longer than 30 characters.

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

1. Create a category_id that is greater than 30 characters.
2. Add products to the category.
3. Run the Catalog Maintenance Service.
4. Observe the following error in the log:

22:16:41,678 ERROR [nucleusNamespace.atg.commerce.catalog.custom.AncestorGeneratorService] (http-/0.0.0.0:8080-2:ipaddr=0.0.0.1;path=/dyn/admin/nucleus/atg/commerce/catalog/CatalogMaintenanceService/;sessionid=KZa3eZh+QwO1SCfgrtC7pwAb) Repository Exception: CONTAINER:atg.repository.RepositoryException; SOURCE:java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at "ATG_CATB.PR_DCS_PRD_PRNT_CATS", line 133
ORA-06512: at line 1

at atg.commerce.catalog.custom.AncestorGeneratorService.updateProducts(AncestorGeneratorService.java:2408) [_DCS_slib_sclasses.jar:]
at atg.commerce.catalog.custom.TreeWalkUpdateService.processTree(TreeWalkUpdateService.java:632) [_DCS_slib_sclasses.jar:]
at atg.commerce.catalog.custom.AncestorGeneratorService.updateCatalog(AncestorGeneratorService.java:1643) [_DCS_slib_sclasses.jar:]
at atg.commerce.catalog.custom.TreeWalkUpdateService.performService(TreeWalkUpdateService.java:421) [_DCS_slib_sclasses.jar:]
at atg.commerce.catalog.CMSService.doService(CMSService.java:214) [_DCS_slib_sclasses.jar:]
at atg.commerce.catalog.StandardCatalogMaintenance.performService(StandardCatalogMaintenance.java:546) [_DCS_slib_sclasses.jar:]
at atg.commerce.catalog.CMSService.doServiceWithLock(CMSService.java:256) [_DCS_slib_sclasses.jar:]
at atg.commerce.catalog.CMSService.doService(CMSService.java:201) [_DCS_slib_sclasses.jar:]
at atg.commerce.catalog.custom.CatalogMaintenanceService.performMaintenance(CatalogMaintenanceService.java:434) [_DCS_slib_sclasses.jar:]
at atg.commerce.catalog.custom.CatalogMaintenanceService.performMaintenance(CatalogMaintenanceService.java:275) [_DCS_slib_sclasses.jar:]
at atg.commerce.catalog.custom.CatalogMaintenanceService.performMaintenance(CatalogMaintenanceService.java:236) [_DCS_slib_sclasses.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_72]

at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_72]
Caused by: java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at "ATG_CATB.PR_DCS_PRD_PRNT_CATS", line 133
ORA-06512: at line 1

at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450) [ojdbc7.jar:12.1.0.1.0]
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399) [ojdbc7.jar:12.1.0.1.0]

 

Note: This error can occur with any of the databases supported with Oracle Commerce and the Oracle error is provided as an illustration.

Changes

Upgraded to Oracle Commerce 11.1.

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
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.