My Oracle Support Banner

Customer Form: When Entering Chinese Characters in the SITES LOCATION ‘ORA-06502: PL/SQL: Numeric Or Value Error: character string buffer too small’ Is Reported (Doc ID 2940341.1)

Last updated on JULY 29, 2024

Applies to:

Oracle Trading Community - Version 12.2 and later
Information in this document applies to any platform.

Symptoms

In the Customer Form, when entering Chinese Characters in the SITES LOCATION (with N1 characters, N2 bytes; N1 < 40, N2 > 40, and maximum allowed size = 40) instead of getting an User Friendly message an unexpected ERROR occurs.

Responsibility: Receivables Manager
Navigation:     Customers -> Create / Modify Customer
Precondition:   The Customer Sites screen was personalized to have Maximum Length=40 for 'Message Text Input: Location'

  1. Customer queried -> Account Details -> Sites tab
  2. Chinese characters 漢字漢字漢字漢字漢字漢字漢字 (with N1 characters, N2 bytes; N1 < 40, N2 > 40, and maximum allowed size = 40) are entered in any SITE LOCATION
  3. The unexpected ERROR below is reported

You have encountered an unexpected error. Please contact your System Administrator for assistance.

## Detail 0 ##
java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at "APPS.HZ_CUST_ACCOUNT_SITE_V2PUB_JW", line 1077
ORA-06512: at line 1

No matter how many characters/bytes are entered in Chinese: the User Friendly Error below should be reported (for example, when entering: 漢字汉字指事字漢字汉字指事字漢字汉字指事字漢字汉字指事字漢字汉字指事字漢字汉字指事字 - with N1 characters, N2 bytes; where N1 > 40, N2 > 40, and maximum allowed size = 40.)

Row 1 Location - The entered value exceeds the maximum allowed value of XX characters.


 

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
References


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