Numeric or value error in Package AR_RECEIPT_API_PUB Procedure Create_cash

Hi Everyone,
I wonder if you can help me as I 'm not sure what I'm missing. I'm trying to create a receipt using the API and getting the error ont the subject. Please see my script below:
Thanking you in advance for your assistance.
DECLARE
    p_api_version       NUMBER;
    p_init_msg_list     VARCHAR2(240);
    p_receipt_number    VARCHAR2(30);
    p_amount            NUMBER;
    p_receipt_method_id NUMBER;
    p_customer_number   VARCHAR2(50);   
    p_cr_id             NUMBER(15);
    x_return_status     VARCHAR2(1);
    x_msg_count         NUMBER;
    x_msg_data          VARCHAR2(240);
    l_cash_receipt_id   NUMBER;
    p_currency_code     VARCHAR2(3);
    p_receipt_date      DATE;
    p_gl_date           DATE;
    p_remittance_bank_account_id NUMBER;
BEGIN
    p_api_version       := 1.0;
    p_init_msg_list     := FND_API.G_TRUE;
    p_receipt_number    := 'NIG001';
    p_amount            := 1000;
    p_receipt_method_id := 1003;
    p_customer_number   := '162617';
    p_cr_id             := p_cr_id;
    x_return_status     := x_return_status;
    x_msg_count         := x_msg_count;
    x_msg_data          := x_msg_data;
    p_currency_code     := 'NGN';
    p_receipt_date      := SYSDATE+45;
    p_gl_date           := SYSDATE+45;
    p_remittance_bank_account_id := 10334;
   fnd_global.apps_initialize(1844,51600,222);
    Ar_receipt_api_pub.Create_cash(
                                    p_api_version       => 1.0,
                                    p_init_msg_list     => FND_API.G_TRUE,
                                    p_receipt_number    => p_receipt_number,   
                                    p_amount            => p_amount,           
                                    p_receipt_method_id => p_receipt_method_id,
                                    p_customer_number   => p_customer_number,    
                                    p_currency_code     => p_currency_code,
                                    p_receipt_date      => p_receipt_date,
                                    p_gl_date           => p_gl_date,
                                    p_cr_id             => p_cr_id,
                                    x_return_status     => x_return_status,
                                    x_msg_count         => x_msg_count,
                                    x_msg_data          => x_msg_data);
IF (x_return_status = 'S') THEN
   COMMIT;
        dbms_output.put_line('SUCCESS');
        dbms_output.put_line('Return Status            = '|| SUBSTR (x_return_status,1,255));
        dbms_output.put_line('Message Count            = '||x_msg_count);
        dbms_output.put_line('Message Data             = '||x_msg_data);
        dbms_output.put_line('p_cr_id                  = '||p_cr_id);
ELSE    
   ROLLBACK;
       dbms_output.put_line('Return Status    = '|| SUBSTR (x_return_status,1,255));
       dbms_output.put_line('Message Count    = '|| TO_CHAR(x_msg_count ));
       dbms_output.put_line('Message Data     = '|| SUBSTR (x_msg_data,1,255));
       dbms_output.put_line(APPS.FND_MSG_PUB.Get ( p_msg_index    => APPS.FND_MSG_PUB.G_LAST, p_encoded      => APPS.FND_API.G_FALSE));
   IF x_msg_count >=0 THEN
      FOR I IN 1..10 LOOP
               dbms_output.put_line(I||'. '|| SUBSTR (FND_MSG_PUB.Get(p_encoded => FND_API.G_FALSE ), 1, 255));
      END LOOP;
   END IF;
END IF;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('Exception :'||sqlerrm);
END;

First of all: stop swallowing errors!
Remove this part:
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('Exception :'||sqlerrm);and read:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1270688200346183091
Second: You're better off in the {forum:id=475} Forum.

