Skip to Main Content

E-Business Suite

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORACLE error 6502 in FDPSTP

AB115Nov 6 2018 — edited Feb 9 2021

Hello All,

we are getting

ORACLE error 6502 in FDPSTP

Cause: FDPSTP failed due to ORA-06502: PL/SQL: numeric or value error: character string buffer too small

ORA-06512: at line 1

Procedure:

CREATE OR REPLACE PROCEDURE p_test1 (p_in_report_name      IN     VARCHAR2,

                                     p_in_responsibility   IN     VARCHAR2,

                                     p_in_email            IN OUT CLOB)

IS

   l_exc_custom_exception   EXCEPTION;

   l_chr_attachment_name    VARCHAR2 (100);

   l_chr_email_body         VARCHAR2 (2000);

   l_in_email               CLOB;

BEGIN

   l_in_email := 'abc@google.com' || ',' || 'def@google.com';

   p_in_email := p_in_email || l_in_email;

   IF p_in_report_name = 'Report1'

   THEN

      l_chr_email_body := 'Details of the report';

      l_chr_attachment_name := 'Report1';

   END IF;

EXCEPTION

   WHEN l_exc_custom_exception

   THEN

      DBMS_OUTPUT.put_line ('User Defined Exception => ' || SQLERRM);

   WHEN OTHERS

   THEN

      DBMS_OUTPUT.put_line (

            'Error while submitting request for Error While running email program. Error=> '

         || SQLERRM);

END p_test1;

Error:

ORACLE error 6502 in FDPSTP

Cause: FDPSTP failed due to ORA-06502: PL/SQL: numeric or value error: character string buffer too small

ORA-06512: at line 1

please suggest.

Thanks

Comments

Post Details

Added on Nov 6 2018
11 comments
1,426 views