Purchase Order Workflow Errors With "ORA-06502: PL/SQL: numeric or value error" at APPS.WF_NOTIFICATION When Sending Notification (Doc ID 579729.1)

Last updated on AUGUST 21, 2016

Applies to:

Oracle Purchasing - Version 11.5.10.2 to 12.0.6 [Release 11.5 to 12]
Information in this document applies to any platform.

Symptoms

 

When opening a More Info Requested Notification for a PO with more than 20 lines, there is the following error in the notification :

ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at "APPS.WF_NOTIFICATION", line 5382
ORA-06512: at line 5


The wfstatus output for the PO shows the following error :

Error Name: WF_ERROR
Error Message: [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: 2018: Unable to generate the notification XML. Caused by: 2020: Error when getting notification content. Caused by:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Wf_Notification.runFuncOnBody(150360, text/html) Wf_Notification.GetBody(150360, text/html)
WF_NOTIFICATION.GetFullBody(nid => 150360, disptype => text/html) WF_MAIL.GetLOBMessage3(nid => 150360, r_ntf_pref => MAILHTML)' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'.
Error Stack:
ERROR_STACK= WF_MAIL.GetLOBMessage3(150360, WFMAIL, 2020: Error when getting notification content. Caused by: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Wf_Notification.runFuncOnBody(150360, text/html) Wf_Notification.GetBody(150360, text/html)
WF_NOTIFICATION.GetFullBody(nid => 150360, disptype => text/html) WF_MAIL.GetLOBMessage3(nid => 150360, r_ntf_pref => MAILHTML), Step -> Getting text/html body) WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 150360)
WF_XML.Generate(oracle.apps.wf.notification.send, 150360) WF_XML.Generate(oracle.apps.wf.notification.send, 150360)
Wf_Event.setMessage(oracle.apps.wf.notification.send, 150360, WF_XML.Generate) Wf_Event.dispatch_internal()


The issue can be reproced at will with the following steps :
1. Create a PO with more than 20 lines
2. Submit the PO for approval
3. Log in as approver
4. Request for more information from the "Standard Purchase Order 1234 for USD 999,999.99 requires your approval" notification
5. Log in as the buyer
6. Open the "More Information Requested: Standard Purchase Order 1234 for USD 999,999.99 requires your approval" notification.

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