Similar Messages

  • TextArea : ORA-06502: PL/SQL: numeric or value error (WWV-16016)

    Was trying to use a TextArea in a form to submit some text to a procedure. Found that the text limit seems to be around 1700 bytes. If there is more text in the form I get the following error message:
    Error: An unexpected error occurred: ORA-06502: PL/SQL: numeric or value error (WWV-16016)
    The procedure that i recieveing the form is listed below:
    procedure test
    p_str in varchar2
    as
    begin
    htp.p(p_str);
    end;
    Was expecting to be able to submit up to 32k of text using the TextArea this way.
    Has anyone else run into this problem?
    Is this a bug? Workaround???????
    We really need to be able to submit at least 4k!

    As a workaround,
    1> you can create a table with varchar2(4000)
    2> build a form on it and insert the data in the table
    3> create a procedure to select the data from the table and publish it using htp.p(...)
    4> call this procedure using go/call from the OnSuccess section
    NOTE: you need to grant execute priv. on this procedure to <portal_schema>_PUBLIC db user                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Package Returning Error ORA-06502: PL/SQL: numeric or value error

    Hi,
    I create a package to export to spread sheet .xls, The package work for simple query if i pass the query to package.
    There is no error in package please create the package and do the following as mentioned below
    create or replace
    PACKAGE export_pkg_spread_sheet
    AS
    procedure download_excel(vsql in clob );
    PROCEDURE excel_header(p_header in out nocopy clob);
    procedure excel_content(p_content in out nocopy clob,
    vsql in clob );
    procedure excel_footer(p_footer in out nocopy clob);
    procedure get_usable_sql (p_sql_in IN clob,
    p_sql_out OUT clob);
    END export_pkg_spread_sheet;
    create or replace
    PACKAGE body export_pkg_spread_sheet
    AS
    PROCEDURE excel_header (p_header IN OUT nocopy CLOB)
    AS
    BEGIN
    p_header := '<html><body>';
    END;
    procedure download_excel( vsql in clob )
    as
    p_header clob;
    p_footer clob;
    p_content clob;
    begin
    owa_util.mime_header( 'application/octet', FALSE );
    htp.p('Content-Disposition: attachment; filename="report.xls"');
    owa_util.http_header_close;
    excel_header( p_header);
    excel_content(p_content,vsql);
    excel_footer(p_footer);
    dbms_output.put_line(p_header ||p_content|| p_footer);
    HTP.PRN( p_header ||p_content|| p_footer);
    htmldb_application.g_unrecoverable_error := true;
    end;
    procedure excel_content(p_content in out nocopy clob,
    vsql in clob)
    as
    p_sql_stmt clob;
    cur PLS_INTEGER := DBMS_SQL.OPEN_CURSOR;
    cols DBMS_SQL.DESC_TAB;
    ncols PLS_INTEGER;
    TYPE varColumn     IS TABLE OF varchar2(32000);
    vtab varColumn;
    v_column_count     NUMBER     DEFAULT 0;
    v_status      INTEGER;
    BEGIN
    htp.prn('am here');
    /* SELECT region_source into p_sql_stmt
    FROM apex_application_page_regions
    WHERE region_id = p_region_id AND
    page_id = p_page_id AND
    application_id = p_app_id; */
    get_usable_sql (vsql,p_sql_stmt);
    p_content := p_sql_stmt;
    -- Parse the query.
    DBMS_SQL.PARSE(cur, p_sql_stmt , DBMS_SQL.NATIVE);
    -- Retrieve column information
    DBMS_SQL.DESCRIBE_COLUMNS (cur, ncols, cols);
    -- Display each of the column names
    p_content := '<table> <tr>';
    FOR colind IN 1 .. ncols
    LOOP
    p_content := p_content || '<td>' || cols(colind).col_name || '</td>';
    END LOOP;
    p_content := p_content || '</tr>';
    vtab := varColumn(null);
    for i in 1..ncols
    loop
    vtab.extend;
    DBMS_SQL.DEFINE_COLUMN (cur, i, vtab(i), 2000);
    --dbms_output.put_line(vtab(i));
    end loop;
    v_status := DBMS_SQL.EXECUTE (cur);
    LOOP
    p_content := p_content || '<tr>';
    EXIT WHEN (DBMS_SQL.FETCH_ROWS (cur) <= 0);
    FOR i IN 1 ..ncols
    loop
    DBMS_SQL.COLUMN_VALUE (cur, i, vtab(i));
    -- p_content := p_content || '<td>' || 'xyz' || '</td>';
    p_content := p_content || '<td>' || vtab(i) || '</td>';
    END LOOP;
    p_content := p_content || '</tr>' ;
    END LOOP;
    p_content := p_content || '<table>' ;
    DBMS_SQL.CLOSE_CURSOR (cur);
    exception
    when others then
         p_content := '<td>Exception Error in printing data</td><table>' ;
    DBMS_SQL.CLOSE_CURSOR (cur);
    end;
    procedure excel_footer( p_footer in out nocopy clob)
    as
    begin
    p_footer := '</body></html>';
    end;
    PROCEDURE get_usable_sql (p_sql_in IN clob, p_sql_out OUT clob)
    IS
    v_sql clob;
    v_names DBMS_SQL.varchar2_table;
    v_pos NUMBER;
    v_length NUMBER;
    v_exit NUMBER;
    BEGIN
    v_sql := p_sql_in;
    v_names := wwv_flow_utilities.get_binds (v_sql);
    FOR i IN 1 .. v_names.COUNT
    LOOP
    <<do_it_again>>
    v_pos := INSTR (LOWER (v_sql), LOWER (v_names (i)));
    v_length := LENGTH (LOWER (v_names (i)));
    v_sql :=
    SUBSTR (v_sql, 1, v_pos - 1)
    || v_names (i)
    || SUBSTR (v_sql, v_pos + v_length);
    v_sql :=
    REPLACE (v_sql,
    UPPER (v_names (i)),
    '(SELECT v('''
    || LTRIM (v_names (i), ':')
    || ''') FROM DUAL)'
    IF INSTR (LOWER (v_sql), LOWER (v_names (i))) > 0
    THEN
    GOTO do_it_again;
    END IF;
    END LOOP;
    p_sql_out := v_sql;
    END;
    END export_pkg_spread_sheet;
    After creating the package pass the parameter to package like this
    begin
    export_pkg_spread_sheet.download_excel('select * from emp');
    end;
    Package will allow to download the spread shreet. If i try to pass the a complex query to package it is returning error as mentioned below
    ORA-06502: PL/SQL: numeric or value error
    In the above package there is a procedure called procedure excel_content which actuall prints the data in the spread sheet this is where the error is coming from there is a variable called vsql have declared it as clob to hold large string but still i am getting the same error when trying to pass a big string.
    Please check the error and let me know.
    Thanks
    Sudhir

    Hi Praveen,
    This is the query i am using to pass
    Declare
    qry clob;
    Begin
    qry := ' 'SELECT
    AR.REGION_CODE,
    AR.DISTRICT_CODE,
    AR.TERRITORY_CODE,
    CASE
    WHEN AR.REGION_NAME IS NOT NULL AND AR.DISTRICT_NAME IS NULL AND AR.TERRITORY_NAME IS NULL THEN
    AR.REGION_NAME
    WHEN AR.REGION_NAME IS NOT NULL AND AR.DISTRICT_NAME IS NOT NULL AND AR.TERRITORY_NAME IS NULL THEN
    AR.DISTRICT_NAME
    WHEN AR.REGION_NAME IS NOT NULL AND AR.DISTRICT_NAME IS NOT NULL AND AR.TERRITORY_NAME IS NOT NULL THEN
    AR.TERRITORY_NAME
    END TERR_NAME,
    AR.EMPLOYEE_ID,
    AR.LAST_NAME,
    AR.FIRST_NAME,
    AR.GENDER,
    AR.DATE_OF_HIRE,
    AR.PROJECT_EMPLOYEE_TITLE_ID,
    AR.COMPANY_ID,
    AR.CUSTOMER_EMAIL,
    AR.BUSINESS_EMAIL,
    AR.CUSTOMER_VOICEMAIL,
    AR.CUSTOMER_VOICEMAIL_EXT,
    AR.QUINTILES_VOICEMAIL,
    AR.QUINTILES_VOICEMAIL_EXT , complete_roster_pkg_report.AR_F_ADDRESS_GET_LINE_1(AR.PROJECT_ID,AR.EMPLOYEE_ID,1 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Shipping_ADDRESS_TYPE_1" , complete_roster_pkg_report.AR_F_ADDRESS_GET_LINE_2(AR.PROJECT_ID,AR.EMPLOYEE_ID,1 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Shipping_ADDRESS_TYPE_2" , complete_roster_pkg_report.AR_F_ADDRESS_GET_PHONE(AR.PROJECT_ID,AR.EMPLOYEE_ID,1 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Shipping_Phone" , complete_roster_pkg_report.AR_F_ADDRESS_GET_CITY_TOWN(AR.PROJECT_ID,AR.EMPLOYEE_ID,1 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Shipping_City_Town" , complete_roster_pkg_report.AR_F_ADDRESS_GET_COUNTRY_NAME(AR.PROJECT_ID,AR.EMPLOYEE_ID,1 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Shipping_Country_Name" , complete_roster_pkg_report.AR_F_ADDRESS_GET_STATE_NAME(AR.PROJECT_ID,AR.EMPLOYEE_ID,1 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Shipping_State_Name" , complete_roster_pkg_report.AR_F_ADDRESS_GET_ZIP_POSTAL(AR.PROJECT_ID,AR.EMPLOYEE_ID,1 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Shipping_ZipCode" , complete_roster_pkg_report.AR_F_ADDRESS_GET_LINE_1(AR.PROJECT_ID,AR.EMPLOYEE_ID,3 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Storage_ADDRESS_TYPE_1" , complete_roster_pkg_report.AR_F_ADDRESS_GET_LINE_2(AR.PROJECT_ID,AR.EMPLOYEE_ID,3 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Storage_ADDRESS_TYPE_2" , complete_roster_pkg_report.AR_F_ADDRESS_GET_PHONE(AR.PROJECT_ID,AR.EMPLOYEE_ID,3 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Storage_Phone" , complete_roster_pkg_report.AR_F_ADDRESS_GET_CITY_TOWN(AR.PROJECT_ID,AR.EMPLOYEE_ID,3 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Storage_City_Town" , complete_roster_pkg_report.AR_F_ADDRESS_GET_COUNTRY_NAME(AR.PROJECT_ID,AR.EMPLOYEE_ID,3 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Storage_Country_Name" , complete_roster_pkg_report.AR_F_ADDRESS_GET_STATE_NAME(AR.PROJECT_ID,AR.EMPLOYEE_ID,3 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Storage_State_Name" , complete_roster_pkg_report.AR_F_ADDRESS_GET_ZIP_POSTAL(AR.PROJECT_ID,AR.EMPLOYEE_ID,3 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Storage_ZipCode" , complete_roster_pkg_report.AR_F_ADDRESS_GET_LINE_1(AR.PROJECT_ID,AR.EMPLOYEE_ID,4 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Home_ADDRESS_TYPE_1" , complete_roster_pkg_report.AR_F_ADDRESS_GET_LINE_2(AR.PROJECT_ID,AR.EMPLOYEE_ID,4 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Home_ADDRESS_TYPE_2" , complete_roster_pkg_report.AR_F_ADDRESS_GET_PHONE(AR.PROJECT_ID,AR.EMPLOYEE_ID,4 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Home_Phone" , complete_roster_pkg_report.AR_F_ADDRESS_GET_CITY_TOWN(AR.PROJECT_ID,AR.EMPLOYEE_ID,4 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Home_City_Town" , complete_roster_pkg_report.AR_F_ADDRESS_GET_COUNTRY_NAME(AR.PROJECT_ID,AR.EMPLOYEE_ID,4 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Home_Country_Name" , complete_roster_pkg_report.AR_F_ADDRESS_GET_STATE_NAME(AR.PROJECT_ID,AR.EMPLOYEE_ID,4 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Home_State_Name" , complete_roster_pkg_report.AR_F_ADDRESS_GET_ZIP_POSTAL(AR.PROJECT_ID,AR.EMPLOYEE_ID,4 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Home_ZipCode" FROM AR_V_ROSTER AR
    LEFT JOIN AR_V_ADDRESS_HISTORY AAH
    ON
    (AR.PROJECT_ID = AAH.PROJECT_ID AND
    AR.EMPLOYEE_ID = AAH.EMPLOYEE_ID)
    WHERE
    UPPER(AR.USER_EMPLOYEE_ID) = ''Q766730'' AND
    AR.PROJECT_ID = 81 ';
    export_pkg_spread_sheet.download_excel(qry);
    End;
    Praveen you can pass your DB table query to check the error. I am trying to pass as mentioned above.
    Please let me know if my question is not clear.
    Thanks
    Sudhir

  • ORA-06502: PL/SQL: numeric or value error by procedure

    Hi Experts,
    I have created the below package(Oracle 10.2):
    create or replace
    package UPCStreamDifferences AS
    TYPE NodeDetails IS REF CURSOR;
    query_str VARCHAR2(3000);
    newCounter number(10);
    oldCounter number(10);
    cfgname VARCHAR2(100);
    cfgversionmajor NUMBER(10);
    cfgversionminor NUMBER(10);
    cfgversiondefect NUMBER(10);
    cfgversionpatch VARCHAR2(10);
    appname VARCHAR2(100);
    appversionmajor NUMBER(10);
    appversionminor NUMBER(10);
    appversiondefect NUMBER(10);
    appversionpatch VARCHAR2(10);
    libname VARCHAR2(100);
    libversionmajor NUMBER(10);
    libversionminor NUMBER(10);
    libversiondefect NUMBER(10);
    libversionpatch VARCHAR2(10);
    StreamId NUMBER(10);
    LINE CLOB;
    tline CLOB;
    OLDLINE CLOB;
    NodeName varchar(200);
    NodeParameter varchar(200);
    NodeParameterValue varchar(500);
    StreamParameter varchar(200);
    StreamParameterValue varchar(500);
    LinkName varchar(200);
    LinkCopyNumber Number(10);
    StorageName VARCHAR2(100);
    Procedure ParameterValues(StreamName IN VARCHAR2,oldVersion IN NUMBER,newVersion IN NUMBER);
    END UPCStreamDifferences;
    create or replace
    package body UPCStreamDifferences AS
    procedure ParameterValues (StreamName IN VARCHAR2,
                                                oldVersion IN NUMBER,
                                                newVersion IN NUMBER) IS
    diffParam NodeDetails;
    BEGIN
    line := '';
    tline := '';
    execute immediate 'select streamId from el_streams where Name = :1' into StreamId using StreamName;
    query_str := 'WITH old_stream as (select  el_nodes.name, parameter, value  from el_node_params
                          left join el_nodes on
                            el_nodes.nodeversionid = el_node_params.nodeversionid
                            left join el_stream_versions on
                              el_nodes.streamversionid = el_stream_versions.streamversionid
                              where
                                   el_stream_versions.streamid ='|| streamID ||' and el_stream_versions.streamversion =' || oldVersion ||'),
          new_stream as (select  el_nodes.name, parameter, value from el_node_params
                        left join el_nodes on
                          el_nodes.nodeversionid = el_node_params.nodeversionid
                          left join el_stream_versions on
                            el_nodes.streamversionid = el_stream_versions.streamversionid
                            where
                                 el_stream_versions.streamid = '|| streamID ||'and el_stream_versions.streamversion = ' || newVersion ||')
                  select name AS NodeName,
                         count(src1) AS oldCounter,
                         count(src2) AS newCounter,
                         parameter as NodeParameter, Value as NodeParameterValue from ( select name, parameter, value, 1 AS src1, TO_NUMBER(NULL) AS src2 from old_stream
                                                                UNION ALL
                                                                select  name, parameter, value, TO_NUMBER(NULL) AS src1, 2 AS src2 from new_stream)
                                                          group by name, parameter, value
                  Having count(src1) <> count(src2)';
    OPEN diffParam FOR query_str;
    LOOP
        FETCH diffParam INTO NodeName,oldCounter,NewCounter,NodeParameter,NodeParameterValue;
        if  diffParam%FOUND then
              if newcounter >= 1 then
              line := line||NodeName||';F;'|| 'NEW!' ||Nodeparameter||'|'||NodeParametervalue||':';
              end if;
              if oldcounter >= 1 then
               tline := tline||NodeName||';F;'|| 'OLD!' ||Nodeparameter||'|'||NodeParametervalue||':';
              end if;
        else
            exit;
        END iF;
    END LOOP;
    dbms_output.put_line(line);
    dbms_output.put_line(tline);
    close diffParam;
    END ParameterValues;
    This is throwing errors for some cases not all.
    set serveroutput on;
    execute upcstreamdifferences.ParameterValues('UPC_CH_HIQ',167,168);
    Error starting at line 2 in command:
    execute upcstreamdifferences.ParameterValues('UPC_CH_HIQ',167,168)
    Error report:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "ELINK.UPCSTREAMDIFFERENCES", line 285
    ORA-06512: at line 1
    06502. 00000 -  "PL/SQL: numeric or value error%s"
    *Cause:
    *Action:CH_HIQ_BACKUP;F;NEW!BlockSize|:CH_HIQ_BACKUP;F;NEW!CompressionMethod|gzip:CH_HIQ_BACKUP;F;NEW!PrivateKey|:CH_HIQ_BACKUP;F;NEW!PublicKey|:CH_HIQ_TAIFUN_DISTRIBUTOR;F;NEW!Subdirectory|:CH_HIQ_KENAN_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_HIQ_OTF01A_COLLECTOR;F;NEW!OnlyCollectFilesOlderThan|:CH_HIQ_BACKUP;F;NEW!BehaviourOnError|Abort:CH_HIQ_BACKUP;F;NEW!FlagFileSuffix|:CH_HIQ_BACKUP;F;NEW!InputLinkDirectories|Yes:CH_HIQ_BACKUP;F;NEW!Port|:CH_HIQ_BACKUP;F;NEW!RemoteSuffix|:CH_HIQ_BACKUP;F;NEW!Ruleset|backup.pm:CH_HIQ_FRAUD_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_HIQ_DWH_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_HIQ_HU_TOOL_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_HIQ_BACKUP;F;NEW!RemotePrefix|:CH_HIQ_BACKUP;F;NEW!SourceIdDirectories|no:CH_HIQ_BACKUP;F;NEW!TransferProtocol|Local:CH_HIQ_BACKUP;F;NEW!TransferType|:CH_HIQ_R14_DECODER;F;NEW!RejectInvalid|1:CH_HIQ_HU_TOOL_DISTRIBUTOR;F;NEW!Subdirectory|:CH_HIQ_ICONX_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_HIQ_BACKUP;F;NEW!InputLinksToSubDirectories|FILE_VALIDATED=RAW/&SOURCEID:CH_HIQ_BACKUP;F;NEW!TargetDirectory|/backup/BACKUP_EL603/UPCCH_HIQ/:CH_HIQ_BACKUP;F;NEW!Username|:CH_HIQ_R10_DECODER;F;NEW!RejectInvalid|1:CH_HIQ_VSSOTF_COLLECTOR;F;NEW!OnlyCollectFilesOlderThan|:CH_HIQ_AUDIT_REJECTED_DISTRIBUTOR;F;NEW!Subdirectory|:CH_HIQ_DWH_DISTRIBUTOR;F;NEW!Subdirectory|:CH_HIQ_BACKUP;F;NEW!Cipher|:CH_HIQ_BACKUP;F;NEW!ConnectionRetryInterval|:CH_HIQ_BACKUP;F;NEW!MaximumReconnectionInterval|:CH_HIQ_TAIFUN_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_HIQ_GLB01A_COLLECTOR;F;NEW!OnlyCollectFilesOlderThan|:CH_HIQ_VSSBRN_COLLECTOR;F;NEW!OnlyCollectFilesOlderThan|:CH_HIQ_BACKUP;F;NEW!DestinationHost|:CH_HIQ_BACKUP;F;NEW!Password|:CH_HIQ_BACKUP;F;NEW!TransferMode|:CH_HIQ_BACKUP;F;NEW!TransferRetryCount|:CH_HIQ_R10_DECODER;F;NEW!EscapeWithBackslash|0:CH_HIQ_FRAUD_DISTRIBUTOR;F;NEW!Subdirectory|:CH_HIQ_BACKUP;F;NEW!ExternalCommand|:CH_HIQ_BACKUP;F;NEW!Kex|:CH_HIQ_BACKUP;F;NEW!MaxDays|0:CH_HIQ_BACKUP;F;NEW!MaxFiles|0:CH_HIQ_BACKUP;F;NEW!OriginalFilenameMask|:CH_HIQ_BACKUP;F;NEW!RemoteOS|:CH_HIQ_BACKUP;F;NEW!TempSuffix|:CH_HIQ_AUDIT_REJECTED_ENCODER;F;NEW!OutputDescriptionFileName|telephony.xml:CH_HIQ_PRIMECARRIER_DISTRIBUTOR;F;NEW!Subdirectory|:CH_HIQ_R14_DECODER;F;NEW!EscapeWithBackslash|0:CH_HIQ_R14_DECODER;F;NEW!PercentOfRejectedRecordsAllowed|:CH_HIQ_AUDIT_REJECTED_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_HIQ_ICONX_DISTRIBUTOR;F;NEW!Subdirectory|:CH_HIQ_BACKUP;F;NEW!Compression|:CH_HIQ_BACKUP;F;NEW!ConnectionEstablishmentTimeout|:CH_HIQ_BACKUP;F;NEW!ConnectionRetryCount|:CH_HIQ_BACKUP;F;NEW!DailyDirectories|no:CH_HIQ_BACKUP;F;NEW!MaximumSustainedNetworkDowntime|:CH_HIQ_BACKUP;F;NEW!TempDirectory|:CH_HIQ_BACKUP;F;NEW!TransferRetryInterval|:CH_HIQ_PRIMECARRIER_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_HIQ_R10_DECODER;F;NEW!PercentOfRejectedRecordsAllowed|:CH_HIQ_KENAN_DISTRIBUTOR;F;NEW!Subdirectory|:Another case:
    set serveroutput on;
    execute upcstreamdifferences.ParameterValues('UPC_CH_PPV',47,56);
    anonymous block completed
    CH_PPV_PRODIS_COLLECTOR;F;NEW!SourceDirectory|${EventLinkUserHome}/delivery/${StreamName}/INPUT/PRODIS:CH_PPV_CAS_COLLECTOR;F;NEW!RecordLimit|10000:CH_PPV_BACKUP;F;NEW!ConnectionRetryInterval|:CH_PPV_BACKUP;F;NEW!DestinationHost|:CH_PPV_BACKUP;F;NEW!InputLinkDirectories|Yes:CH_PPV_BACKUP;F;NEW!Password|:CH_PPV_BACKUP;F;NEW!TransferMode|:CH_PPV_RDC;F;NEW!SeparationValue1|:CH_PPV_DWH_DISTRIBUTOR;F;NEW!PrivateKey|${EventLinkUserHome}/.ssh/id_rsa:CH_PPV_FRAUD_DISTRIBUTOR;F;NEW!Password|:CH_PPV_FRAUD_DISTRIBUTOR;F;NEW!TempDirectory|${EventLinkUserHome}/delivery/${StreamName}/OUTPUT/FRAUD/tmp:CH_PPV_PRODIS_FDC;F;NEW!SequenceChecking|0:CH_PPV_PRODIS_DECODER;F;NEW!PercentOfRejectedRecordsAllowed|:CH_PPV_DWH_ENCODER;F;NEW!CreateEmptyOutputFileOnSeparation|0:CH_PPV_DECODER;F;NEW!EscapeWithBackslash|0:CH_PPV_DECODER;F;NEW!InvalidLink|INVALID:CH_PPV_CAS_COLLECTOR;F;NEW!CasHeartbeatInterval|5m:CH_PPV_CAS_COLLECTOR;F;NEW!MaxAgeOfFile|30m:CH_PPV_AUDIT_DISTRIBUTOR;F;NEW!BehaviourOnError|Abort:CH_PPV_BACKUP;F;NEW!ConnectionEstablishmentTimeout|:CH_PPV_BACKUP;F;NEW!ConnectionRetryCount|:CH_PPV_BACKUP;F;NEW!InputLinksToSubDirectories|CAS_COLLECTOR=RAW/&SOURCEID,COLLECTED=RAW/&SOURCEID:CH_PPV_BACKUP;F;NEW!Kex|:CH_PPV_BACKUP;F;NEW!MaxDays|0:CH_PPV_BACKUP;F;NEW!RemotePrefix|:CH_PPV_BACKUP;F;NEW!TempDirectory|:CH_PPV_RDC;F;NEW!DuplicateCounter|P_0_1_1:CH_PPV_RDC;F;NEW!InputCounter|:CH_PPV_RDC;F;NEW!OutputDurationCounter|:CH_PPV_RDC;F;NEW!SeparationValue4|:CH_PPV_DWH_DISTRIBUTOR;F;NEW!CompressionMethod|compress:CH_PPV_DWH_DISTRIBUTOR;F;NEW!PublicKey|${EventLinkUserHome}/.ssh/id_rsa.pub:CH_PPV_FRAUD_DISTRIBUTOR;F;NEW!Username|${EventLinkUser}:CH_PPV_PRODIS_FDC;F;NEW!TRS.DataStorage|${StreamName}:CH_PPV_KENAN_ENCODER;F;NEW!MaxAgeOfFile|:CH_PPV_KENAN_ENCODER;F;NEW!OutputFileNameCreationMask|PV1.&SEQ(7).&CREATIONTIME(%Y%m%d%H%M%S).&SOURCEID.00.&MIN(EL_PURCHASE_DATETIME)-&MAX(EL_PURCHASE_DATETIME):CH_PPV_DWH_ENCODER;F;NEW!OutputDescriptionFileName|output_description.xml:CH_PPV_DECODER;F;NEW!PercentOfRejectedRecordsAllowed|:CH_PPV_DECODER;F;NEW!TrailerIdentifier|:CH_PPV_VALIDATOR;F;NEW!Timezone|${Timezone}:CH_PPV_CAS_COLLECTOR;F;NEW!CommitInterval|10s:CH_PPV_BACKUP;F;NEW!BehaviourOnError|Abort:CH_PPV_BACKUP;F;NEW!ExternalCommand|:CH_PPV_BACKUP;F;NEW!SourceIdDirectories|no:CH_PPV_BACKUP;F;NEW!TargetDirectory|/backup/BACKUP_EL603/${StreamName}:CH_PPV_BACKUP;F;NEW!TransferProtocol|Local:CH_PPV_RDC;F;NEW!SeparationCondition|:CH_PPV_RDC;F;NEW!SeparationValue5|:CH_PPV_FRAUD_DISTRIBUTOR;F;NEW!PrivateKey|${EventLinkUserHome}/.ssh/id_rsa:CH_PPV_LOCAL_COLLECTOR;F;NEW!OnlyCollectFilesOlderThan|:CH_PPV_VALIDATOR;F;NEW!InputCounter|I_0_2_1:CH_PPV_PRODIS_COLLECTOR;F;NEW!Username|${EventLinkUser}:CH_PPV_CAS_COLLECTOR;F;NEW!TransactionIdFile|${EventLinkUserHome}/delivery/${StreamName}/WORKING/id_file.txt:CH_PPV_PRODIS_RDC;F;NEW!DuplicateCheckEnabled|No:CH_PPV_PRODIS_RDC;F;NEW!RestartInterval|1d:CH_PPV_PRODIS_RDC;F;NEW!TRS.DataStorage|${StreamName}:CH_PPV_AUDIT_DISTRIBUTOR;F;NEW!TargetDirectory|${EventLinkUserHome}/delivery/UPC_PE_Rejected_Loader_stream/INPUT/${Affiliate}_PPV:CH_PPV_AUDIT_DISTRIBUTOR;F;NEW!TempDirectory|${EventLinkUserHome}/delivery/UPC_PE_Rejected_Loader_stream/INPUT/${Affiliate}_PPV/temp:CH_PPV_BACKUP;F;NEW!BlockSize|:CH_PPV_BACKUP;F;NEW!Compression|:CH_PPV_BACKUP;F;NEW!FlagFileSuffix|:CH_PPV_BACKUP;F;NEW!OriginalFilenameMask|:CH_PPV_RDC;F;NEW!Keys|I_UA, I_IMS_PRODUCT_ID:CH_PPV_RDC;F;NEW!TRS.DataStorage|${StreamName}:CH_PPV_DWH_DISTRIBUTOR;F;NEW!Username|${EventLinkUser}:CH_PPV_KENAN_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_PPV_FRAUD_DISTRIBUTOR;F;NEW!PublicKey|${EventLinkUserHome}/.ssh/id_rsa.pub:CH_PPV_DWH_ENCODER;F;NEW!CreateEmptyOutputFileOnFlush|0:CH_PPV_CAS_COLLECTOR;F;NEW!OutputFileNameCreationMask|${Affiliate}CAS_&CREATIONTIME(%Y%m%d%H%M%S):CH_PPV_CAS_COLLECTOR;F;NEW!RestartInterval|1d:CH_PPV_AUDIT_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_PPV_BACKUP;F;NEW!MaximumReconnectionInterval|:CH_PPV_BACKUP;F;NEW!Port|:CH_PPV_BACKUP;F;NEW!TransferRetryInterval|:CH_PPV_RDC;F;NEW!DurationField|:CH_PPV_KENAN_DISTRIBUTOR;F;NEW!Subdirectory|:CH_PPV_KENAN_DISTRIBUTOR;F;NEW!TargetDirectory|${EventLinkUserHome}/delivery/${StreamName}/OUTPUT/KENAN:CH_PPV_FRAUD_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_PPV_LOCAL_COLLECTOR;F;NEW!BehaviourOnError|Abort:CH_PPV_KENAN_ENCODER;F;NEW!CreateEmptyOutputFileOnSeparation|0:CH_PPV_KENAN_ENCODER;F;NEW!OutputDescriptionFileName|dpv_old.xml:CH_PPV_KENAN_ENCODER;F;NEW!RecordLimit|:CH_PPV_DECODER;F;NEW!CSVFieldsContainDelimiters|0:CH_PPV_DECODER;F;NEW!DiscardEmptyFiles|0:CH_PPV_DECODER;F;NEW!OutputLink|DECODED:CH_PPV_DECODER;F;NEW!RecordIdentifier|:CH_PPV_CAS_COLLECTOR;F;NEW!NoDataTimeout|12h:CH_PPV_BACKUP;F;NEW!Cipher|:CH_PPV_BACKUP;F;NEW!MaximumSustainedNetworkDowntime|:CH_PPV_BACKUP;F;NEW!RemoteOS|:CH_PPV_BACKUP;F;NEW!Ruleset|backup.pm:CH_PPV_RDC;F;NEW!AuditFields|AUD_UA=I_UA, AUD_STU_NUMBER=I_STU_NUMBER, AUD_IMS_PRODUCT_ID=I_IMS_PRODUCT_ID:CH_PPV_RDC;F;NEW!SeparationValue2|:CH_PPV_RDC;F;NEW!SeparationValue3|:CH_PPV_DWH_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|CDR\.(.+):CH_PPV_DWH_DISTRIBUTOR;F;NEW!TargetDirectory|${EventLinkUserHome}/delivery/${StreamName}/OUTPUT/DWH:CH_PPV_FRAUD_DISTRIBUTOR;F;NEW!TargetDirectory|${EventLinkUserHome}/delivery/${StreamName}/OUTPUT/FRAUD:CH_PPV_HORIZON_BLN;F;NEW!KenanCounter|K_0_1_2:CH_PPV_DWH_ENCODER;F;NEW!MaxAgeOfFile|:CH_PPV_DECODER;F;NEW!AuditFiltered|1:CH_PPV_DECODER;F;NEW!HeaderIdentifier|:CH_PPV_AUDIT_ENCODER;F;NEW!OutputDescriptionFileName|vod.xml:CH_PPV_CAS_COLLECTOR;F;NEW!BindTimeout|10s:CH_PPV_PRODIS_RDC;F;NEW!OutputCounter|B_0_1_2:CH_PPV_AUDIT_DISTRIBUTOR;F;NEW!Subdirectory|:CH_PPV_BACKUP;F;NEW!PrivateKey|:CH_PPV_BACKUP;F;NEW!PublicKey|:CH_PPV_BACKUP;F;NEW!Username|:CH_PPV_RDC;F;NEW!DuplicateCheckEnabled|No:CH_PPV_RDC;F;NEW!DuplicateDurationCounter|:CH_PPV_RDC;F;NEW!OutputCounter|:CH_PPV_RDC;F;NEW!RestartInterval|1d:CH_PPV_DWH_DISTRIBUTOR;F;NEW!Subdirectory|UPC${Affiliate}_$1:CH_PPV_KENAN_DISTRIBUTOR;F;NEW!Username|${EventLinkUser}:CH_PPV_KENAN_DWH_BLN;F;NEW!ReprocessLimit|100d:CH_PPV_LOCAL_COLLECTOR;F;NEW!SourceDirectory|${EventLinkUserHome}/delivery/${StreamName}/INPUT/:CH_PPV_KENAN_ENCODER;F;NEW!CreateEmptyOutputFileOnFlush|0:CH_PPV_KENAN_ENCODER;F;NEW!SeparateSequenceNumbersInOutput|0:CH_PPV_DWH_ENCODER;F;NEW!CreateEmptyOutputFiles|0:CH_PPV_PRODIS_COLLECTOR;F;NEW!DeleteSource|No:CH_PPV_PRODIS_COLLECTOR;F;NEW!RemotePrefix|old_:CH_PPV_CAS_COLLECTOR;F;NEW!CloseFilesAtSchedule|0:CH_PPV_BACKUP;F;NEW!CompressionMethod|gzip:CH_PPV_BACKUP;F;NEW!DailyDirectories|no:CH_PPV_BACKUP;F;NEW!MaxFiles|0:CH_PPV_BACKUP;F;NEW!RemoteSuffix|:CH_PPV_BACKUP;F;NEW!TempSuffix|:CH_PPV_BACKUP;F;NEW!TransferRetryCount|:CH_PPV_BACKUP;F;NEW!TransferType|:CH_PPV_RDC;F;NEW!InputDurationCounter|:CH_PPV_DWH_DISTRIBUTOR;F;NEW!Password|:CH_PPV_FRAUD_DISTRIBUTOR;F;NEW!Subdirectory|:CH_PPV_HORIZON_BLN;F;NEW!OracleDatabaseName|${EventLinkDatabase}:CH_PPV_KENAN_ENCODER;F;NEW!CreateEmptyOutputFiles|0:CH_PPV_KENAN_ENCODER;F;NEW!DataRecordType|PV1:CH_PPV_DECODER;F;NEW!DiscardOnRejection|0:CH_PPV_DECODER;F;NEW!InputDescription|cas.desc:CH_PPV_DECODER;F;NEW!RejectInvalid|0:CH_PPV_DECODER;F;NEW!SendInvalid|1:CH_PPV_VALIDATOR;F;NEW!RejectedCounter|P_0_1_1:CH_PPV_VALIDATOR;F;NEW!RestartInterval|1d:
    CH_PPV_OUTPUT_BACKUP;F;OLD!Compression|:CH_PPV_OUTPUT_BACKUP;F;OLD!Port|:CH_PPV_OUTPUT_BACKUP;F;OLD!TempDirectory|:CH_PPV_OUTPUT_BACKUP;F;OLD!TransferRetryCount|:CH_PPV_OUTPUT_BACKUP;F;OLD!TransferType|:CH_PPV_AUDIT_ENCODER;F;OLD!OutputDescriptionFileName|audit_file_description.xml:CH_PPV_RDC;F;OLD!TRS.DataStorage|UPCCH_PPV:CH_PPV_DWH_DISTRIBUTOR;F;OLD!Username|u1elkpe:CH_PPV_KENAN_ENCODER;F;OLD!CreateEmptyOutputFileOnSeparation|:CH_PPV_KENAN_ENCODER;F;OLD!CreateEmptyOutputFiles|:CH_PPV_KENAN_ENCODER;F;OLD!OutputFileNameCreationMask|PV1.&SEQ(7).&CREATIONTIME(%Y%m%d%H%M%S).&SOURCEID.00.&MIN(EL_PURCHASE_LOCALTIME)-&MAX(EL_PURCHASE_LOCALTIME2):CH_PPV_KENAN_DWH_BLN;F;OLD!AuditOutType|${AuditOutType}:CH_PPV_RAW_BACKUP;F;OLD!ConnectionRetryInterval|:CH_PPV_RAW_BACKUP;F;OLD!TempSuffix|:CH_PPV_PRODIS_FDC;F;OLD!TRS.DataStorage|UPCCH_PPV:CH_PPV_HORIZON_BLN;F;OLD!OracleDatabaseName|U1ELKPE:CH_PPV_OUTPUT_BACKUP;F;OLD!BehaviourOnError|Restart:CH_PPV_OUTPUT_BACKUP;F;OLD!Kex|:CH_PPV_OUTPUT_BACKUP;F;OLD!TargetDirectory|/backup/BACKUP_EL603/UPCCH_PPV:CH_PPV_PRODIS_RDC;F;OLD!NodeName|CH_PPV_PRODIS_RDC:CH_PPV_AUDIT_DISTRIBUTOR;F;OLD!TempDirectory|${EventLinkUserHome}/delivery/UPC_PE_Rejected_Loader_stream/INPUT/CH_PPV/temp:CH_PPV_RDC;F;OLD!StreamName|${StreamName}:CH_PPV_DWH_DISTRIBUTOR;F;OLD!PrivateKey|:CH_PPV_KENAN_ENCODER;F;OLD!CreateEmptyOutputFileOnFlush|:CH_PPV_RAW_BACKUP;F;OLD!BehaviourOnError|Restart:CH_PPV_RAW_BACKUP;F;OLD!FlagFileSuffix|:CH_PPV_RAW_BACKUP;F;OLD!OriginalFilenameMask|:CH_PPV_RAW_BACKUP;F;OLD!PrivateKey|:CH_PPV_RAW_BACKUP;F;OLD!RemoteOS|:CH_PPV_RAW_BACKUP;F;OLD!TargetDirectory|/backup/BACKUP_EL603/UPCCH_PPV/RAW:CH_PPV_DECODER;F;OLD!DiscardFailureThreshold|15:CH_PPV_VALIDATOR;F;OLD!AuditOutType|${AuditOutType}:CH_PPV_OUTPUT_BACKUP;F;OLD!BlockSize|:CH_PPV_OUTPUT_BACKUP;F;OLD!ConnectionRetryInterval|:CH_PPV_OUTPUT_BACKUP;F;OLD!FlagFileSuffix|:CH_PPV_OUTPUT_BACKUP;F;OLD!MaxDays|30:CH_PPV_OUTPUT_BACKUP;F;OLD!MaxFiles|0:CH_PPV_OUTPUT_BACKUP;F;OLD!MaximumSustainedNetworkDowntime|:CH_PPV_OUTPUT_BACKUP;F;OLD!Password|:CH_PPV_OUTPUT_BACKUP;F;OLD!RemoteOS|:CH_PPV_OUTPUT_BACKUP;F;OLD!TransferMode|:CH_PPV_PRODIS_RDC;F;OLD!TRS.DataStorage|UPCCH_PPV:CH_PPV_DWH_ENCODER;F;OLD!CreateEmptyOutputFileOnSeparation|:CH_PPV_DWH_ENCODER;F;OLD!MaxAgeOfFile|1M:CH_PPV_RDC;F;OLD!DuplicateCheckEnabled|Yes:CH_PPV_DWH_DISTRIBUTOR;F;OLD!TargetDirectory|${EventLinkUserHome}/delivery/UPCCH_PPV/OUTPUT/DWH:CH_PPV_RAW_BACKUP;F;OLD!BlockSize|:CH_PPV_RAW_BACKUP;F;OLD!DailyDirectories|no:CH_PPV_RAW_BACKUP;F;OLD!InputLinkDirectories|No:CH_PPV_RAW_BACKUP;F;OLD!RemoteSuffix|.&CREATIONTIME(%Y%m%d%H%M%S):CH_PPV_RAW_BACKUP;F;OLD!TransferRetryInterval|:CH_PPV_PRODIS_COLLECTOR;F;OLD!RemotePrefix|:CH_PPV_LOCAL_COLLECTOR;F;OLD!SourceDirectory|${EventLinkUserHome}/delivery/UPCCH_PPV/INPUT/:CH_PPV_PRODIS_COMMON_BLN;F;OLD!StreamName|${StreamName}:CH_PPV_HORIZON_BLN;F;OLD!AuditOutType|${AuditOutType}:CH_PPV_OUTPUT_BACKUP;F;OLD!InputLinkDirectories|Yes:CH_PPV_DWH_ENCODER;F;OLD!CreateEmptyOutputFileOnFlush|:CH_PPV_DWH_ENCODER;F;OLD!CreateEmptyOutputFiles|:CH_PPV_KENAN_ENCODER;F;OLD!SeparateSequenceNumbersInOutput|1:CH_PPV_KENAN_DISTRIBUTOR;F;OLD!TargetDirectory|${EventLinkUserHome}/delivery/UPCCH_PPV/OUTPUT/KENAN:CH_PPV_FRAUD_DISTRIBUTOR;F;OLD!TargetDirectory|${EventLinkUserHome}/delivery/UPCCH_PPV/OUTPUT/FRAUD:CH_PPV_FRAUD_DISTRIBUTOR;F;OLD!Username|u1elkpe:CH_PPV_KENAN_DWH_BLN;F;OLD!StreamName|${StreamName}:CH_PPV_RAW_BACKUP;F;OLD!ConnectionEstablishmentTimeout|:CH_PPV_RAW_BACKUP;F;OLD!Port|:CH_PPV_RAW_BACKUP;F;OLD!Ruleset|backup.pm:CH_PPV_CAS_COLLECTOR;F;OLD!BindTimeout|10:CH_PPV_CAS_COLLECTOR;F;OLD!CasHeartbeatInterval|300:CH_PPV_OUTPUT_BACKUP;F;OLD!DailyDirectories|no:CH_PPV_OUTPUT_BACKUP;F;OLD!RemotePrefix|:CH_PPV_OUTPUT_BACKUP;F;OLD!SourceIdDirectories|no:CH_PPV_OUTPUT_BACKUP;F;OLD!Username|:CH_PPV_PRODIS_RDC;F;OLD!DuplicateCheckEnabled|Yes:CH_PPV_DWH_ENCODER;F;OLD!OutputDescriptionFileName|brio_description.xml:CH_PPV_DWH_DISTRIBUTOR;F;OLD!PublicKey|:CH_PPV_KENAN_ENCODER;F;OLD!MaxAgeOfFile|86400:CH_PPV_KENAN_ENCODER;F;OLD!OutputDescriptionFileName|kenan_description.xml:CH_PPV_FRAUD_DISTRIBUTOR;F;OLD!PrivateKey|:CH_PPV_RAW_BACKUP;F;OLD!CompressionMethod|gzip:CH_PPV_RAW_BACKUP;F;OLD!ConnectionRetryCount|:CH_PPV_RAW_BACKUP;F;OLD!RemotePrefix|:CH_PPV_RAW_BACKUP;F;OLD!TransferMode|:CH_PPV_RAW_BACKUP;F;OLD!Username|:CH_PPV_CAS_COLLECTOR;F;OLD!CommitInterval|10:CH_PPV_CAS_COLLECTOR;F;OLD!OutputFileNameCreationMask|CHCAS_&CREATIONTIME(%Y%m%d%H%M%S):CH_PPV_HORIZON_BLN;F;OLD!StreamName|${StreamName}:CH_PPV_DECODER;F;OLD!SendDiscardedFilesToLink|:CH_PPV_OUTPUT_BACKUP;F;OLD!CompressionMethod|gzip:CH_PPV_OUTPUT_BACKUP;F;OLD!ConnectionEstablishmentTimeout|:CH_PPV_OUTPUT_BACKUP;F;OLD!ConnectionRetryCount|:CH_PPV_OUTPUT_BACKUP;F;OLD!DestinationHost|:CH_PPV_OUTPUT_BACKUP;F;OLD!MaximumReconnectionInterval|:CH_PPV_OUTPUT_BACKUP;F;OLD!OriginalFilenameMask|:CH_PPV_OUTPUT_BACKUP;F;OLD!TransferProtocol|Local:CH_PPV_OUTPUT_BACKUP;F;OLD!TransferRetryInterval|:CH_PPV_PRODIS_RDC;F;OLD!OutputCounter|B_0_2_1:CH_PPV_AUDIT_DISTRIBUTOR;F;OLD!TargetDirectory|${EventLinkUserHome}/delivery/UPC_PE_Rejected_Loader_stream/INPUT/CH_PPV:CH_PPV_DWH_DISTRIBUTOR;F;OLD!CompressionMethod|no compression:CH_PPV_FRAUD_DISTRIBUTOR;F;OLD!TempDirectory|${EventLinkUserHome}/delivery/UPCCH_PPV/OUTPUT/FRAUD/tmp:CH_PPV_RAW_BACKUP;F;OLD!Cipher|:CH_PPV_RAW_BACKUP;F;OLD!Compression|:CH_PPV_RAW_BACKUP;F;OLD!MaximumReconnectionInterval|:CH_PPV_RAW_BACKUP;F;OLD!MaximumSustainedNetworkDowntime|:CH_PPV_RAW_BACKUP;F;OLD!TransferType|:CH_PPV_PRODIS_COLLECTOR;F;OLD!DeleteSource|Yes:CH_PPV_LOCAL_COLLECTOR;F;OLD!BehaviourOnError|Restart:CH_PPV_HORIZON_BLN;F;OLD!KenanCounter|K_0_2_1:CH_PPV_VALIDATOR;F;OLD!StreamName|${StreamName}:CH_PPV_OUTPUT_BACKUP;F;OLD!Cipher|:CH_PPV_OUTPUT_BACKUP;F;OLD!ExternalCommand|:CH_PPV_OUTPUT_BACKUP;F;OLD!PrivateKey|:CH_PPV_OUTPUT_BACKUP;F;OLD!RemoteSuffix|:CH_PPV_AUDIT_DISTRIBUTOR;F;OLD!BehaviourOnError|Restart:CH_PPV_RDC;F;OLD!Keys|I_UA, I_PURCHASE_DATE, I_PURCHASE_TIME, I_IMS_PRODUCT_ID:CH_PPV_KENAN_ENCODER;F;OLD!RecordLimit|100:CH_PPV_KENAN_DISTRIBUTOR;F;OLD!Username|u1elkpe:CH_PPV_FRAUD_DISTRIBUTOR;F;OLD!Password|u1elkpe:CH_PPV_KENAN_DWH_BLN;F;OLD!202_DEFAULT_TIME|000000:CH_PPV_RAW_BACKUP;F;OLD!DestinationHost|:CH_PPV_RAW_BACKUP;F;OLD!ExternalCommand|:CH_PPV_RAW_BACKUP;F;OLD!Kex|:CH_PPV_RAW_BACKUP;F;OLD!Password|:CH_PPV_RAW_BACKUP;F;OLD!PublicKey|:CH_PPV_RAW_BACKUP;F;OLD!SourceIdDirectories|yes:CH_PPV_RAW_BACKUP;F;OLD!TempDirectory|:CH_PPV_RAW_BACKUP;F;OLD!TransferProtocol|Local:CH_PPV_PRODIS_FDC;F;OLD!SequenceChecking|1:CH_PPV_OUTPUT_BACKUP;F;OLD!PublicKey|:CH_PPV_OUTPUT_BACKUP;F;OLD!Ruleset|backup.pm:CH_PPV_OUTPUT_BACKUP;F;OLD!TempSuffix|:CH_PPV_PRODIS_RDC;F;OLD!StreamName|${StreamName}:CH_PPV_DWH_DISTRIBUTOR;F;OLD!Password|u1elkpe:CH_PPV_FRAUD_DISTRIBUTOR;F;OLD!PublicKey|:CH_PPV_KENAN_DWH_BLN;F;OLD!LsAdmin|${EventLinkUserHome}/EventLink/lookup_server3/bin/ls_admin:CH_PPV_KENAN_DWH_BLN;F;OLD!ReprocessLimit|100:CH_PPV_RAW_BACKUP;F;OLD!MaxDays|30:CH_PPV_RAW_BACKUP;F;OLD!MaxFiles|0:CH_PPV_RAW_BACKUP;F;OLD!TransferRetryCount|:CH_PPV_PRODIS_COLLECTOR;F;OLD!SourceDirectory|${EventLinkUserHome}/delivery/UPCCH_PPV/INPUT/PRODIS:CH_PPV_PRODIS_COLLECTOR;F;OLD!Username|u1elkpe:CH_PPV_CAS_COLLECTOR;F;OLD!TransactionIdFile|${EventLinkUserHome}/delivery/UPCCH_PPV/WORKING/id_file.txt:CH_PPV_PRODIS_COMMON_BLN;F;OLD!AuditOutType|${AuditOutType}:CH_PPV_DECODER;F;OLD!NetworkElementID|CAS:CH_PPV_DECODER;F;OLD!UseRecordSequenceNumbers|:I do not understand why this throws unexpected errors. Can you please help in resolving the problem.
    Edited by: BluShadow on 09-Oct-2012 09:37
    added {noformat}{noformat} tags for readability.  Please read {message:id=9360002} and learn to do this yourself in future.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    Hi,
    Returned rows from the query are as follows;
    "NODENAME"     "OLDCOUNTER"     "NEWCOUNTER"     "NODEPARAMETER"     "NODEPARAMETERVALUE"
    "CH_HIQ_ICONX_BACKUP"     1     0     "BehaviourOnError"     "Abort"
    "CH_HIQ_ICONX_BACKUP"     1     0     "DestinationHost"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "Kex"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "TransferMode"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "TransferRetryInterval"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "ConnectionRetryCount"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "DailyDirectories"     "no"
    "CH_HIQ_DWH_BACKUP"     1     0     "MaximumSustainedNetworkDowntime"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "OriginalFilenameMask"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "TempSuffix"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "ConnectionRetryCount"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "DestinationHost"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "MaxDays"     "0"
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "MaximumSustainedNetworkDowntime"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "Ruleset"     "backup.pm"
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "TransferRetryCount"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "TransferType"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "Cipher"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "MaximumReconnectionInterval"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "ConnectionEstablishmentTimeout"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "ExternalCommand"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "RemoteSuffix"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "TransferProtocol"     "Local"
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "TransferRetryCount"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "TransferRetryInterval"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "BlockSize"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "RemoteOS"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "RemotePrefix"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "TransferProtocol"     "Local"
    "CH_HIQ_RAW_BACKUP"     1     0     "TransferRetryCount"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "BehaviourOnError"     "Abort"
    "CH_HIQ_FRAUD_BACKUP"     1     0     "Compression"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "DailyDirectories"     "no"
    "CH_HIQ_FRAUD_BACKUP"     1     0     "MaxDays"     "0"
    "CH_HIQ_FRAUD_BACKUP"     1     0     "PublicKey"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "BlockSize"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "CompressionMethod"     "gzip"
    "CH_HIQ_KENAN_BACKUP"     1     0     "ConnectionRetryInterval"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "FlagFileSuffix"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "TempSuffix"     ""
    "CH_HIQ_BACKUP"     0     1     "BlockSize"     ""
    "CH_HIQ_BACKUP"     0     1     "CompressionMethod"     "gzip"
    "CH_HIQ_BACKUP"     0     1     "PrivateKey"     ""
    "CH_HIQ_BACKUP"     0     1     "PublicKey"     ""
    "CH_HIQ_TAIFUN_DISTRIBUTOR"     0     1     "Subdirectory"     ""
    "CH_HIQ_KENAN_DISTRIBUTOR"     0     1     "OutputFileNameExtractionMask"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "Cipher"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "MaximumReconnectionInterval"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "MaximumSustainedNetworkDowntime"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "Port"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "RemoteOS"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "Ruleset"     "backup.pm"
    "CH_HIQ_ICONX_BACKUP"     1     0     "TransferType"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "ExternalCommand"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "Ruleset"     "backup.pm"
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "BehaviourOnError"     "Abort"
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "Compression"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "RemoteSuffix"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "TransferProtocol"     "Local"
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "TransferRetryInterval"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "Compression"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "ConnectionRetryCount"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "PrivateKey"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "RemoteSuffix"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "Ruleset"     "backup.pm"
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "TempDirectory"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "MaxFiles"     "0"
    "CH_HIQ_RAW_BACKUP"     1     0     "ConnectionRetryInterval"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "OriginalFilenameMask"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "Password"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "PrivateKey"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "ConnectionRetryCount"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "RemoteSuffix"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "TargetDirectory"     "/backup/BACKUP_EL603/UPCCH_HIQ/FRAUD"
    "CH_HIQ_AUDIT_REJECTED_ENCODER"     1     0     "OutputDescriptionFileName"     "rejected_to_audit_description.xml"
    "CH_HIQ_KENAN_BACKUP"     1     0     "BehaviourOnError"     "Abort"
    "CH_HIQ_KENAN_BACKUP"     1     0     "DailyDirectories"     "no"
    "CH_HIQ_KENAN_BACKUP"     1     0     "ExternalCommand"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "Kex"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "TransferType"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "Username"     ""
    "CH_HIQ_OTF01A_COLLECTOR"     0     1     "OnlyCollectFilesOlderThan"     ""
    "CH_HIQ_BACKUP"     0     1     "BehaviourOnError"     "Abort"
    "CH_HIQ_BACKUP"     0     1     "FlagFileSuffix"     ""
    "CH_HIQ_BACKUP"     0     1     "InputLinkDirectories"     "Yes"
    "CH_HIQ_BACKUP"     0     1     "Port"     ""
    "CH_HIQ_BACKUP"     0     1     "RemoteSuffix"     ""
    "CH_HIQ_BACKUP"     0     1     "Ruleset"     "backup.pm"
    "CH_HIQ_FRAUD_DISTRIBUTOR"     0     1     "OutputFileNameExtractionMask"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "ConnectionRetryCount"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "TargetDirectory"     "/backup/BACKUP_EL603/UPCCH_HIQ/ICONX"
    "CH_HIQ_DWH_BACKUP"     1     0     "FlagFileSuffix"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "Kex"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "RemoteSuffix"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "TransferRetryInterval"     ""
    "CH_HIQ_VALIDATION"     1     0     "MigrationCutOffDate"     "20100924000000"
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "PrivateKey"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "TransferRetryInterval"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "CompressionMethod"     "gzip"
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "FlagFileSuffix"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "ConnectionEstablishmentTimeout"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "FlagFileSuffix"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "MaxFiles"     "0"
    "CH_HIQ_RAW_BACKUP"     1     0     "MaximumSustainedNetworkDowntime"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "TempSuffix"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "ExternalCommand"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "FlagFileSuffix"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "PrivateKey"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "MaxDays"     "0"
    "CH_HIQ_KENAN_BACKUP"     1     0     "MaxFiles"     "0"
    "CH_HIQ_KENAN_BACKUP"     1     0     "SourceIdDirectories"     "no"
    "CH_HIQ_KENAN_BACKUP"     1     0     "TransferMode"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "TransferProtocol"     "Local"
    "CH_HIQ_DWH_DISTRIBUTOR"     0     1     "OutputFileNameExtractionMask"     ""
    "CH_HIQ_HU_TOOL_DISTRIBUTOR"     0     1     "OutputFileNameExtractionMask"     ""
    "CH_HIQ_BACKUP"     0     1     "RemotePrefix"     ""
    "CH_HIQ_BACKUP"     0     1     "SourceIdDirectories"     "no"
    "CH_HIQ_BACKUP"     0     1     "TransferProtocol"     "Local"
    "CH_HIQ_BACKUP"     0     1     "TransferType"     ""
    "CH_HIQ_R14_DECODER"     0     1     "RejectInvalid"     "1"
    "CH_HIQ_ICONX_BACKUP"     1     0     "BlockSize"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "CompressionMethod"     "gzip"
    "CH_HIQ_ICONX_BACKUP"     1     0     "MaxDays"     "0"
    "CH_HIQ_ICONX_BACKUP"     1     0     "Password"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "SourceIdDirectories"     "no"
    "CH_HIQ_ICONX_BACKUP"     1     0     "TransferProtocol"     "Local"
    "CH_HIQ_ICONX_BACKUP"     1     0     "TransferRetryCount"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "Password"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "TransferProtocol"     "Local"
    "CH_HIQ_DWH_BACKUP"     1     0     "Username"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "DailyDirectories"     "no"
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "OriginalFilenameMask"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "TempDirectory"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "TransferMode"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "BehaviourOnError"     "Abort"
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "ConnectionEstablishmentTimeout"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "MaximumSustainedNetworkDowntime"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "OriginalFilenameMask"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "RemoteOS"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "TransferType"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "MaxDays"     "0"
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "PublicKey"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "TempSuffix"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "Compression"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "Kex"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "Ruleset"     "backup.pm"
    "CH_HIQ_RAW_BACKUP"     1     0     "Username"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "ConnectionRetryInterval"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "Kex"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "OriginalFilenameMask"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "Port"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "RemotePrefix"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "TransferRetryInterval"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "TransferType"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "DestinationHost"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "Port"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "TransferRetryCount"     ""
    "CH_HIQ_HU_TOOL_DISTRIBUTOR"     0     1     "Subdirectory"     ""
    "CH_HIQ_ICONX_DISTRIBUTOR"     0     1     "OutputFileNameExtractionMask"     ""
    "CH_HIQ_BACKUP"     0     1     "InputLinksToSubDirectories"     "FILE_VALIDATED=RAW/&SOURCEID"
    "CH_HIQ_BACKUP"     0     1     "TargetDirectory"     "/backup/BACKUP_EL603/UPCCH_HIQ/"
    "CH_HIQ_BACKUP"     0     1     "Username"     ""
    "CH_HIQ_R10_DECODER"     0     1     "RejectInvalid"     "1"
    "CH_HIQ_VSSOTF_COLLECTOR"     0     1     "OnlyCollectFilesOlderThan"     ""
    "CH_HIQ_AUDIT_REJECTED_DISTRIBUTOR"     0     1     "Subdirectory"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "OriginalFilenameMask"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "PrivateKey"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "RemoteSuffix"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "TempDirectory"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "BehaviourOnError"     "Abort"
    "CH_HIQ_DWH_BACKUP"     1     0     "Cipher"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "ConnectionEstablishmentTimeout"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "ConnectionRetryInterval"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "MaxFiles"     "0"
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "TempSuffix"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "FlagFileSuffix"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "Password"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "Port"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "TargetDirectory"     "/backup/BACKUP_EL603/UPCCH_HIQ/TAIFUN"
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "TransferRetryCount"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "Username"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "MaximumReconnectionInterval"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "MaximumSustainedNetworkDowntime"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "OriginalFilenameMask"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "Password"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "RemoteOS"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "Ruleset"     "backup.pm"
    "CH_HIQ_RAW_BACKUP"     1     0     "BehaviourOnError"     "Abort"
    "CH_HIQ_RAW_BACKUP"     1     0     "Cipher"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "ConnectionRetryCount"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "DailyDirectories"     "no"
    "CH_HIQ_RAW_BACKUP"     1     0     "DestinationHost"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "SourceIdDirectories"     "yes"
    "CH_HIQ_RAW_BACKUP"     1     0     "TempDirectory"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "TransferRetryInterval"     ""
    "CH_HIQ_LOOKUPS"     1     0     "LsAdmin"     "${EventLinkUserHome}/EventLink/lookup_server3/bin/ls_admin"
    "CH_HIQ_FRAUD_BACKUP"     1     0     "Cipher"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "DestinationHost"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "Ruleset"     "backup.pm"
    "CH_HIQ_KENAN_BACKUP"     1     0     "TargetDirectory"     "/backup/BACKUP_EL603/UPCCH_HIQ/KENAN"
    "CH_HIQ_KENAN_BACKUP"     1     0     "TransferRetryInterval"     ""
    "CH_HIQ_DWH_DISTRIBUTOR"     0     1     "Subdirectory"     ""
    "CH_HIQ_BACKUP"     0     1     "Cipher"     ""
    "CH_HIQ_BACKUP"     0     1     "ConnectionRetryInterval"     ""
    "CH_HIQ_BACKUP"     0     1     "MaximumReconnectionInterval"     ""
    "CH_HIQ_TAIFUN_DISTRIBUTOR"     0     1     "OutputFileNameExtractionMask"     ""
    "CH_HIQ_GLB01A_COLLECTOR"     0     1     "OnlyCollectFilesOlderThan"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "Compression"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "DailyDirectories"     "no"
    "CH_HIQ_ICONX_BACKUP"     1     0     "ExternalCommand"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "MaxFiles"     "0"
    "CH_HIQ_ICONX_BACKUP"     1     0     "PublicKey"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "TempSuffix"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "Username"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "MaxDays"     "0"
    "CH_HIQ_DWH_BACKUP"     1     0     "PublicKey"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "TransferType"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "BlockSize"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "ExternalCommand"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "FlagFileSuffix"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "RemotePrefix"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "SourceIdDirectories"     "no"
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "TargetDirectory"     "/backup/BACKUP_EL603/UPCCH_HIQ/AUDIT_REJECTED"
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "MaxDays"     "0"
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "PublicKey"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "RemotePrefix"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "SourceIdDirectories"     "no"
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "DailyDirectories"     "no"
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "PrivateKey"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "MaxDays"     "0"
    "CH_HIQ_RAW_BACKUP"     1     0     "TargetDirectory"     "/backup/BACKUP_EL603/UPCCH_HIQ/RAW"
    "CH_HIQ_RAW_BACKUP"     1     0     "TransferMode"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "Password"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "RemoteOS"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "SourceIdDirectories"     "no"
    "CH_HIQ_FRAUD_BACKUP"     1     0     "TempDirectory"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "ConnectionRetryCount"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "OriginalFilenameMask"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "PrivateKey"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "PublicKey"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "RemoteOS"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "RemotePrefix"     ""
    "CH_HIQ_VSSBRN_COLLECTOR"     0     1     "OnlyCollectFilesOlderThan"     ""
    "CH_HIQ_BACKUP"     0     1     "DestinationHost"     ""
    "CH_HIQ_BACKUP"     0     1     "Password"     ""
    "CH_HIQ_BACKUP"     0     1     "TransferMode"     ""
    "CH_HIQ_BACKUP"     0     1     "TransferRetryCount"     ""
    "CH_HIQ_R10_DECODER"     0     1     "EscapeWithBackslash"     "0"
    "CH_HIQ_FRAUD_DISTRIBUTOR"     0     1     "Subdirectory"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "BlockSize"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "ConnectionRetryInterval"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "DestinationHost"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "MaxFiles"     "0"
    "CH_HIQ_DWH_BACKUP"     1     0     "MaximumReconnectionInterval"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "Port"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "PrivateKey"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "SourceIdDirectories"     "no"
    "CH_HIQ_DWH_BACKUP"     1     0     "TempDirectory"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "TransferMode"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "TransferRetryCount"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "CompressionMethod"     "gzip"
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "Password"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "PublicKey"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "Username"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "BlockSize"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "ConnectionRetryInterval"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "DailyDirectories"     "no"
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "DestinationHost"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "Kex"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "MaxFiles"     "0"
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "TempSuffix"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "TransferMode"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "BlockSize"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "Cipher"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "Kex"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "TransferType"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "Username"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "CompressionMethod"     "gzip"
    "CH_HIQ_RAW_BACKUP"     1     0     "ExternalCommand"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "MaximumReconnectionInterval"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "PublicKey"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "TransferType"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "BlockSize"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "CompressionMethod"     "gzip"
    "CH_HIQ_FRAUD_BACKUP"     1     0     "MaximumReconnectionInterval"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "Ruleset"     "backup.pm"
    "CH_HIQ_FRAUD_BACKUP"     1     0     "TransferMode"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "TransferRetryCount"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "Username"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "Cipher"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "Compression"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "ConnectionEstablishmentTimeout"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "MaximumReconnectionInterval"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "Password"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "RemoteSuffix"     ""
    "CH_HIQ_KENAN_BACKUP"     1     0     "TempDirectory"     ""
    "CH_HIQ_BACKUP"     0     1     "ExternalCommand"     ""
    "CH_HIQ_BACKUP"     0     1     "Kex"     ""
    "CH_HIQ_BACKUP"     0     1     "MaxDays"     "0"
    "CH_HIQ_BACKUP"     0     1     "MaxFiles"     "0"
    "CH_HIQ_BACKUP"     0     1     "OriginalFilenameMask"     ""
    "CH_HIQ_BACKUP"     0     1     "RemoteOS"     ""
    "CH_HIQ_BACKUP"     0     1     "TempSuffix"     ""
    "CH_HIQ_AUDIT_REJECTED_ENCODER"     0     1     "OutputDescriptionFileName"     "telephony.xml"
    "CH_HIQ_PRIMECARRIER_DISTRIBUTOR"     0     1     "Subdirectory"     ""
    "CH_HIQ_R14_DECODER"     0     1     "EscapeWithBackslash"     "0"
    "CH_HIQ_R14_DECODER"     0     1     "PercentOfRejectedRecordsAllowed"     ""
    "CH_HIQ_AUDIT_REJECTED_DISTRIBUTOR"     0     1     "OutputFileNameExtractionMask"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "ConnectionEstablishmentTimeout"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "ConnectionRetryInterval"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "FlagFileSuffix"     ""
    "CH_HIQ_ICONX_BACKUP"     1     0     "RemotePrefix"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "Compression"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "CompressionMethod"     "gzip"
    "CH_HIQ_DWH_BACKUP"     1     0     "ConnectionEstablishmentTimeout"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "RemoteOS"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "RemotePrefix"     ""
    "CH_HIQ_DWH_BACKUP"     1     0     "TargetDirectory"     "/backup/BACKUP_EL603/UPCCH_HIQ/DWH"
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "Cipher"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "Kex"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "MaximumReconnectionInterval"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "Port"     ""
    "CH_HIQ_AUDIT_REJECTED_BACKUP"     1     0     "RemoteOS"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "CompressionMethod"     "gzip"
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "ExternalCommand"     ""
    "CH_HIQ_TAIFUN_BACKUP"     1     0     "TransferProtocol"     "Local"
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "BehaviourOnError"     "Abort"
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "Compression"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "ConnectionRetryCount"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "ConnectionRetryInterval"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "DestinationHost"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "Port"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "RemotePrefix"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "SourceIdDirectories"     "no"
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "TargetDirectory"     "/backup/BACKUP_EL603/UPCCH_HIQ/PRIMECARRIER"
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "TempDirectory"     ""
    "CH_HIQ_PRIMECARRIER_BACKUP"     1     0     "TransferMode"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "Port"     ""
    "CH_HIQ_RAW_BACKUP"     1     0     "RemoteSuffix"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "ConnectionEstablishmentTimeout"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "MaxFiles"     "0"
    "CH_HIQ_FRAUD_BACKUP"     1     0     "MaximumSustainedNetworkDowntime"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "TempSuffix"     ""
    "CH_HIQ_FRAUD_BACKUP"     1     0     "TransferProtocol"     "Local"
    "CH_HIQ_KENAN_BACKUP"     1     0     "MaximumSustainedNetworkDowntime"     ""
    "CH_HIQ_ICONX_DISTRIBUTOR"     0     1     "Subdirectory"     ""
    "CH_HIQ_BACKUP"     0     1     "Compression"     ""
    "CH_HIQ_BACKUP"     0     1     "ConnectionEstablishmentTimeout"     ""
    "CH_HIQ_BACKUP"     0     1     "ConnectionRetryCount"     ""
    "CH_HIQ_BACKUP"     0     1     "DailyDirectories"     "no"
    "CH_HIQ_BACKUP"     0     1     "MaximumSustainedNetworkDowntime"     ""
    "CH_HIQ_BACKUP"     0     1     "TempDirectory"     ""
    "CH_HIQ_BACKUP"     0     1     "TransferRetryInterval"     ""
    "CH_HIQ_PRIMECARRIER_DISTRIBUTOR"     0     1     "OutputFileNameExtractionMask"     ""
    "CH_HIQ_R10_DECODER"     0     1     "PercentOfRejectedRecordsAllowed"     ""
    "CH_HIQ_KENAN_DISTRIBUTOR"     0     1     "Subdirectory"     ""

  • ORA-06502: PL/SQL: numeric or value error ORA-06512: at "package.proc

    Hi,
    I'm getting the following error , when calling a procedure. Any input appreciated please
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "package.procedure ", line 513
    ORA-06512: at line 26
    v_counter     NUMBER;
    v_counter := 0; -- line number 513
    FOR i in p_rec_attr.FIRST..p_rec_attr.LAST
    LOOP
    --IF instr(p_rec_attr(i),'=')<>0 THEN
    IF v_counter = 0 THEN
    soap_request := soap_request||'<doc:attributes>
    <!--Zero or more repetitions:-->
    <doc:CategoryAttributeVO>
    <!--Optional:-->
    <doc:name>'||substr(p_rec_attr(i),1,instr(p_rec_attr(i),'=')-1)||'</doc:name>
    <!--Optional:-->
    <doc:value>'||substr(p_rec_attr(i),instr(p_rec_attr(i),'=')+1)||'</doc:value>
    </doc:CategoryAttributeVO>';
    v_counter := v_counter + 1;
    ELSE
    IF i=p_rec_attr.last THEN
    v_category_name := p_rec_attr(i);
    soap_request := soap_request||'
    </doc:attributes>
    <!--Optional:-->
    <doc:name>'||v_category_name||'</doc:name>';
    v_counter := 0;
    ELSE
    soap_request := soap_request||'
    <!--Zero or more repetitions:-->
    <doc:CategoryAttributeVO>
    <!--Optional:-->
    <doc:name>'||substr(p_rec_attr(i),1,instr(p_rec_attr(i),'=')-1)||'</doc:name>
    <!--Optional:-->
    <doc:value>'||substr(p_rec_attr(i),instr(p_rec_attr(i),'=')+1)||'</doc:value>
    </doc:CategoryAttributeVO>';
    v_counter := v_counter + 1;
    END IF;
    END IF;
    --ELSE
    --END IF;
    END LOOP;
    Thanks

    Hi
    I tried this which is :
    create or replace
    procedure test is
    v_counter     NUMBER;
    begin
    v_counter := 0; -- line number 513
    FOR i in 1..10
    LOOP
    --IF instr(p_rec_attr(i),'=')0 THEN
    IF v_counter = 0 THEN
    v_counter := v_counter + 1;
    ELSE
    IF i=9 THEN
    v_counter := 0;
    ELSE
    v_counter := v_counter + 1;
    END IF;
    END IF;
    END LOOP;
    end;
    Which does ot throw any error...I think it is being generated from somewhere else

  • Numeric or value error: character string buffer too small in Package

    RVTTH-445: Subroutine ORA-06502: PL/SQL: numeric or value error: character string buffer too small in Package RCV_SeedEvents_PVT Procedure GET_CurrencyStatement -10 returned error
    Cause: Subroutine ORA-06502: PL/SQL: numeric or val
    Concurrent program RVCTP returned error
    Cause: RVCTP encountered an internal error. Parameters: RVCTP,IMMEDIATE,21229,
    Action: Note both this error number and the actions you are trying to perform. Contact your system adm
    RVTBM-008: Subroutine rvtbm_immediate_mngr() returned error
    Cause: Subroutine rvtbm_immediate_mngr() returned an internal error.
    Action: Note this error number and the actions you are trying to perform. Contact your syste
    RVTBM-120: Subroutine rvtptcontrol() returned error
    Cause: Subroutine rvtptcontrol() returned an internal error.
    Action: Note this error number and the actions you are trying to perform. Contact your system administrator
    Concurrent Manager encountered an error while attempting to start your immediate concurrent program RVCTP. Routine &ROUTINE received a return code of failure.
    Contact your support representative.
    Exceptions posted by this request:
    Concurrent Manager encountered an error while attempting to start your immediate concurrent program RVCTP. Routine &ROUTINE received a return code of failure.
    Contact your support representative.

    is the package an oracle apps standard package or customized package? if it is a customized package try to increase the size of the variable or parameter that is in question. otherwise if it is an oracle apps standard package you need to open a TAR.

  • Procedure varchar2 parameter size limit? ORA-6502 Numeric or value error

    Hi ALL,
    I am trying to create out parameters in a Procedure. This procedure will be called by 4 other Procedures.
    PROCEDURE create_serv_conf_attn_cc_email
    ( v_pdf_or_text varchar2,
    v_trip_number number ,
    v_display_attn_for_allmodes out varchar2,
    v_display_cc_for_allmodes out varchar2,
    v_multi_email_addresses out varchar2,
    v_multi_copy_email_addresses out varchar2
    When I call that procedure in another Procedure I am getting following error, which is caused by one of the out parameter being more than 255 characters.
    I found that out via dbms_output.put_line(ing) one of the out parameter as I increased its size.
    ORA-06502: PL/SQL: numeric or value error
    I thought there was no size limit on any parameters passed to a Procedure.
    Any one know of this limit of 255 characters on varchar2 Procedure parameters? Is there a work around keeping the same logic?
    If not I will have to take those parameters out and resort to some global varchar2s which I do not like.
    Thanks,
    Suresh Bhat

    I assume one of the variables you have declared is not large enough for it's assignment.
    Here's an example.
    ME_XE?create or replace procedure test_size(plarge in out varchar2 )
      2  is
      3  begin
      4     plarge := rpad('a', 32000, 'a');
      5  end;
      6  /
    SP2-0804: Procedure created with compilation warnings
    Elapsed: 00:00:00.03
    ME_XE?
    ME_XE?declare
      2     my_var   varchar2(32767);
      3  begin
      4     test_size(my_var);
      5     dbms_output.put_line(length(my_var));
      6  end;
      7  /
    32000
    PL/SQL procedure successfully completed.
    --NOTE here how the declared variable is 500 characters, but the procedure will try to assign it over 32,000 characters...no dice
    Elapsed: 00:00:00.00
    ME_XE?
    ME_XE?declare
      2     my_var   varchar2(500);
      3  begin
      4     test_size(my_var);
      5     dbms_output.put_line(length(my_var));
      6  end;
      7  /
    declare
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "TUBBY.TEST_SIZE", line 4
    ORA-06512: at line 4
    Elapsed: 00:00:00.04Edited by: Tubby on Oct 22, 2008 12:47 PM

  • Procedure giving error : numeric or value error:

    I have the following procedure where i am trying to update the duplicate rows so that in my table all the rows will be unique:
    create or replace Procedure p1 is
    ccust XXWFS_CUSTOMER_EXT.CUST_EXT_ID%type;
    cparty XXWFS_CUSTOMER_EXT.PARTY_ID%type;
    cursor c1 is select CUST_EXT_ID,PARTY_ID from XXWFS_CUSTOMER_EXT t2 where t2.rowid > (SELECT min(t1.rowid)
    FROM XXWFS_CUSTOMER_EXT t1
    WHERE t1.PARTY_ID=t2.PARTY_ID) for update;
    begin
    open c1;
    loop
    fetch c1 into ccust,cparty;
    EXIT WHEN c1%notfound;
    update XXWFS_CUSTOMER_EXT set party_id= 1 where current of c1;
    dbms_output.put_line('cust id is ' + ccust);
    end loop;
    close c1;
    commit;
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    END;
    I am getting the following error when i execute the procedure:
    Error report:
    ORA-20001: An error was encountered - -6502 -ERROR- ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    ORA-06512: at "TP.P1", line 20
    ORA-06512: at line 1
    both of my cols are number... still i dont get why this error is coming
    CUST_EXT_ID NOT NULL NUMBER
    PARTY_ID NUMBER
    Could anyone tell me whether i am doing anything wrong in this procedure
    Thanks,

    user10873676 wrote:
    I am getting the following error when i execute the procedure:
    Error report:
    ORA-20001: An error was encountered - -6502 -ERROR- ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    ORA-06512: at "TP.P1", line 20
    ORA-06512: at line 1
    both of my cols are number... still i dont get why this error is coming
    And what about this statement?
    dbms_output.put_line('cust id is ' + ccust);You are adding a literal with ccust.
    If you want to concatenate the output use:
    dbms_output.put_line('cust id is ' || ccust);After so many post you should know how to format your code.
    When you put some code or output please enclose it between two lines starting with {noformat}{noformat}
    i.e.:
    {noformat}{noformat}
    SELECT ...
    {noformat}{noformat}
    Also is a good practice to mark your questions as answered when the answers are satisfying your questions. It looks you usually forget about it:     Handle:      user10873676
    Status Level:      Newbie (10)
    Registered:      Jan 15, 2011
    Total Posts:      347
    Total Questions:      185 (134 unresolved)
    Name      user10873676
    I can't believe you have so many questions unresolved.
    Regards.
    Al
    Edited by: Alberto Faenza on Mar 15, 2013 10:14 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • ORA-06502: PL/SQL: numeric or value error: character string buffer too smal

    Hi Guys I am getting error ORA-06502: PL/SQL: numeric or value error: character string buffer too small as it said i thought it would be issue with length of feild but i tried to change is nothihg work i am posing code here if any one can please help me on this
    PROCEDURE REPORT
    p_rpt_from_dt in varchar2,
    p_rpt_to_dt in varchar2,
    p_apvr_id in tc_wkr.tc_row_id%type default NULL,
    p_rpt_type in varchar2 default NULL,
    p_backto_pg in varchar2 default NULL
    IS
    v_rpt_from_dt date := var_to_date(p_rpt_from_dt);
    v_rpt_to_dt date := var_to_date(p_rpt_to_dt);
    v_time_str varchar2(15);
    cursor period_cur
    cp_from_dt date,
    cp_to_dt date
    is
    select beg_dt, end_dt
    from jmcs_wk_tprd
    where beg_dt <= cp_to_dt -- report end date
    and end_dt >= cp_from_dt -- report start date
    BEGIN
    if sys_security('tcsys', 'tc_reports') != 'GRANTED' then
    apps_main.access_denied;
    return;
    end if;
    if lg_debug_fl then
    v_time_str := to_char(lg_sysdate, 'hh:mi:ss a.m.');
    else
    v_time_str := tc_time(lg_sysdate);
    end if;
    /* get the time card time periods applicable to the report */
    lga_tc_strt_dt := lga_null_date;
    for recs in period_cur(v_rpt_from_dt, v_rpt_to_dt) loop
    lga_tc_strt_dt(lga_tc_strt_dt.count+1) := recs.beg_dt;
    lga_tc_end_dt(lga_tc_end_dt.count+1) := recs.end_dt;
    end loop;
    --if p_apvr_id is NULL then
    if p_rpt_type != 'D' then
    tc_reporting.reports_header
    1,
    'Time Card Status Report',
    'for '||dd_mon_yyyy(v_rpt_from_dt)||' through '||dd_mon_yyyy(v_rpt_to_dt)||'<BR>'||
    'Report Date: '||dd_mon_yyyy(lg_sysdate)||' Time: '||v_time_str,
    NULL,
    NULL,
    NULL,
    'javascript:window.close()', /* Backto */
    'alert(''Reminder! Click on logo when you are ready to return to previous page'')'
    end if;
    if p_apvr_id is NULL then
    sub_STATUS_BD_ALPHA (v_rpt_from_dt, v_rpt_to_dt, TRUE, p_rpt_type, p_apvr_id);
    else
    htp.p('<!-- Selected Approver ('||p_apvr_id||') -->');
    sub_STATUS_BD_APVR (v_rpt_from_dt, v_rpt_to_dt, p_rpt_type, p_apvr_id);
    end if;
    htp.p('</body></html>');
    EXCEPTION
    WHEN OTHERS THEN
    error_proc(SQLERRM, SQLCODE, owa_util.get_cgi_env('PATH_INFO'));
    htp.p('Error Code is :'||SQLERRM);
    END REPORT;
    This package in trun call other procedure like below
    PROCEDURE sub_STATUS_BD_ALPHA
    p_rpt_from_dt in date,
    p_rpt_to_dt in date,
    p_display_hdr in boolean,
    p_rpt_type in varchar2 default 'B',
    p_apvr_id in tc_wkr.tc_row_id%type default NULL,
    p_tcs_user_id in tc_wkr.tc_row_id%type default NULL
    IS
    v_time_str varchar2(15);
    v_apvr_id tc_wkr.tc_row_id%type := 0;
    v_a_user_id tc_wkr.tc_row_id%type; -- approver tcs_user_id
    v_cnt integer := 0;
    v_people_cnt integer := 0;
    v_stat_cd varchar2(2000);
    v_display_fl boolean := FALSE;
    /*===========================================================================*/
    cursor people_cur
    cp_from_dt in date,
    cp_to_dt in date
    is
    select
    d_full_nm_lfm as name,
    tc_row_id as tcs_user_id,
    tcw_typ as pay_typ,
    tcw_id as pay_id,
    sys_strt_date as sys_strt_dt,
    sys_end_dt
    from tc_wkr
    where sys_strt_date <= cp_to_dt
    and nvl(sys_end_dt, cp_to_dt) >= cp_from_dt
    order by upper(d_full_nm_lfm);
    /* find the current or the most recent (if no current) approver */
    cursor apvr_cur
    cp_tcs_user_id in tc_wkr.tc_row_id%type
    is
    select
    a.f_tc_apvr_id as fk_tcs_apvr_id,
    w.d_full_nm_lfm as apvr_name,
    w.tcw_typ as apvr_pay_typ,
    w.tcw_id as apvr_pay_id,
    a.strt_dt,
    a.end_dt
    from tc_wkr w, tc_ap_asmt a
    where a.f_tc_wkr_id = cp_tcs_user_id
    and w.tc_row_id = a.f_tc_apvr_id
    order by a.strt_dt desc;
    /* list of existing time cards UNION required time cards */
    cursor tc_cur
    cp_tcs_user_id in tc_wkr.tc_row_id%type, /* who's time cards */
    cp_from_dt in date, /* report period from date */
    cp_to_dt in date /* report period to date */
    is
    select
    stat_cd,
    strt_dt,
    end_dt
    from tc
    where strt_dt <= cp_to_dt
    and end_dt >= cp_from_dt
    and fk_tc_wkrtcw_id = cp_tcs_user_id
    UNION
    select
    'Required' as stat_cd,
    beg_dt as strt_dt,
    end_dt
    from jmcs_wk_tprd
    where beg_dt <= cp_to_dt
    and end_dt >= cp_from_dt
    and beg_dt not in (
    select strt_dt
    from tc
    where strt_dt <= cp_to_dt
    and end_dt >= cp_from_dt
    and fk_tc_wkrtcw_id = cp_tcs_user_id
    order by strt_dt;
    BEGIN
    if lg_debug_fl then
    v_time_str := to_char(lg_sysdate, 'hh:mi:ss a.m.');
    else
    v_time_str := tc_time(lg_sysdate);
    end if;
    if p_apvr_id > 0 then
    lga_report_out := lga_report_out_null;
    v_apvr_id := p_apvr_id;
    lga_apvr := lga_apvr_null;
    select
    d_full_nm_lfm,
    tc_row_id,
    tcw_id,
    tcw_typ
    into
    lga_apvr(1).apvr_name,
    lga_apvr(1).apvr_tcs_id,
    lga_apvr(1).apvr_pay_id,
    lga_apvr(1).apvr_pay_typ
    from tc_wkr
    where tc_row_id = v_apvr_id;
    if lga_apvr(1).apvr_pay_typ != 'S' then
    select decode(bend_empl_fl, 'Y', 'E', 'W')
    into lga_apvr(1).apvr_pay_typ
    from empl
    where empl_id = lga_apvr(1).apvr_pay_id;
    end if;
    end if;
    if p_display_hdr then
    if lga_tc_strt_dt.count > 6 then /* more than 6 time periods (1 month) */
    lga_width(1) := to_char(.15 * lg_page_width_standard);
    lga_width(2) := to_char(.08 * lg_page_width_standard);
    for i in 1..lga_tc_strt_dt.count loop
    lga_width(lga_width.count+1) := to_char(.09 * lg_page_width_standard);
    end loop;
    lg_page_width_standard := to_number(lga_width(1)) + to_number(lga_width(2));
    if nvl(p_apvr_id, 0) = 0 then
    lg_page_width_standard := lg_page_width_standard * 2;
    end if;
    htp.p('<!-- page width = '||lg_page_width_standard||'-->');
    for i in 3..lga_width.count loop
    lg_page_width_standard := lg_page_width_standard + to_number(lga_width(i));
    htp.p('<!-- page width = '||lg_page_width_standard||'-->');
    end loop;
    lg_page_width := to_char(lg_page_width_standard);
    else
    lga_width(1) := '15%';
    lga_width(2) := '8%';
    lga_width(3) := '9%';
    lga_width(4) := '9%';
    lga_width(5) := '9%';
    lga_width(6) := '9%';
    lga_width(7) := '9%';
    lga_width(8) := '9%';
    end if;
    sub_DETAIL_PAGE_HD(p_apvr_id);
    end if;
    /* cursor loop */
    for p in people_cur(p_rpt_from_dt, p_rpt_to_dt) loop
    /* is/was this person assigned to the selected approver for the report period */
    v_display_fl := FALSE;
    if nvl(p_tcs_user_id, 0) > 0 then
    if p_tcs_user_id = p.tcs_user_id then
    htp.p('<br>Selected User');
    v_display_fl := TRUE;
    end if;
    elsif nvl(p_apvr_id, 0) = 0 then
    if nvl(p_apvr_id, 0) = 0 then
    v_display_fl := TRUE;
    elsif p_apvr_id > 0 or p_apvr_id = -1 then
    v_display_fl := fct_ASSIGNED_APVR(p.tcs_user_id, p_apvr_id, p_rpt_from_dt, p_rpt_to_dt);
    end if;
    if v_display_fl then
    v_people_cnt := v_people_cnt + 1;
    lg_tcs_owner_info.USER_ID := p.tcs_user_id;
    lg_tcs_owner_info.PAY_ID := p.pay_id;
    lg_tcs_owner_info.PAY_TYPE := p.pay_typ;
    lg_tcs_owner_info.SYS_STRT_DT := p.sys_strt_dt;
    lg_tcs_owner_info.TERM_DT := p.sys_end_dt;
    if p.pay_typ = 'S' then
    begin
    select wrk_hire_dt
    into lg_tcs_owner_info.hire_dt
    from subcntr
    where sub_id = p.pay_id;
    exception
    when no_data_found then
    tc_debug.html_message('subcntr.pay_id('||p.pay_id||')');
    end;
    else
    select
    wrk_hire_dt,
    decode(bend_empl_fl, 'Y', 'E', 'W')
    into
    lg_tcs_owner_info.hire_dt,
    lg_tcs_owner_info.pay_type
    from empl
    where empl_id = lg_tcs_owner_info.PAY_ID;
    end if;
    if lga_report_out.count = 0 then
    lga_report_out(lga_report_out.count+1) := '<table border="1" cellpadding="3" width="'||lg_page_width||'">';
    end if;
    if mod(v_people_cnt,2) = 1 then
    lga_report_out(lga_report_out.count+1) := ('<tr bgcolor="'||lg_odd_bgcolor||'">');
    else
    lga_report_out(lga_report_out.count+1) := ('<tr bgcolor="'||lg_even_bgcolor||'">');
    end if;
    lga_report_out(lga_report_out.count+1) := ('<td valign="top"><font size=-2>'||p.name||'</font></td >');
    lga_report_out(lga_report_out.count+1) := ('<td valign="top"><font size=-2>'||p.pay_typ||'-'||lpad(p.pay_id,4,'0')||'</font></td >');
    if nvl(p_apvr_id, 0) > 0 then /* Single Approver */
    /* need approver ID for time card "status" */
    lga_apvr := lga_apvr_null; /* clear the approver id array */
    lga_apvr(1).apvr_tcs_id := p_apvr_id;
    elsif nvl(p_apvr_id, 0) = 0 then /* ALL Approvers */
    lga_apvr := lga_apvr_null; /* clear the approver id array */
    v_cnt := 0;
    for ap in apvr_cur (p.tcs_user_id) loop
    if v_cnt = 0 then
    /* most recent approver may not be the applicable approver */
    v_cnt := 1;
    lga_apvr(v_cnt).apvr_name := ap.apvr_name; -- identify multiple approvers for the "status"
    lga_apvr(v_cnt).apvr_tcs_id := ap.fk_tcs_apvr_id; -- identify multiple approvers for the "status"
    lga_apvr(v_cnt).apvr_pay_id := ap.apvr_pay_id; -- identify multiple approvers for the "status"
    v_apvr_id := ap.fk_tcs_apvr_id;
    if ap.apvr_pay_typ = 'S' then
    lga_apvr(v_cnt).apvr_pay_typ := ap.apvr_pay_typ; -- identify multiple approvers for the "status"
    else
    select decode(bend_empl_fl, 'Y', 'E', 'W')
    into lga_apvr(1).apvr_pay_typ
    from empl
    where empl_id = lga_apvr(1).apvr_pay_id;
    end if;
    end if;
    if ap.strt_dt <= p_rpt_to_dt and nvl(ap.end_dt, p_rpt_to_dt) >= p_rpt_from_dt then
    /* approver record */
    lg_tcs_owner_info.APVR_ID := ap.fk_tcs_apvr_id;
    lg_tcs_owner_info.APVR_STRT_DT := ap.strt_dt;
    lg_tcs_owner_info.APVR_END_DT := ap.end_dt;
    don't enter same approver name multiple times
    when same approver has been assigned more than once
    Example: approver1, approver_2, approver_1 (change back to approver 1)
    for i in 1..lga_apvr.count loop
    v_apvr_id := ap.fk_tcs_apvr_id;
    if lga_apvr(i).apvr_tcs_id = ap.fk_tcs_apvr_id then
    /* don't add again */
    v_apvr_id := NULL;
    exit;
    end if;
    end loop;
    if v_apvr_id is not NULL then
    v_cnt := v_cnt + 1;
    lga_apvr(v_cnt).apvr_name := ap.apvr_name; -- identify multiple approvers for the "status"
    lga_apvr(v_cnt).apvr_tcs_id := ap.fk_tcs_apvr_id; -- identify multiple approvers for the "status"
    lga_apvr(v_cnt).apvr_pay_id := ap.apvr_pay_id; -- identify multiple approvers for the "status"
    lga_apvr(v_cnt).apvr_pay_typ := ap.apvr_pay_typ; -- identify multiple approvers for the "status"
    end if;
    end if;
    end loop;
    /* list approver pay IDs */
    lga_report_out(lga_report_out.count+1) := ('<td valign="top"><font size=-2>');
    if lga_apvr.count = 0 then
    lga_report_out(lga_report_out.count+1) := 'Approver Unassigned';
    else
    for i in 1..lga_apvr.count loop
    if i > 1 then
    lga_report_out(lga_report_out.count+1) := '<br>';
    end if;
    lga_report_out(lga_report_out.count+1) := (lga_apvr(i).apvr_name);
    end loop;
    end if;
    lga_report_out(lga_report_out.count+1) := ('<td valign="top"><font size=-2>');
    if lga_apvr.count = 0 then
    lga_report_out(lga_report_out.count+1) := 'N/A';
    else
    for i in 1..lga_apvr.count loop
    if i > 1 then
    lga_report_out(lga_report_out.count+1) := '<br>';
    end if;
    lga_report_out(lga_report_out.count+1) := (lga_apvr(i).apvr_pay_typ)||'-'||lpad(lga_apvr(i).apvr_pay_id,4,'0');
    end loop;
    end if;
    lga_report_out(lga_report_out.count+1) := ('</font></td >');
    end if;
    for t in tc_cur(p.tcs_user_id, p_rpt_from_dt, p_rpt_to_dt) loop
    htp.p('<! '||t.strt_dt||', '||t.end_dt||', '||t.stat_cd||' -->');
    --lga_report_out(lga_report_out.count+1) := ('<td valign="top"><font size=-2>');
    --lga_report_out(lga_report_out.count+1) := (t.stat_cd);
    --lga_report_out(lga_report_out.count+1) := ('</font></td >');
    /* has the selected approver has completed processing */
    if p_apvr_id > 0
    and v_apvr_id = p_apvr_id
    and v_a_user_id != p_apvr_id
    then
    exit;
    end if;
    for ap in apvr_cur (p.tcs_user_id) loop
    if apvr_cur%rowcount = 1 then
    /* most recent approver assigned */
    lg_tcs_owner_info.apvr_id := ap.fk_tcs_apvr_id;
    end if;
    if ap.strt_dt <= t.end_dt and nvl(ap.end_dt, t.end_dt) >= t.strt_dt then
    /* approver assigned during time card period */
    lg_tcs_owner_info.apvr_id := ap.fk_tcs_apvr_id;
    exit;
    end if;
    end loop;
    lg_tc_status.strt_dt := t.strt_dt;
    lg_tc_status.end_dt := t.end_dt;
    lg_tc_status.stat_cd := t.stat_cd;
    v_stat_cd := fct_TC_STATUS(nvl(p_apvr_id, 0));
    lga_report_out(lga_report_out.count+1) := ('<td align="center" valign="top" bgcolor="'||lg_tc_status.bg_color||'">');
    lga_report_out(lga_report_out.count+1) := ('<font size=-2 color='||lg_tc_status.font_color||'>');
    lga_report_out(lga_report_out.count+1) := v_stat_cd;
    lga_report_out(lga_report_out.count+1) := ('</font></td >');
    end loop;
    lga_report_out(lga_report_out.count+1) := '</tr>';
    end if; /* v_display_fl */
    end loop;
    if p_rpt_type in ('B', 'S') then
    lg_page_cnt := lg_page_cnt + 1;
    sub_DISPLAY_STATUS_SUMMARY;
    end if;
    if lga_report_out.count > 0 then
    lga_report_out(lga_report_out.count+1) := '</table>';
    end if;
    if lga_report_out.count > 0 then
    if p_rpt_type = 'B' or p_apvr_id > 0 then
    if p_display_hdr then
    if lg_page_cnt > 0 then
    if p_apvr_id > 0 then /* selected individual approver */
    htp.p('</table>');
    end if;
    htp.p('<br style="page-break-after:always">');
                        htp.p('<!-- &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& -->');
                        htp.p('<!-- &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& -->');
    end if;
    lg_page_cnt := lg_page_cnt + 1;
    tc_reporting.reports_header
    1,
    'Time Card Status Report',
    'for '||dd_mon_yyyy(p_rpt_from_dt)||' through '||dd_mon_yyyy(p_rpt_to_dt)||'<BR>'||
    'Report Date: '||dd_mon_yyyy(lg_sysdate)||' Time: '||v_time_str,
    NULL,
    NULL,
    NULL,
    NULL, -- p_backto_pg, /* Backto */
    'focus()',
    lg_page_cnt
    end if;
    end if;
    if p_rpt_type in ('B', 'D') then
    for i in 1..lga_report_out.count loop
    htp.p(lga_report_out(i));
    end loop;
    end if;
    end if;
    END sub_STATUS_BD_ALPHA;
    Some veriable
    type report_tc_rec is record
    tc_owner_name tc_wkr.d_full_nm_lfm%type,
    o_user_id tc_wkr.tc_row_id%type,
    o_pay_id varchar2(10),
    o_sys_strt_dt date,
    o_sys_end_dt date,
    tc_apvr_name tc_wkr.d_full_nm_lfm%type,
    a_pay_id varchar2(10),
    a_user_id tc_wkr.tc_row_id%type,
    tc_strt_dt date,
    tc_end_dt date,
    tc_stat_cd varchar2(50),
    ap_strt_dt date,
    ap_end_dt date
    /* time card owner information */
    TYPE tcs_owner_info_rec IS RECORD
    USER_ID tc_wkr.tc_row_id%type,
    PAY_ID tc_wkr.tcw_id%type,
    PAY_TYPE tc_wkr.tcw_typ%type,
    HIRE_DT date,
    SYS_STRT_DT date,
    TERM_DT date,
    APVR_ID tc_wkr.tc_row_id%type,
    APVR_STRT_DT date,
    APVR_END_DT date
    /* status code determines report cell font and background colors */
    TYPE tc_status_rec IS RECORD
    STRT_DT date,
    END_DT date,
    STAT_CD tc.stat_cd%type,
    FONT_COLOR varchar2(16),
    BG_COLOR varchar2(16)
    /* count of all time card status for report summary */
    TYPE tc_status_summary_rec IS RECORD
    APPROVED_CNT integer := 0,
    REJECTED_CNT integer := 0,
    SUBMITTED_CNT integer := 0,
    POSTED_CNT integer := 0,
    VERIFIED_CNT integer := 0,
    OPEN_CNT integer := 0,
    NEW_CNT integer := 0,
    REQUIRED_CNT integer := 0,
    TOTAL_CNT integer := 0
    /* determine multiple approvers for individual for selected report period */
    TYPE apvr_rec IS RECORD
    apvr_name tc_wkr.d_full_nm_lfm%type,
    apvr_tcs_id tc_wkr.tc_row_id%type,
    apvr_pay_id tc_wkr.tcw_id%type,
    apvr_pay_typ tc_wkr.tcw_typ%type
    TYPE apvr_id_array_table IS TABLE OF apvr_rec
    index by binary_integer;
    type output_array is table of varchar2(1000)
    index by binary_integer;
    type date_array is table of date
    index by binary_integer;
    type status_array is table of varchar2(1000)
    index by binary_integer;
    type apvr_array is table of number(8)
    index by binary_integer;
    lga_report_out output_array; /* array of HTML code to be output to browser */
    lga_report_out_null output_array; /* null array of HTML code */
    lga_tc_status status_array;
    lga_null_status status_array;
    lga_tc_strt_dt date_array;
    lga_tc_end_dt date_array;
    lga_tc_disp date_array; /* start dates of displayed TC for selected user */
    lga_null_date date_array; /* null array used to clear other date arrays */
    /* LOCAL GLOBAL VARIABLES */
    lg_tcs_owner_info tcs_owner_info_rec; /* time card owner information */
    lg_tc_status tc_status_rec; /* time card status information */
    lg_tc_status_summary tc_status_summary_rec; /* time card count by status */
    lg_tc_rec report_tc_rec; /* time card */
    lga_apvr apvr_id_array_table; /* array of approver Names and Payroll IDs */
    lga_apvr_null apvr_id_array_table; /* clear the lga_apvr array for each user */
    lg_sysdate date := sysdate;
    lg_debug_fl boolean := FALSE;
    lg_debug_owner_id tc_wkr.tc_row_id%type := 9905;
    lg_debug_apvr_id tc_wkr.tc_row_id%type := 1000;
    The chnages i have done its in bold
    Please Advice
    Thanks
    Edited by: Purvik on Aug 25, 2009 11:59 AM

    There is not a chance in the world, especially not knowing column definitions that I, and I suspect most anyone else, is going to wade through this much unformated code looking for an error you couldn't bother to copy in full.
    Either tell us, specifically, the line on which the error is occurring or, better yet, start whacking stuff out of your code until you find the offending definition. That is certainly what I would do. Commenting out sections is a marvelous way to quickly find an issue.
    Before you post again please read the FAQ. It will explain to you how to properly post and use the tags.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Numeric or value error

    I've got a question that hopefully I can ask here. I am working on a VB.Net windows application using the System.Data.Oracle client.
    I am trying to call one of our Oracle Package procedures we have. One of the parameters to the procedure is defined as a NUMBER. This parameter is later being stored into a variable that is defined as a NUMBER(7,6).
    The program is passing in a value of 9.999999 to this parameter which then produces the error "ORA-06502: PL/SQL: numeric or value error: number precision too large" when it tries to put the input parameter into the variable.
    Under VB6 using ADO calling this same procedure with the same data works fine.
    Does anyone know why this does not work under ADO.NET?

    Disregard this plea for help... I found my problem. I mistakenly set the parameter for the procedure call to an Int32 instead of to a Double (or Single). Strange I would have thought this would have given me the error just in calling the procedure and not give me an error of the procedure internal in setting the variable.

  • Numeric or value error: character to number conversion error

    I'm having problems inserting a value from a date picker field (DD-MON-YYYY HH MI )
    i'm submitting this value to a packaged procedure that accepts this field as VARCHAR2 .
    on the insert, i do a to_date( P_DATE, 'DD-MON-YYYY HH:MI PM' )
    and i get the numeric conversion error.
    If I change the to_date on the procedure side, I get the :could not read the end of the format mask - which I've found threads about on this site.
    I've tried using HH24 and different formats, but I get one of the two above errors on the insert.
    If I don't fill in the datepicker field at all, it works fine.
    help is appreciated !
    Bill

    Here is the trace anyway:
    *** ACTION NAME:(application 4000, page 1) 2004-09-24 12:58:44.052
    *** MODULE NAME:(HTML DB) 2004-09-24 12:58:44.052
    *** SERVICE NAME:(TOPS) 2004-09-24 12:58:44.052
    *** SESSION ID:(151.1) 2004-09-24 12:58:44.052
    *** 2004-09-24 12:58:44.052
    ksedmp: internal or fatal error
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    Current SQL statement for this session:
    declare
    rc__ number;
    begin
    owa.init_cgi_env(:n__,:nm__,:v__);
    htp.HTBUF_LEN := 255;
    null;
    null;
    null;
    null;
    f(p=>:p);
    if (wpg_docload.is_file_download) then
    rc__ := 1;
    wpg_docload.get_download_file(:doc_info);
    null;
    null;
    null;
    commit;
    else
    rc__ := 0;
    null;
    null;
    null;
    commit;
    owa.get_page(:data__,:ndata__);
    end if;
    :rc__ := rc__;
    end;
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    6A3C4A00 532 package body FLOWS_010500.WWV_FLOW_UTILITIES
    6A3C4A00 2502 package body FLOWS_010500.WWV_FLOW_UTILITIES
    6A3C4A00 2748 package body FLOWS_010500.WWV_FLOW_UTILITIES
    6A0E63C8 991 package body FLOWS_010500.WWV_FLOW_FORMS
    6A11675C 932 package body FLOWS_010500.WWV_FLOW_DISP_PAGE_PLUGS
    6A11675C 247 package body FLOWS_010500.WWV_FLOW_DISP_PAGE_PLUGS
    6A4B54E0 8341 package body FLOWS_010500.WWV_FLOW
    6A2A99F0 102 procedure FLOWS_010500.F
    6A2B9E54 10 anonymous block
    ----- Call Stack Trace -----
    calling call entry argument values in hex
    location type point (? means dubious value)
    ksedmp+524          CALLrel  ksedst+0 1
    ksedmptracecb+15 CALLrel _ksedmp+0            C
    _ksddoa+118          CALLreg  00000000             C
    ksdpcg+143          CALLrel  ksddoa+0
    ksdpec+180          CALLrel  ksdpcg+0 1966 6D7D208 1
    __PGOSF3__ksfpec+11 CALLrel _ksdpec+0            0
    8
    _kgerev+77           CALLreg  00000000             7474210 1966
    kgerec1+18          CALLrel  kgerev+0 7474210 6DCE5EC 1966 1
    6D7D260
    peirve+465          CALLrel  kgerec1+0
    pevmCVTCN+346 CALLrel _peirve+0           
    pfrinstrCVTCN+36 CALLrel pevmCVTCN+0 6E6E604 71CE370 7160F0C
    pfrrunno_tool+51 CALL??? 00000000
    pfrrun+1834         CALLrel  pfrrun_no_tool+0 6E6E604 6A3C010A 6E6E640
    plsqlrun+1051 CALLrel _pfrrun+0            6E6E604
    peicnt+179          CALLrel  plsql_run+0 6E6E604 1 0
    kkxexe+477          CALLrel  peicnt+0
    opiexe+4896         CALLrel  kkxexe+0 6A2B9E54
    kpoal8+1705         CALLrel  opiexe+0 49 3 6D7E06C
    _opiodr+977          CALLreg  00000000             5E 14 6D7E7CC
    _ttcpip+1827         CALLreg  00000000             5E 14 6D7E7CC 0
    _opitsk+1098         CALL???  00000000            
    opiino+938          CALLrel  opitsk+0 0 0 747ABC0 6DEFB14 D8 0
    _opiodr+977          CALLreg  00000000             3C 4 6D7FBBC
    opidrv+479          CALLrel  opiodr+0 3C 4 6D7FBBC 0
    sou2o+45            CALLrel  opidrv+0 3C 4 6D7FBBC
    opimai+237          CALLrel  sou2o+0
    OracleThreadStart@  CALLrel  opimai+0
    4+899
    77E7D338 CALLreg 00000000

  • ORA-06502: PL/SQL: numeric or value error

    HI All,
    I am facing the following issue and looking forward for help to find the cause.
    We are converting PDF documents in our repository to HTML using Oracle API
    ctx_doc.ifilter (v_datablob, v_dataclob);
    a highly simplified version of our code will be something like this..
    1) Create table to store the BLOB(Binary PDF documents)
    create table tbl_pdf_store(pdf_doc blob);
    2) Insert a row and store a PDF.
    3) Convert the PDF into HTML and store it in a CLOB object..
    DECLARE
    v_datablob BLOB;
    v_dataclob CLOB;
    BEGIN
    --Create temporary clob objects
    DBMS_LOB.createtemporary (v_dataclob, TRUE, DBMS_LOB.SESSION);
    DBMS_LOB.createtemporary (v_datablob, TRUE, DBMS_LOB.SESSION);
    --get the pdf to be converted from store table
    SELECT pdf_doc
    INTO v_datablob
    FROM tbl_pdf_store
    WHERE rownum < 1;
         --convert the BLOB to HTML and store it in CLOB
         ctx_doc.ifilter (v_datablob, v_dataclob);
    exception
         when others then
         dbms_output.put_line(sqlerrm||' - '||sqlcode);
    end;
    Now the issue I am facing is, the above code works fine for few documents and for few others I get this cryptic error message
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "CTXSYS.DRUE", line 180
    ORA-06512: at "CTXSYS.CTX_DOC", line 1142
    ORA-06502: PL/SQL: numeric or value error - -6502
    I cant reproduce the exact code here, but if anyone had faced the similar issue, then it would be great if they help me out.
    thanks,
    Prashant

    > Billy, its not just plain wrong its a sin :). "When
    others" should itself be avoided if possible(it just
    shows you don't know what error can occur). In the
    actual code, we are using separate package to handle
    and log errors. Here it was just for simplification I
    added that putline code.
    Phew.. You had me worried there... :-)
    > I ran my procedure in debug mode and it throws this
    exception when its executing the Oracle API
    ctx_doc.ifilter
    And there is very little you can do debugging that, as that source code is encoded (wrapped).
    Which means that unfortunately you have to treat that code as a black box and investigate the bug with respects to:
    a) the "environment" from which the call is made (ito of session settings, the sequence of calls made, etc)
    b) the data and parameters passed
    > this is not the case with all the PDFs..I was able to
    convert more than 11 thousand documents without any
    issues. I have this for only few hundred documents.
    This would seem to point to a bug in Oracle's CTX conversion/filter code. Maybe those PDFs are a newer version and is not correctly supported. Maybe they're an older version that is not supported.
    Which is why I said you need to isolate the error. Determine which PDFs are failing. Create a test harness (simplified code as you've posted) to perform a conversion (and nothing else).
    Determine which PDFs fail and which works. Look at the differences between PDFs. E.g. can those problem PDFs be opened with different Acrobat Reader version - or do some of them fail?
    > Another issue is I cannot view the content of the
    these documents to check if anything is different :(.
    You can with Acrobat Reader.. right?
    > so no sure how to go from here...is there a
    printstack method in Oracle 9i(similar to 10g I
    guess) which can give me more information as I am
    currently lost and not sure where to look.
    Dumping the stack will not be of much help. In fact, the error message sequence you pasted already show the call sequence. And as these are in Oracle PL/SQL code, there is nothing really you can do about it.
    My suggestion is to
    a) isolate the error
    b) consult the manual(s) to ensure that the Oracle PL/SQL s/w is used correctly
    c) determine if this is data related (e.g. different PDF versions for example)
    d) log a SR (Service Request) with Oracle Support
    The more you can do ito of (a) - (c), the better the chance for finding the root cause, and the quicker resolution when you have no choice but to do (d).

  • Difficulty in resolving ORA-06502: PL/SQL: numeric or value error:

    Hi
    I am having great difficulty to resolve the following error - ORA-06502: PL/SQL: numeric or value error: character string buffer too small . In my Oracle Package, I have a Function that returns a varchar(255).
    My Function is basically as follows:
    FUNCTION GetUserDept (DeptNum IN NUMBER) RETURN VARCHAR2
    IS
    deptname varchar(255);
    BEGIN
    SELECT name INTO deptname
    FROM depts
    where id = DeptNum;
    RETURN deptname
    END;
    The SQL is running correctly and returns one result, which is what I want. However, when I call the function in my .NET C# code, this is when I am seeing the error message.
    In my code, I said that the commandtype is a stored procedure, passed the parameters, and add it to to the parameters, with the return type and direction put first and executed as a scalar. The code executes, and then fails at the ExecuteScalar line, and it is at this point on my exception handler that I see the error message ORA-6502.
    This really odd, because I have two other functions that return numbers, and I have executed them in the same way, and theses works!
    I have checked my function and can't see what is wrong, and I have tried changing the return type from varchar2 to NVarchar on the return type, but this made no difference.
    This problem has really dogged me for hours and I cannot see how to resolve it.
    Can someone, please help me?

    user633278 wrote:
    This really odd, because I have two other functions that return numbers, and I have executed them in the same way, and theses works!It is that very reason that your code fails. You need to declare the return variable as a string.
    SQL?create or replace
    FUNCTION GetUserDept (DeptNum IN NUMBER) RETURN VARCHAR2
    IS
    deptname varchar(255);
    BEGIN
      RETURN 'hello world';
    END;
      2    3    4    5    6    7    8    9   10 
    Function created.
    SQL?
    SQL?
    declare
      x number;
    begin
      x := GetUserDept(100);
    end;
    SQL?  2    3    4    5    6  declare
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    ORA-06512: at line 4
    SQL?
    SQL?
    declare
      x varchar2(255);
    begin
      x := GetUserDept(100);
    end;
    SQL?  2    3    4    5    6 
    PL/SQL procedure successfully completed.

  • ORA - 06502 NUMERIC OR VALUE ERROR

    Hi,
    When i try to compile my below code am getting NUMERIC OR VALUE ERROR.
    Here is my code :
    CREATE OR REPLACE PACKAGE SendMailJPkg AS
       -- EOL is used to separate text line in the message body
       EOL CONSTANT STRING(2) := CHR(13) || CHR(10);
       TYPE ATTACHMENTS_LIST IS TABLE OF VARCHAR2(4000);
       -- High-level interface with collections
       FUNCTION SendMail(SMTPServerName IN STRING,
                         Sender IN STRING,
                         Recipient IN STRING,
                         CcRecipient IN STRING DEFAULT '',
                         BccRecipient IN STRING DEFAULT '',
                         Subject IN STRING DEFAULT '',
                         Body IN STRING DEFAULT '',
                         ErrorMessage OUT STRING,
                         Attachments IN ATTACHMENTS_LIST DEFAULT NULL) RETURN NUMBER;
    END SendMailJPkg;
    CREATE OR REPLACE PACKAGE BODY SendMailJPkg AS
       PROCEDURE ParseAttachment(Attachments IN ATTACHMENTS_LIST,
                                 AttachmentList OUT VARCHAR2) IS
       AttachmentSeparator CONSTANT VARCHAR2(12) := '///';
       BEGIN
          -- Boolean short-circuit is used here
          IF Attachments IS NOT NULL AND Attachments.COUNT > 0 THEN
             AttachmentList := Attachments(Attachments.FIRST);
             -- Scan the collection, skip first element since it has been
             -- already processed;
             -- accommodate for sparse collections;
             FOR I IN Attachments.NEXT(Attachments.FIRST) .. Attachments.LAST LOOP
                AttachmentList := AttachmentList || AttachmentSeparator || Attachments(I);
             END LOOP;
          ELSE
             AttachmentList := '';
          END IF;
       END ParseAttachment;
       -- Forward declaration
       FUNCTION JSendMail(SMTPServerName IN STRING,
                          Sender IN STRING,
                          Recipient IN STRING,
                          CcRecipient IN STRING,
                          BccRecipient IN STRING,
                          Subject IN STRING,
                          Body IN STRING,
                          ErrorMessage OUT STRING,
                          Attachments IN STRING) RETURN NUMBER;
       -- High-level interface with collections
       FUNCTION SendMail(SMTPServerName IN STRING,
                         Sender IN STRING,
                         Recipient IN STRING,
                         CcRecipient IN STRING,
                         BccRecipient IN STRING,
                         Subject IN STRING,
                         Body IN STRING,
                         ErrorMessage OUT STRING,
                         Attachments IN ATTACHMENTS_LIST) RETURN NUMBER IS
          AttachmentList VARCHAR2(4000) := '';
          AttachmentTypeList VARCHAR2(2000) := '';
       BEGIN
          ParseAttachment(Attachments,AttachmentList);
          RETURN JSendMail(SMTPServerName,
                           Sender,
                           Recipient,
                           CcRecipient,
                           BccRecipient,
                           Subject,
                           Body,
                           ErrorMessage,
                           AttachmentList);
       END SendMail;
       -- JSendMail's body is the java function SendMail.Send()
       -- thus, no PL/SQL implementation is needed
       FUNCTION JSendMail(SMTPServerName IN STRING,
                          Sender IN STRING,
                          Recipient IN STRING,
                          CcRecipient IN STRING,
                          BccRecipient IN STRING,
                          Subject IN STRING,
                          Body IN STRING,
                          ErrorMessage OUT STRING,
                          Attachments IN STRING) RETURN NUMBER IS
       LANGUAGE JAVA
       NAME 'SendMail.Send(java.lang.String,
                           java.lang.String,
                           java.lang.String,
                           java.lang.String,
                           java.lang.String,
                           java.lang.String,
                           java.lang.String,
                           java.lang.String[],
                           java.lang.String) return int';
    END SendMailJPkg;
    var ErrorMessage VARCHAR2(4000);
    var ErrorStatus NUMBER;
    -- enable SQL*PLUS output;
    SET SERVEROUTPUT ON
    -- redirect java output into SQL*PLUS buffer;
    exec dbms_java.set_output(5000);
    BEGIN
       :ErrorStatus := SendMailJPkg.SendMail(
                    SMTPServerName => 'localhost',
                    Sender    => '[email protected]',
                    Recipient => '[email protected]',
                    CcRecipient => '',
                    BccRecipient => '',
                    Subject   => 'This is the subject line: Test JavaMail',
                    Body => 'This is the body: Hello, this is a test' ||
                             SendMailJPkg.EOL || 'that spans 2 lines',
                    ErrorMessage => :ErrorMessage,
                    Attachments  => SendMailJPkg.ATTACHMENTS_LIST(
                                       'C:\Users\Zahn\Work\sendmail.sql',
                                       'C:\Users\Zahn\Work\ferien-2002.txt'
    END;
    Can any one please suggest me how to over come this problem ???
    Regards,
    Bharath

    Raunaq wrote:
    This error generally comes , when you try to assign a non-numeric value to a numeric variable
    ORA-06502: PL/SQL: numeric or value error Occur's at various instance. The second part of the message exactly stats the reason for this error. Here are few examples.
    SQL> declare
      2    v number(2);
      3  begin
      4    v := 123;
      5  end;
      6  /
    declare
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: number precision too large
    ORA-06512: at line 4
    SQL> declare
      2    v number(2);
      3  begin
      4    v:= 'a';
      5  end;
      6  /
    declare
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    ORA-06512: at line 4
    SQL> declare
      2    v varchar2(1);
      3  begin
      4    v := 'ab';
      5  end;
      6  /
    declare
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 4
    SQL>

  • UTL_SMTP , ORA-06502: PL/SQL: numeric or value error

    Hi there,
    I have a procedure that sends emails using UTL_SMTP. It is showing the "ORA-06502: PL/SQL: numeric or value error" whenever the message spans over the limit of the varchar2 type (32'767). I want to send in one email more than that limit, is there a way? any help?
    Thanks in advance

    try this procedure... it works to me!!
    create or replace procedure po8.mail_files ( from_name varchar2,
    to_name varchar2,
    subject varchar2,
    message varchar2,
    max_size number default 9999999999,
    filename1 varchar2 default null,
    filename2 varchar2 default null,
    filename3 varchar2 default null,
    debug number default 0 ) is
    This procedure uses the UTL_SMTP package to send an email message.
    Up to three file names may be specified as attachments.
    Parameters are:
    1) from_name (varchar2)
    2) to_name (varchar2)
    3) subject (varchar2)
    4) message (varchar2)
    5) max_size (number)
    5) filename1 (varchar2)
    6) filename2 (varchar2)
    7) filename3 (varchar2)
    eg.
    mail_files( from_name => 'oracle' ,
    to_name => '[email protected]' ,
    subject => 'A test',
    message => 'A test message',
    filename1 => '/data/oracle/dave_test1.txt',
    filename2 => '/data/oracle/dave_test2.txt');
    Most of the parameters are self-explanatory. "message" is a varchar2
    parameter, up to 32767 bytes long which contains the text of the message
    to be placed in the main body of the email.
    filename{1,2,3} are the names of the files to be attached to the email.
    The full pathname of each file must be specified. The files must exist
    in one of the directories specified in the init.ora parameter
    UTL_FILE_DIR. All filename parameters are optional: It is not necessary
    to specify unused file parameters (eg. filename3 is missing in the above
    example).
    The max_size parameter enables you to place a constraint on the maximum
    size of message, including all attachments, that the procedure will send.
    If this limit is exceeded, the procedure will truncate the message at
    that point with a '*** truncated ***' message. The default is effectively
    unlimited. However, the text of message body is still limited to 32Kb, as
    it is passed in as a varchar2.
    Obviously, as with any Oracle procedure, the parameter values can (and
    usually will be) PL/SQL variables, rather than hard-coded literals, as
    shown here.
    Written: Dave Wotton, 14/6/01 (Cambridge UK)
    This script comes with no warranty or support. You are free to
    modify it as you wish, but please retain an acknowledgement of
    my original authorship.
    Amended: Dave Wotton, 10/7/01
    Now uses the utl_smtp.write_data() method to send the message,
    eliminating the 32Kb message size constraint imposed by the
    utl_smtp.data() procedure.
    Amended: Dave Wotton, 20/7/01
    Increased the v_line variable, which holds the file attachment
    lines from 400 to 1000 bytes. This is the maximum supported
    by RFC2821, The Simple Mail Transfer Protocol specification.
    Amended: Dave Wotton, 24/7/01
    Now inserts a blank line before each MIME boundary line. Some
    mail-clients require this.
    Amended: Dave Wotton, 4/10/01
    Introduced a 'debug' parameter. Defaults to 0. If set to
    non-zero then errors in opening files for attaching are
    reported using dbms_output.put_line.
    Include code to hand MS Windows style pathnames.
    You may need to modify the following variable if you don't have a local
    SMTP service running (particularly relevant to Windows 2000 servers).
    Refer to http://home.clara.net/dwotton/dba/oracle_smtp.htm for more
    details.
    v_smtp_server varchar2(20) := 'doc148.xtec.es';
    v_smtp_server_port number := 25;
    v_directory_name varchar2(100);
    v_file_name varchar2(100);
    v_line varchar2(1000);
    crlf varchar2(2):= chr(13) || chr(10);
    mesg varchar2(32767);
    conn UTL_SMTP.CONNECTION;
    type varchar2_table is table of varchar2(200) index by binary_integer;
    file_array varchar2_table;
    i binary_integer;
    v_file_handle utl_file.file_type;
    v_slash_pos number;
    mesg_len number;
    mesg_too_long exception;
    invalid_path exception;
    mesg_length_exceeded boolean := false;
    begin
    -- first load the three filenames into an array for easier handling later ...
    file_array(1) := filename1;
    file_array(2) := filename2;
    file_array(3) := filename3;
    -- Open the SMTP connection ...
    conn:= utl_smtp.open_connection( v_smtp_server, v_smtp_server_port );
    -- Initial handshaking ...
    utl_smtp.helo( conn, v_smtp_server );
    utl_smtp.mail( conn, from_name );
    utl_smtp.rcpt( conn, to_name );
    utl_smtp.open_data ( conn );
    -- build the start of the mail message ...
    mesg:= 'Date: ' || TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' ) || crlf ||
    'From: ' || from_name || crlf ||
    'Subject: ' || subject || crlf ||
    'To: ' || to_name || crlf ||
    'Mime-Version: 1.0' || crlf ||
    'Content-Type: multipart/mixed; boundary="DMW.Boundary.605592468"' || crlf ||
    '' || crlf ||
    'This is a Mime message, which your current mail reader may not' || crlf ||
    'understand. Parts of the message will appear as text. If the remainder' || crlf ||
    'appears as random characters in the message body, instead of as' || crlf ||
    'attachments, then you''ll have to extract these parts and decode them' || crlf ||
    'manually.' || crlf ||
    '' || crlf ||
    '--DMW.Boundary.605592468' || crlf ||
    'Content-Type: text/plain; name="message.txt"; charset=US-ASCII' || crlf ||
    'Content-Disposition: inline; filename="message.txt"' || crlf ||
    'Content-Transfer-Encoding: 7bit' || crlf ||
    '' || crlf ||
    message || crlf ;
    mesg_len := length(mesg);
    if mesg_len > max_size then
    mesg_length_exceeded := true;
    end if;
    utl_smtp.write_data ( conn, mesg );
    -- Append the files ...
    for i in 1..3 loop
    -- Exit if message length already exceeded ...
    exit when mesg_length_exceeded;
    -- If the filename has been supplied ...
    if file_array(i) is not null then
    begin
    -- locate the final '/' or '\' in the pathname ...
    v_slash_pos := instr(file_array(i), '/', -1 );
    if v_slash_pos = 0 then
    v_slash_pos := instr(file_array(i), '\', -1 );
    end if;
    -- separate the filename from the directory name ...
    v_directory_name := substr(file_array(i), 1, v_slash_pos - 1 );
    v_file_name := substr(file_array(i), v_slash_pos + 1 );
    -- open the file ...
    v_file_handle := utl_file.fopen(v_directory_name, v_file_name, 'r' );
    -- generate the MIME boundary line ...
    mesg := crlf || '--DMW.Boundary.605592468' || crlf ||
    'Content-Type: application/octet-stream; name="' || v_file_name || '"' || crlf ||
    'Content-Disposition: attachment; filename="' || v_file_name || '"' || crlf ||
    'Content-Transfer-Encoding: 7bit' || crlf || crlf ;
    mesg_len := mesg_len + length(mesg);
    utl_smtp.write_data ( conn, mesg );
    -- and append the file contents to the end of the message ...
    loop
    utl_file.get_line(v_file_handle, v_line);
    if mesg_len + length(v_line) > max_size then
    mesg := '*** truncated ***' || crlf;
    utl_smtp.write_data ( conn, mesg );
    mesg_length_exceeded := true;
    raise mesg_too_long;
    end if;
    mesg := v_line || crlf;
    utl_smtp.write_data ( conn, mesg );
    mesg_len := mesg_len + length(mesg);
    end loop;
    exception
    when utl_file.invalid_path then
    if debug > 0 then
    dbms_output.put_line('Error in opening attachment '||
    file_array(i) );
    end if;
    -- All other exceptions are ignored ....
    when others then
    null;
    end;
    mesg := crlf;
    utl_smtp.write_data ( conn, mesg );
    -- close the file ...
    utl_file.fclose(v_file_handle);
    end if;
    end loop;
    -- append the final boundary line ...
    mesg := crlf || '--DMW.Boundary.605592468--' || crlf;
    utl_smtp.write_data ( conn, mesg );
    -- and close the SMTP connection ...
    utl_smtp.close_data( conn );
    utl_smtp.quit( conn );
    end;
    NOT MINE BUT COPY PASTE TO HELP YOU...

Maybe you are looking for