Serious Problem In Oracle9i regarding numerical value error.

Dear Experts,
The below code gives numerical value error where cursor is fetching data(in the 'for' line).
But the cursor's query is executing properly in a SQL window.
Version is Oracle9i Release 9.2.0.1.0 - Production
PL/SQL Release 9.2.0.1.0 - Production
Database Server created in Windows platform.
Code------
CREATE OR REPLACE Procedure INTGD.Ge_b_p_Test_Decode As
Cursor c_Decode Is
select decode(txt_party_sex,'M','MALE','FEMALE') Txt_Refund_Type
from ge_b_motor_pool_policy_details
Union
Select 'P' From Gen_Proposal;
lv_refund_type varchar2(10);
l_Error_Msg Varchar2(500);
Begin
For i In c_Decode Loop
Begin
lv_refund_type := i.Txt_Refund_Type;
Insert Into Ge_b_Test_Decode Values (lv_refund_type);
Commit;
Exception
When Others Then
l_Error_Msg := Substr(Sqlerrm, 1, 500);
Dbms_Output.Put_Line(l_Error_Msg);
End;
End Loop;
End;
Please help ASAP.
Regards,
jishnu

Dear Experts
CREATE TABLE GE_B_MOTOR_POOL_POLICY_DETAILS
TXT_RO_CODE VARCHAR2(10 BYTE) NOT NULL,
TXT_OO_CODE VARCHAR2(10 BYTE) NOT NULL,
NUM_POLICY_NUMBER NUMBER(25),
NUM_ENDORSEMENT_SRL_NO NUMBER(3),
NUM_SCHEDULE_CERTIFICATE_NO NUMBER(5),
TXT_ENDORSMENT_POLICY_NUMBER VARCHAR2(23 BYTE),
NUM_REFERENCE_NUMBER NUMBER(14) NOT NULL,
DAT_REFERENCE_DATE DATE NOT NULL,
NUM_XML_JOB_NO NUMBER(20),
TXT_PRE_CAL_BASIS VARCHAR2(20 BYTE),
CUR_NET_TP_PREMIUM NUMBER(20),
CUR_TOT_TP_PREMIUM NUMBER(20),
CUR_TP_SERVICE_TAX NUMBER(20),
DAT_POLICY_EXPIRE_DATE DATE,
NUM_POL_TERM NUMBER(3),
TXT_POL_TERM_UNIT CHAR(1 BYTE),
TXT_PARTY_TYPE CHAR(1 BYTE),
TXT_PARTY_CODE VARCHAR2(30 BYTE),
TXT_PARTY_FIRSTNAME VARCHAR2(60 BYTE),
TXT_PARTY_MIDDLENAME VARCHAR2(60 BYTE),
TXT_PARTY_LASTNAME VARCHAR2(60 BYTE),
TXT_PARTY_SEX CHAR(1 BYTE),
DAT_POLICY_START_DATE DATE,
TXT_PARTY_ADDR1 VARCHAR2(100 BYTE),
TXT_PARTY_ADDR2 VARCHAR2(100 BYTE),
TXT_PARTY_ADDR3 VARCHAR2(100 BYTE),
NUM_PARTY_PINCODE NUMBER(6),
TXT_PARTY_STAKE_CODE VARCHAR2(10 BYTE),
CUR_PAYMENT NUMBER(10),
TXT_POL_INDICATOR VARCHAR2(10 BYTE),
TXT_MAIN_POL_TYPE VARCHAR2(10 BYTE),
TXT_POLICY_CATEGORY_FLEET_SCHD CHAR(1 BYTE),
DAT_VOUCHAR_DATE DATE,
TXT_PAY_MODE VARCHAR2(10 BYTE),
TXT_PARTY_NAME VARCHAR2(60 BYTE),
CUR_VOUCHAR_AMOUNT NUMBER(20),
TXT_VOUCHAR_NUMBER VARCHAR2(30 BYTE),
TXT_INSTRUMENT_NUMBER VARCHAR2(20 BYTE),
DAT_INSTRUMENT_DATE DATE,
TXT_NARRATION VARCHAR2(100 BYTE),
DAT_INTIMATION_DATE DATE,
DAT_INCEPTION_DATE DATE,
TXT_PRODUCT_CODE VARCHAR2(10 BYTE),
TXT_POLICY_EVENT VARCHAR2(10 BYTE),
TXT_NIL_ENDORSEMENT_INDICATOR CHAR(1 BYTE),
TXT_ENDORSEMENT_TYPE VARCHAR2(23 BYTE),
TXT_REFUND_TYPE VARCHAR2(23 BYTE),
TXT_CANCELLATION_TYPE VARCHAR2(23 BYTE),
TXT_MEMBER_CODE VARCHAR2(10 BYTE),
TXT_EVENT_SEQ_NO VARCHAR2(10 BYTE),
TXT_MEMBER_POLICY_NO VARCHAR2(42 BYTE),
DAT_VEHICLE_PURCHASE DATE,
TXT_VEHICLE_NEW_SECOND_HAND VARCHAR2(10 BYTE),
TXT_VEHICLE_CATEGORY VARCHAR2(10 BYTE),
TXT_VEHI_COMMERCIAL_PASSENGER VARCHAR2(10 BYTE),
TXT_VEHI_REGISTRATION_NO_1 VARCHAR2(3 BYTE),
TXT_VEHI_REGISTRATION_NO_2 VARCHAR2(3 BYTE),
TXT_VEHI_REGISTRATION_NO_3 VARCHAR2(3 BYTE),
TXT_VEHI_REGISTRATION_NO_4 VARCHAR2(4 BYTE),
TXT_REGISTRATION_NO VARCHAR2(15 BYTE),
DAT_VEHI_REGISTRATION_DATE DATE,
TXT_VEHI_REG_AUTHORITY VARCHAR2(30 BYTE),
NUM_VEHI_MANU_YEAR NUMBER(10),
TXT_VEHI_ENGINE_NO VARCHAR2(30 BYTE),
TXT_VEHI_CHASSIS_NO VARCHAR2(30 BYTE),
TXT_MAKE_MODEL VARCHAR2(10 BYTE),
NUM_GROSS_VEHICLE_WT NUMBER(15),
NUM_SEATING_CAPACITY_CABIN NUMBER(3),
TXT_VEHI_FULE_TYPE VARCHAR2(10 BYTE),
TXT_LPG_CNG_KIT_IN_BUILT VARCHAR2(3 BYTE),
TXT_TYPE_OF_PERMIT VARCHAR2(10 BYTE),
TXT_VEHI_USED_TUTION VARCHAR2(3 BYTE),
TXT_VEHI_USED_COMMERCIAL VARCHAR2(3 BYTE),
TXT_VEHI_DESIGNED_HANDICAPED VARCHAR2(3 BYTE),
TXT_EXTN_OF_GEO_REQUIRED VARCHAR2(3 BYTE),
NUM_CUBIC_CAPACITY NUMBER(5),
NUM_LICENSE_CARRYING_CAPACITY NUMBER(8),
TXT_NO_TRLR_TOWED_BY_TOW_VEH VARCHAR2(10 BYTE),
TXT_TRAILERS_TOWED_BY VARCHAR2(10 BYTE),
CUR_POL_RISK_PREMIUM NUMBER(20),
CUR_POL_RISK_DISCOUNT NUMBER(20),
CUR_POL_RISK_OVERLOAD NUMBER(20),
CUR_TOT_POL_RISK NUMBER(20),
TXT_WISH_TO_REDUCE_TPPD_COVER VARCHAR2(3 BYTE),
NUM_NO_NON_FARE_PAY_PASSENGER NUMBER(3),
NUM_NO_NON_FARE_PASS_EXCL_EMP NUMBER(3),
TXT_WISH_TO_COVER_EMP_NON_FARE VARCHAR2(3 BYTE),
NUM_NO_OF_LL_TO_DRVR_CLNR_CON NUMBER(3),
NUM_NO_OF_WCL_TO_COOLIES NUMBER(3),
NUM_NO_OF_PAID_DRVR_CLNR_COND NUMBER(3),
CUR_TOT_SI_FOR_DRVR_CLNR_CON NUMBER(15),
NUM_NO_UNNAMED_PERSNS_PRSNLACC NUMBER(3),
CUR_TOT_SI_FOR_UNNAMED_PERSNS NUMBER(15),
TXT_TYPE_OF_GOODS_TRANSPORTING VARCHAR2(10 BYTE),
TXT_HOLD_VALID_DRV_LICENSE VARCHAR2(10 BYTE),
NUM_PROPOSAL_TYPE NUMBER(5),
NUM_MEMBER_ENDORSEMENT_TYPE NUMBER(5),
NUM_VEHICLE_INTL_TYPE NUMBER(5),
NUM_MEMBER_MAKE_CODE NUMBER(5),
NUM_MEMBER_PAYMENT_MODE NUMBER(5),
NUM_MEMBER_POLICY_CODE NUMBER(3),
NUM_XID NUMBER(10),
TXT_MULTI_PAYMENT CHAR(1 BYTE),
TXT_POLICY_FLAG CHAR(1 BYTE),
NUM_RECORD_SEQUENCE NUMBER(30),
NUM_SCHEDULE_NUMBER NUMBER(5),
NUM_SCHEDULE_ENTRY_NUMBER NUMBER(10),
DAT_EVENT_DATE DATE,
NUM_OUT_XID NUMBER(10),
DAT_PROCESS_RUN_DATE DATE,
TXT_HIRE_IMT35_APPLICABLE VARCHAR2(3 BYTE),
DAT_ENDT_START_DATE DATE,
TXT_OTHER_MAKE VARCHAR2(50 BYTE),
TXT_TRANSIT_FROM VARCHAR2(30 BYTE),
TXT_TRANSIT_TO VARCHAR2(30 BYTE),
NUM_ACTUAL_DISTANCE NUMBER(15),
TXT_TRAILER_ATTACHED VARCHAR2(1 BYTE),
NUM_NO_TRAILER_ATTAH_TOWING_BY NUMBER(10),
TXT_TRAILER_PURPOSE_TOWED_BY VARCHAR2(3 BYTE),
TYPE_OF_OTHER_VEHI_MISC VARCHAR2(10 BYTE),
NUM_NUMBER_OF_DRIVERS NUMBER(3),
NUM_NUMBER_OF_TRADE_CERTIFI VARCHAR2(3 BYTE),
TXT_WHETHER_TWO_WHEELER_OR_NOT VARCHAR2(3 BYTE),
CUR_WAGES_IN_RS NUMBER(15),
NUM_AREA_IN_SQUARE_METER NUMBER(15),
TXT_TYPE_OF_PREMISES VARCHAR2(3 BYTE),
NUM_AREA_OPENAIRCARPARK_IMT64 NUMBER(15),
NUM_NO_PREMISES_BEYOND_450 NUMBER(3),
TXT_LIABILITYWORKAWAYIMT65 VARCHAR2(3 BYTE),
NUM_NO_LLPASSEXCLUDEMP_IMT46 NUMBER(3),
TXT_WHETHER_VEHIUSEDDEMOIMT60 VARCHAR2(3 BYTE),
TXT_WHETHERVEHICLETUITIONIMT61 VARCHAR2(3 BYTE),
NUM_NO_LLDRIVERCLNRCONDUCIMT28 NUMBER(3),
NUM_MISC_VEHICLECLASS_MEMBER NUMBER(10),
TXT_PA_OD_COVER_REQUIRED VARCHAR2(1 BYTE),
NUM_DISTANCE_TRAVELLED_VEHICLE NUMBER(10),
NUM_NO_OF_DAYS NUMBER(10),
CUR_TP_LOADING NUMBER(20),
TXT_DUMMY_1 VARCHAR2(100 BYTE),
TXT_DUMMY_2 VARCHAR2(100 BYTE),
TXT_DUMMY_3 VARCHAR2(100 BYTE),
TXT_DUMMY_4 VARCHAR2(100 BYTE),
TXT_DUMMY_5 VARCHAR2(100 BYTE),
NUM_DUMMY_1 NUMBER(2),
NUM_DUMMY_2 NUMBER(2),
NUM_DUMMY_3 NUMBER(3),
NUM_DUMMY_4 NUMBER(4),
DAT_DUMMY_1 DATE,
DAT_DUMMY_2 DATE,
DAT_DUMMY_3 DATE,
DAT_DUMMY_4 DATE
here txt_party_sex char(1) column is used in the pl/sql program
CREATE TABLE GEN_PROPOSAL
NUM_REFERENCE_NUMBER NUMBER(14) NOT NULL,
DAT_REFERENCE_DATE DATE NOT NULL,
NUM_POLICY_NUMBER NUMBER(20) DEFAULT 0 NOT NULL,
NUM_POLICY_YEAR NUMBER(4) DEFAULT 0 NOT NULL,
NUM_DEPARTMENT_CODE NUMBER(3) NOT NULL,
NUM_POLICY_TYPE NUMBER(3) NOT NULL,
NUM_ENDORSEMENT_NUMBER NUMBER(20) DEFAULT 0 NOT NULL,
NUM_ENDORSEMENT_YEAR NUMBER(4) DEFAULT 0 NOT NULL,
NUM_PROPOSAL_TYPE NUMBER(2) NOT NULL,
TXT_PROPOSAL_STATUS VARCHAR2(2 BYTE) NOT NULL,
NUM_COVERNOTE_NUMBER NUMBER(16),
DAT_COVERNOTE_DATE DATE,
TXT_NAME_OF_INSURED VARCHAR2(200 BYTE) NOT NULL,
MEM_ADDRESS_OF_INSURED VARCHAR2(255 BYTE) NOT NULL,
TXT_TELEPHONE VARCHAR2(30 BYTE),
TXT_FAX VARCHAR2(15 BYTE),
NUM_BUSINESS_CODE NUMBER(2),
NUM_INDUSTRY_CODE NUMBER(4),
NUM_PREVIOUS_POLICY_YEAR NUMBER(4),
NUM_PREVIOUS_POLICY_NUMBER NUMBER(20),
NUM_PREVIOUS_OFFICE_CODE NUMBER(6),
NUM_PREVIOUS_POLICY_TYPE NUMBER(3),
CUR_TOTAL_PREMIUM NUMBER(13,2) NOT NULL,
CUR_PREMIUM_RECEIVED NUMBER(13,2) DEFAULT 0 NOT NULL,
NUM_DEVELOPMENT_OFFICER_CODE NUMBER(8),
NUM_AGENT_CODE NUMBER(14),
NUM_SPECIAL_CLIENT_CODE NUMBER(8),
DAT_DATE_OF_ISSUE_OF_POLICY DATE,
DAT_DATE_OF_EXPIRY_OF_POLICY DATE,
DAT_PREV_POLICY_EXPIRY_DATE DATE,
TXT_OCCUPATION VARCHAR2(50 BYTE),
NUM_NO_OF_CLAIMS NUMBER(8) DEFAULT 0 NOT NULL,
NUM_ENDORSEMENT_TYPE NUMBER(2),
DAT_HOURS_EFFECTIVE_FROM DATE,
CUR_PREMIUM_COMPUTED NUMBER(13,2) NOT NULL,
CUR_SERVICE_TAX NUMBER(13,2) DEFAULT 0 NOT NULL,
CUR_ENDT_AMOUNT NUMBER(13,2) DEFAULT 0 NOT NULL,
CUR_ENDT_SERTAX NUMBER(13,2) DEFAULT 0 NOT NULL,
CUR_STAMP_DUTY NUMBER(11,2) DEFAULT 0 NOT NULL,
YN_STAMP_DUTY_CHARGEABLE NUMBER(1) NOT NULL,
CUR_SUM_INSURED NUMBER(16) NOT NULL,
NUM_OWN_SHARE NUMBER(5,2) NOT NULL,
NUM_AGENT_BILL_NO NUMBER(12) DEFAULT 0 NOT NULL,
NUM_AGENT_COMM NUMBER(13,2) DEFAULT 0 NOT NULL,
DAT_ENDT_START_DATE DATE,
DAT_ENDT_END_DATE DATE,
TXT_USER_ID VARCHAR2(8 BYTE),
NUM_PC_ID NUMBER(2),
NUM_SESSIO_ID NUMBER(5),
NUM_PIN_CODE NUMBER(6),
CUR_SPECIAL_DISCOUNT NUMBER(13,2),
DAT_PROPOSAL_DATE DATE DEFAULT trunc(sysdate),
CUR_ENDT_STAMP_DUTY NUMBER(11,2) DEFAULT 0 NOT NULL,
NUM_ENDT_POLICY_NUMBER NUMBER(20) DEFAULT 0 NOT NULL,
TXT_ENDT_FLAG CHAR(1 BYTE),
NUM_INSTMNT_NO NUMBER(2) DEFAULT 0 NOT NULL,
NUM_PREVIOUS_COMPANY_CODE NUMBER(6),
NUM_COUNTRY_CODE NUMBER(3) NOT NULL,
NUM_CURRENCY_CODE NUMBER(3) NOT NULL,
NUM_AGENT_COMM_RATE NUMBER(4,2),
NUM_SPECIAL_DISCOUNT_RATE NUMBER(4,2),
DAT_COVERNOTE_RCVD_DATE DATE,
TXT_SECTOR_CODE VARCHAR2(5 BYTE) NOT NULL,
NUM_CLASS_CODE NUMBER(3) NOT NULL,
TXT_MANUAL_CODE VARCHAR2(3 BYTE) NOT NULL,
TXT_CUST_POLICY_NO VARCHAR2(20 BYTE) NOT NULL,
TXT_CUST_ENDT_POLICY_NO VARCHAR2(20 BYTE) NOT NULL,
DAT_LAST_UPDT_DTTM_DATE DATE DEFAULT sysdate NOT NULL,
TXT_ARCHIVAL_STATUS CHAR(1 BYTE) DEFAULT 'F' NOT NULL,
NUM_RENEWAL_POLICY_NO NUMBER(20) DEFAULT 0 NOT NULL,
TXT_LAST_RECORD_STATUS CHAR(2 BYTE) NOT NULL,
TXT_EMAIL_ADDRESS VARCHAR2(200 BYTE),
NUM_SUB_CLASS_CODE NUMBER(3),
CUR_STAFF_DISCOUNT NUMBER(13,2),
CUR_GROUP_DISCOUNT NUMBER(13,2),
CUR_LONGTERM_DISCOUNT NUMBER(13,2),
CUR_TERRORISM_LOADING NUMBER(13,2),
NUM_REINSTATEMENT_CLAIM_NO NUMBER(20),
NUM_AGENT_MOD_COMM_RATE NUMBER(4,2),
TXT_BUSINESS_FLAG VARCHAR2(3 BYTE),
YN_SEZ NUMBER(1),
TXT_PAN_NO VARCHAR2(15 BYTE),
TXT_COMM_SHARE VARCHAR2(2 BYTE),
TXT_CROSS_REFERENCE_NUMBER VARCHAR2(200 BYTE),
DAT_CROSS_REFERENCE_DATE DATE,
NUM_GROUP_CODE NUMBER(8),
TXT_PRODUCT_TYPE VARCHAR2(2 BYTE),
DAT_ACTUAL_EXPIRY_OF_POLICY DATE
)

Similar Messages

  • DBMS_LOB.LOADFROMFILE causes numeric value error

    The code below causes a numeric value error when I do LOADFROMFILE. Do you have any suggestions. Thanks.
    declare
    locator bfile;
    cloblocator clob;
    buffer varchar2(1000);
    lsize integer := 0;
    amount INTEGER := 1000;
    v_filename varchar(50) := 'notify_offer_tbl';
    begin
    locator := bfilename('IDEA_DATA_DIR','notify_offer_tbl');
    insert into imsa.t_unix_logs values ('notify_offer_tbl', locator, empty_clob());
    Select fileloclob into cloblocator from imsa.t_unix_logs where filename ='notify_offer_tbl' for update;
    if dbms_lob.fileexists(locator) = 1 then
    dbms_output.put_line('Exists');
    if dbms_lob.fileisopen(locator) = 1 then
    dbms_output.put_line('open');
    else
    dbms_output.put_line('close');
    dbms_lob.fileopen(locator, DBMS_LOB.FILE_READONLY);
    lsize := dbms_lob.getlength(locator);
    dbms_output.put_line('File Length: ' || to_char(lsize));
    DBMS_LOB.LOADFROMFILE(cloblocator, locator, lsize);
    commit;
    end if;
    end if;
    DBMS_LOB.READ(cloblocator, amount, 1, buffer);
    dbms_output.put_line('File ' || buffer);
    DBMS_LOB.FILECLOSE(locator);
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line('Error -- ' || SUBSTR(sqlerrm, 1, 200));
    DBMS_LOB.FILECLOSE(locator);

    Yes. The column clobcol (in the SELECT in your example) should be set to empty_clob() or already contain a CLOB, before selecting the column value into the local variable. The example in the DBMS_LOB documentation page is misleading as it does not mention this.
    Note also that it is best to use dbms_lob.getlength to establish the value for
    the amount parameter.
    Hope this helps others searching for information on this - I have spent some painful hours working this out!
    Peter

  • Numeric Value error 1426

    Hi,
    How to retrive the value of below query.
    I am encountered with numeric value error.
    select power(10,333333333333) from dual;Thanks in advance

    You did look up the error in the online documentation?
    Why not?
    If you would have done so you would have gotten
    Cause: Evaluation of an value expression causes an overflow/underflow.
    Action: Reduce the operands.
    Looks clear to me.
    Looks like you should have done this first in order to avoid redundant questions.
    Sybrand Bakker
    Senior Oracle DBA
    Edited by: sybrand_b on 25-jun-2009 2:49

  • PL/SQL NUMERIC VALUE ERROR

    Hi ,
    We have following code and sending the data through attachnmet its giving the pl/sql numeric value error.
    Please correct me.
    __Code Details:::__
    CREATE OR REPLACE PROCEDURE APPS.print_reports
    IS
    wfile_handle UTL_FILE.file_type;
    lv_file VARCHAR2 (100);
    lv_date VARCHAR2 (20);
    mail_conn UTL_SMTP.connection;
    lv_rep_headers VARCHAR2 (32000);
    p_o_srv_result xxcss_prf_report_pkg.ref_cur_srv_prog;
    lv_str_type XXCSS_PRF_STRING;
    lv_line VARCHAR2 (32767);
    lv_send_to VARCHAR2 (200);
    lv_host_name VARCHAR2 (200) := 'outbound.cisco.com';
    l_vtab CHAR := CHR (9);
    lv_from VARCHAR2 (200) := '[email protected]';
    lv_att_file_name VARCHAR2 (200);
    lv_path VARCHAR2 (200);
    p_request_type VARCHAR2 (1) := 'E';
    p_request_id NUMBER;
    errbuf VARCHAR2 (2000);
    retcode NUMBER;
    crlf VARCHAR2 (2) := CHR (13) || CHR (10);
    lv_line_data Clob;
    lv_clob clob;
    BEGIN
    BEGIN
    SELECT VALUE
    INTO lv_path
    FROM v$parameter
    WHERE NAME = 'utl_file_dir';
    EXCEPTION
    WHEN OTHERS
    THEN
    lv_path := '\tmp';
    END;
    lv_rep_headers :=
    'REGION'
    || CHR (9)
    || 'COUNTRY'
    || CHR (9)
    || 'CUSTOMER NAME'
    || CHR (9)
    || 'ERP CUSTOMER NUMBER'
    || CHR (9)
    || 'PROFILE ID'
    || CHR (9);
    FOR i IN ( SELECT DISTINCT srv_program_id srv_prgm
    FROM xxcss_prf_cust_srv_programs
    ORDER BY srv_program_id ASC)
    LOOP
    lv_rep_headers := lv_rep_headers ||i.srv_prgm || CHR (9);
    END LOOP;
    lv_rep_headers := lv_rep_headers || CHR (13);
    BEGIN
    XXCSS_PRF_REPORT_PKG.offline_daemon (p_request_id,
    p_request_type,
    p_o_srv_result,
    errbuf,
    retcode);
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.PUT_LINE ('Error in Offline');
    END;
    lv_att_file_name := 'Eligibility_reports'||p_request_id||'.xls';
    -- DBMS_OUTPUT.PUT_LINE (lv_rep_headers);
    wfile_handle := UTL_FILE.fopen (lv_path, lv_att_file_name, 'W');
    UTL_FILE.put_line (wfile_handle, lv_rep_headers);
    BEGIN
    LOOP
    FETCH p_o_srv_result INTO lv_str_type;
    EXIT WHEN p_o_srv_result%NOTFOUND;
    lv_line := NULL;
    FOR i IN 1 .. lv_str_type.COUNT
    LOOP
    lv_line := lv_line || lv_str_type (i) || CHR (9);
    END LOOP;
    lv_line := lv_line || CHR (13);
    UTL_FILE.put_line (wfile_handle, lv_line);
    END LOOP;
    lv_str_type.DELETE;
    END;
    UTL_FILE.fclose (wfile_handle);
    BEGIN
    wfile_handle := UTL_FILE.FOPEN (lv_path, lv_att_file_name, 'R');
    -- DBMS_OUTPUT.PUT_LINE ('inside file');
    LOOP
    UTL_FILE.GET_LINE (wfile_handle, lv_line_data,32767);
    -- DBMS_OUTPUT.PUT_LINE (lv_line_data);
    lv_clob := lv_clob || lv_line_data;
    END LOOP;
    UTL_FILE.FCLOSE (wfile_handle);
    EXCEPTION
    WHEN OTHERS
    THEN
    errbuf := sqlerrm;
    UTL_FILE.FCLOSE (wfile_handle); -- close file
    DBMS_OUTPUT.PUT_LINE ('Exception'||errbuf);
    NULL;
    END;
    DBMS_OUTPUT.PUT_LINE ('afterdata');
    --DBMS_OUTPUT.PUT_LINE (lv_line_data);
    SELECT email_id
    INTO lv_send_to
    FROM xxcss_prf_offline_report_tb
    WHERE request_id = p_request_id AND report_type = p_request_type;
    mail_conn := UTL_SMTP.open_connection (lv_host_name, 25);
    UTL_SMTP.Helo (mail_conn, lv_host_name);
    UTL_SMTP.Mail (mail_conn, 'sangrdas');
    UTL_SMTP.Rcpt (mail_conn, lv_send_to);
    UTL_SMTP.OPEN_Data(mail_conn) ;
    DBMS_OUTPUT.PUT_LINE ('Sending Data');
    UTL_SMTP.write_Data (
    Mail_Conn,
    'Date: '
    || TO_CHAR (SYSDATE, 'Dy, DD Mon YYYY hh24:mi:ss')
    || crlf
    || 'From: '
    || lv_from
    || crlf
    || 'Subject: ELIGIILITY Report_'
    || p_request_id
    || crlf
    || 'To: '
    || lv_send_to
    || crlf
    || 'MIME-Version: 1.0'
    || crlf
    || -- Use MIME mail standard
    'Content-Type: multipart/mixed;'
    || crlf
    || ' boundary="-----SECBOUND"'
    || crlf
    || '-------SECBOUND'
    || crlf
    || 'Content-Type: text/plain;'
    || crlf
    || 'Content-Transfer_Encoding: 7bit'
    || crlf
    || 'some message text'
    || crlf
    || -- Message body
    'more message text'
    || crlf
    || '-------SECBOUND'
    || crlf
    || 'Content-Type: text/plain;'
    || crlf
    || ' name="'|| lv_att_file_name||'"'
    || crlf
    || 'Content-Transfer_Encoding: 8bit'
    || crlf
    || 'Content-Disposition: attachment;'
    || crlf
    || ' filename="'
    || lv_att_file_name
    || '"'
    ||crlf
    ||crlf
    ||lv_clob
    || crlf
    ||crlf
    ||crlf
    || '-------SECBOUND');
    UTL_SMTP.CLOSE_Data(mail_conn) ;
    UTL_SMTP.quit (mail_conn);
    DBMS_OUTPUT.PUT_LINE ('After Mail');
    EXCEPTION
    WHEN OTHERS THEN
    errbuf := sqlerrm;
    DBMS_OUTPUT.PUT_LINE ('ERROR Sending Data'||errbuf);
    ROLLBACK;
    END;
    /

    Yet again, opening a new thread for an existing issue...
    Need help in UTL file
    Same old, same old...
    need a report code
    need to create the header dynamically for a report
    Would have thought you'd get the idea of posting on the forums by now.

  • Import Purchase orders failing with numeric/value error issue

    Import Purchase orders failing with numeric/value error issue

    Hi All,
    Import Purchase Orders program is failing with PL/SQL Numeric or Value Error.
    DECLARE
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at line 55
    Kindly help me to get the issue fixed

  • Numeric value error

    hi,
    when i enter char data in numeric field i am getting frm40735,ora 06502 error in when validate item triger.how to give validation for this.

    As you are pretty new to the Forums, I strongly recommend you take a few minutes to review the following:
    <ul>
    <li>Oracle Forums FAQ
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>How to ask questions the smart way
    </ul>
    Following these simple guidelines will ensure you have a positive experience in any forum; not just this one! ;-)
    What is your Forms Version? The ORA-06502: PL/SQL: numeric or value error string error is typically caused when you try to convert a value from one data type to an unsupported data type. In other words, you try to convert a string to a number. It is also caused by trying to put a value in a variable that is larger than the variable supports. I recommend you run the Forms Debugger to see which line of code in your When-Validate-Item trigger is causing the error. If you don't know how to use the Forms Debugger you can use the old Output Message method (display a message in your code so you know where you are when your code executes) to discover where the error is caused.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Pl/sql or numeric value error

    Hi
    I'm trying to append CLOB to CLOB (assuming both are not null and lenght is less than the max allowed) and getting the error, Why is that error coming, the length cobined is only 50k.
    PK_UTILITIES.sp_get_recs(site_id_i, entity_id_i, false, v_clob_str);
    v_len := DBMS_LOB.getlength(v_clob_str);
    IF (NVL(v_len,0) > 0 ) THEN
    DBMS_OUTPUT.PUT_LINE('Length: '||v_len);
    DBMS_LOB.WRITEAPPEND(XML_o,length(v_clob_str),v_clob_str);
    END IF;
    Thanks in advance
    Murthy

    We are using the same DBMS_LOB.appendAs I said above, you must do a DBMS_LOB.CreateTemporary to create and populate a LOB correctly.
    SQL> declare
      2    lob CLOB ;
      3  begin
      4    for idx in 1 .. 100
      5    loop
      6      dbms_lob.writeappend(lob, 4000, RPAD('*', 4000, '*')) ;
      7    end loop ;
      8    dbms_output.put_line(dbms_lob.getlength(lob)) ;
      9  end ;
    10  /
    declare
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: invalid LOB locator specified: ORA-22275
    ORA-06512: at "SYS.DBMS_LOB", line 789
    ORA-06512: at line 6
    SQL> declare
      2    lob CLOB ;
      3  begin
      4    lob := NULL ;
      5    for idx in 1 .. 100
      6    loop
      7      dbms_lob.writeappend(lob, 4000, RPAD('*', 4000, '*')) ;
      8    end loop ;
      9    dbms_output.put_line(dbms_lob.getlength(lob)) ;
    10  end ;
    11  /
    declare
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: invalid LOB locator specified: ORA-22275
    ORA-06512: at "SYS.DBMS_LOB", line 789
    ORA-06512: at line 7
    SQL> declare
      2    lob CLOB ;
      3  begin
      4    dbms_lob.createtemporary(lob, TRUE) ;
      5    for idx in 1 .. 100
      6    loop
      7      dbms_lob.writeappend(lob, 4000, RPAD('*', 4000, '*')) ;
      8    end loop ;
      9    dbms_output.put_line(dbms_lob.getlength(lob)) ;
    10    dbms_lob.freetemporary(lob) ;
    11  end ;
    12  /
    400000
    PL/SQL procedure successfully completed.
    SQL>

  • In formula column - I am getting current year - but get numeric value error

    Hello
    I defined a formula column as folllows:
    function CF_1Formula return char is
    thisyear char;
    begin
         select to_char(sysdate,'YYYY')
         into thisyear
         from dual;
         return thisyear;
    end;
    I get - Fatal Pl/Sql error. numeric or value error. What am I doing wrong here?

    Or replace the whole thing with
    RETURN to_char(sysdate,'YYYY');
    saving a pointless round trip to the database.

  • Invalid Numeric Value Error in CS3

    I was editing the kerning on a project, and accidentally hit a letter or something. When I hit enter an invalid numeric error panel popped up which was fine. Except when I hit the "OK" button it just pops up again and again and won't go away. Now I might lose everything because this error keeps popping up and I can't save or anything. Anyone have any suggestions at all?

    Jesseham-JAh5zI wrote:
    It totally blows, but there is nothing you can do at this point.  Sorry!  It's gotten us all at least once...
    Can anyone verify that this is fixed in CS4?
    [note - in cs3 this will lock up your illy] Type some text, Set the kerning to optical, place your cursor in the text somewhere, then in the text panel(palette) tab into or click in the kerning box and change the number there.  A warning comes up saying invalid something-or-other.  Click okay and the warning just keeps coming up
    Win XP SP3, AI CS3... doesn't seem to be a problem... i get the invalid message... clik ok and all is ok...

  • Numeric or Value Error 6502

    I have a stored procedure that starts out like so:
    PROCEDURE test_proc(param1 IN VARCHAR2, param2 IN VARCHAR2, param3 OUT
    SYS_REFCURSOR) IS
    v_var varchar2(5);
    BEGIN
    SELECT * FROM. . .
    The procedure tests fine in SQL Plus and PL/SQL Developer. When calling from
    ODP.NET like so. . .
    OracleCommand cmd = new OracleCommand("test_proc", <connection>);
    cmd.CommandType = CommandType.StoredProcedure;
    cmd.Parameters.Add("param1", "somevalue");
    cmd.Parameters.Add("param2", "XX");
    cmd.Parameters.Add("param3", OracleDbType.RefCursor,
    ParameterDirection.Output);
    DataSet ds = new DataSet();
    OracleDataAdapter da = new OracleDataAdapter(cmd);
    con.Open();
    da.fill(ds);
    con.Close();
    . . .the procedure executes as expected. If I change the value of
    param2 to "XXX" or any value three chars long I get the "ORA-06502:
    Numeric or Value Error at Line 1" error.
    Here's the kicker: I never constrain the size of that parameter or try to assign it to a variable! Why then should there be a numeric/value error?
    Anyone have any ideas?
    Thanks.

    Hi,
    Are you pointing to a 9206 database by chance? There was a known database bug that could cause that, and would be resolved by patching your database to 9208.
    Cheers,
    Greg

  • Validating numeric value in a filename

    I have a file and the filename  should be like ABC_12345_RES_20150410.txt and i have to validate the filename.I am facing problem in validating the numeric value which can change and its length also can change.
    I am using the following expression to validate whether its the numeric value /not:
    (DT_I4)(SUBSTRING( @[User::FileName]  ,FINDSTRING( @[User::FileName]  ,"_", 1)+1, FINDSTRING( @[User::FileName]  ,"_", 2)-FINDSTRING( @[User::FileName]  ,"_", 1)-1)) == (DT_I4)(SUBSTRING( @[User::FileName] 
    ,FINDSTRING( @[User::FileName]  ,"_", 1)+1, FINDSTRING( @[User::FileName]  ,"_", 2)-FINDSTRING( @[User::FileName]  ,"_", 1)-1))
    This statement is failing the package when i am entering a character instead of digit.. But i don't want the package to fail rather i just want to log the exception in this case.
    Is there any other way to validate the numeric Value?
    Many Thanks in Advance!

    Thanks a ton Martin for your advice.
    I can do that but Actually the conversion is failing.. its giving error that cannot convert to (DT_I8). M looking for any other  way to validate  the numeric value.

  • Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API. This is a serious error and contributes to an overall degradation of system stability and reliability. This notice is a courtesy

    Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API. This is a serious error and contributes to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.

    This console log is a note to the developers of whatever application you are using. You can safely ignore it.

  • Numeric or value error problem

    Hi,
    I created the following function on Oracle 8i:
    create or replace function get_pub_info(p_inbox in varchar2)
    return varchar2 deterministic is
    cursor c_pub(p_inb varchar2) is
    select a.pub_name,
    a.pub_code,
         b.fprocess_id
    from pub a, fprocess b
    where b.inbox_id = p_inb
    and a.pub_code = b.pub_code;
    v_inbox varchar2(25) default p_inbox;
    v_pubn pub.pub_name%type;
    v_pubc pub.pub_code%type;
    v_fprocid fprocess.fprocess_id%type;
    v_info varchar2(4000);
    begin
    open c_pub(trim(v_inbox));
    v_info := '[';
    loop
    fetch c_pub into v_pubn, v_pubc, v_fprocid;
    exit when c_pub%notfound;
    if (v_pubn is not null) and (v_pubc is not null) and (v_fprocid is not null) then
    v_info := v_info || '{PUB_PROCESS_ID=>"' || trim(v_fprocid) || '", PUB_CODE=>"' || trim(v_pubc) || '", PUB_NAME=>"'|| trim(v_pubn) ||'"},';
    end if;
    end loop;
    close c_pub;
    if v_info is not null then
    if length(v_info) <= 1 then
    v_info := '';
    else
    v_info := substr(v_info,1,length(v_info)-1)||']';
    end if;
    else
    v_info := '';
    end if;
    return v_info;
    end;
    This function is used to generate a view column, and when I type "select * from view_name" on SQL*Plus, I get the error:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "ISI_PUBS.GET_PUB_INFO", line 25
    ORA-06512: at line 1
    Can anybody give me a hand with this? Why this error happens?
    I would really appreciate your help.
    Thanks in advance.
    -eric-

    Wednesday, May 15, 2002 1:29pm ADT
    Hi Eric,
    Can't recreate your error.... I did the following (see SQL*PLUS output at end of this post):
    (1) created the PUB table using info you provided
    (2) inserted a row into PUB table and commited
    (3) created the FPROCESS table using info you provided
    (4) inserted a row into FPROCESS table and commited
    (5) selected from PUB table
    (6) selected from FPROCESS table
    (7) executed the get_pub_info() function
    What happens when you just try the following?:
    select get_pub_info('whatever') from dual;
    Regards,
    Phany
    Moncton, NB, Canada
    OUTPUT FROM SQL*PLUS
    ======================
    SQL> CREATE TABLE PUB (P_INB VARCHAR2(1), PUB_NAME VARCHAR2(1), PUB_CODE VARCHAR2(1));
    Table created.
    SQL> INSERT INTO PUB VALUES('A','B','C');
    1 row created.
    SQL> COMMIT;
    Commit complete.
    SQL> CREATE TABLE FPROCESS (INBOX_ID VARCHAR2(1), FPROCESS_ID VARCHAR2(1), PUB_CODE VARCHAR2(1));
    Table created.
    SQL> INSERT INTO FPROCESS VALUES ('A','B','C');
    1 row created.
    SQL> COMMIT;
    Commit complete.
    SQL> CREATE OR REPLACE function get_pub_info(p_inbox in varchar2)
    2 RETURN varchar2 deterministic
    3 IS
    4 cursor c_pub(p_inb varchar2)
    5 is
    6 select a.pub_name, a.pub_code, b.fprocess_id
    7 from pub a, fprocess b
    8 where b.inbox_id = p_inb
    9 and a.pub_code = b.pub_code;
    10
    11 v_inbox varchar2(25) default p_inbox;
    12 v_pubn pub.pub_name%type;
    13 v_pubc pub.pub_code%type;
    14 v_fprocid fprocess.fprocess_id%type;
    15 v_info varchar2(4000);
    16 BEGIN
    17 open c_pub(trim(v_inbox));
    18
    19 v_info := '[';
    20
    21 loop
    22 fetch c_pub into v_pubn, v_pubc, v_fprocid;
    23 exit when c_pub%notfound;
    24
    25 if (v_pubn is not null) and (v_pubc is not null) and (v_fprocid is not null) then
    26 v_info := v_info || '{PUB_PROCESS_ID=>"' || trim(v_fprocid) || '", PUB_CODE=>"' || trim(v_pubc) || '", PUB_NAME=>"'|| trim(v_pubn) ||'"},';
    27 end if;
    28 end loop;
    29
    30 close c_pub;
    31
    32 if v_info is not null
    33 then
    34 if length(v_info) <= 1 then
    35 v_info := '';
    36 else
    37 v_info := substr(v_info,1,length(v_info)-1) || ']';
    38 end if;
    39 else
    40 v_info := '';
    41 end if;
    42
    43 return v_info;
    44 END;
    45 /
    Function created.
    SQL> select * from pub;
    P P P
    A B C
    SQL> select * from fprocess;
    I F P
    A B C
    SQL> SELECT get_pub_info('A') FROM dual;
    GET_PUB_INFO('A')
    [{PUB_PROCESS_ID=>"B", PUB_CODE=>"C", PUB_NAME=>"B"}]
    SQL>
    ======================

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

    Hi,
    I am running a loop to just spool output data using 'dbms_output.put_line' and I keep getting this error after a few records. I resorted it and it happen at a different interval. Could it have to do with the length of the item I am trying to spool? Thanks.
    ORA-06502: PL/SQL: numeric or value error string

    SD wrote:
    Hi,
    I am running a loop to just spool output data using 'dbms_output.put_line' and I keep getting this error after a few records. I resorted it and it happen at a different interval. Could it have to do with the length of the item I am trying to spool? Thanks.
    ORA-06502: PL/SQL: numeric or value error stringyes, it is a data dependent error.
    Handle:     SD
    Status Level:     Newbie
    Registered:     Nov 21, 2001
    Total Posts:     289
    Total Questions:     189 (183 unresolved)
    why do you waste time here when you rarely get your questions answered?

  • -6502 ORA-06502: PL/SQL: numeric or value error when using 'Create CAPI Definition'

    I get an error when I try to create a CAPI definition with Headstart untilities (6i). I use HSU_CAPI revision 6.5.2.0
    The detailed information says the following:
    Message
    BLAPI.OPEN_ACTIVITY
    Start HSU_CAPI.run
    Number of Tables to create CAPI for 1
    Initial checks for table KCS_TENDERS with id 692754610572409851363604771392473242
    HSU_CAPT.initial_checks for table KCS_TENDERS
    HSU_CAPF.initial_checks for table KCS_TENDERS
    HSU_CAPC.initial_checks Custom Services for table KCS_TENDERS
    HSU_CAPB.initial_checks BRDD for table KCS_TENDERS
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDIPLS
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    KCS_TENDERS Business Rule Design Definition BR_TNR001_CEV does not have any Trigger Columns. Rule will fire when any column is updated.
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDIPLS
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    Creating CAPI for table KCS_TENDERS with id 692754610572409851363604771392473242
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Before-Insert-stmt, Open transaction.
    Write Text for element type APPLOG with id 753236628580304413262318236391196826 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580304413262318236391196826 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Before-Update-stmt, Open transaction.
    Write Text for element type APPLOG with id 753236628580332747461215454262479002 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580332747461215454262479002 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Before-Delete-stmt, Open transaction.
    Write Text for element type APPLOG with id 753236628580361081660112672133761178 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580361081660112672133761178 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-After-Insert-stmt, Close transaction.
    Write Text for element type APPLOG with id 753236628580389415859009890005043354 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580389415859009890005043354 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-After-Update-stmt, Close transaction.
    Write Text for element type APPLOG with id 753236628580417750057907107876325530 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580417750057907107876325530 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-After-Delete-stmt, Close transaction.
    Write Text for element type APPLOG with id 753236628580446084256804325747607706 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580446084256804325747607706 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Before-Delete-row, Save old data.
    Write Text for element type APPLOG with id 753236628580474418455701543618889882 - Text type: ALCODE number of text lines = 404 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580474418455701543618889882 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Insert, Call CAPI.
    Write Text for element type APPLOG with id 753236628580568865785358936523163802 - Text type: ALCODE number of text lines = 4 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580568865785358936523163802 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Update, Call CAPI.
    Write Text for element type APPLOG with id 753236628580597199984256154394445978 - Text type: ALCODE number of text lines = 4 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580597199984256154394445978 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Delete, Call CAPI.
    Write Text for element type APPLOG with id 753236628580625534183153372265728154 - Text type: ALCODE number of text lines = 17 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580625534183153372265728154 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-Insert, Call CAPI.
    Write Text for element type APPLOG with id 753236628580653868382050590137010330 - Text type: ALCODE number of text lines = 7 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580653868382050590137010330 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-Update, Call CAPI.
    Write Text for element type APPLOG with id 753236628580682202580947808008292506 - Text type: ALCODE number of text lines = 144 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580682202580947808008292506 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-Delete, Call CAPI.
    Write Text for element type APPLOG with id 753236628580767205177639461622139034 - Text type: ALCODE number of text lines = 282 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580767205177639461622139034 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    HSU_CAPF.create_or_find_capi_pack
    hsu_capi.find_plm (kcs_tnr_capi, 692754610572409851363604771392473242, CAPI).
    capi package found in the context folder
    BLPLM.UPD
    FREE_FORMAT_TEXT_FLAG......... = Y
    IMPLEMENTATION_NAME........... = kcs_tnr_capi
    PLSQL_MODULE_TYPE............. = PACKAGE
    SCOPE......................... = PUBLIC
    COMPLETION_STATUS............. = COMPLETED
    NAME.......................... = kcs_tnr_capi
    PURPOSE....................... = Custom API package for implementing Business Rules and supporting TAPI
    Recreated Package KCS/ KCS_TNR_CAPI, preserving only the Revision History.
    HSU_CAPF.add_tags_er_av
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    HSU_CAPF.create_specification
    HSU_CAPF.create_c_tabalias
    HSU_CAPF.create_c_tabalias_all
    HSU_CAPF.create_aggregate_value
    HSU_CAPF.create_aggregate_value
    HSU_CAPF.create_aggregate_value
    Activity aborted with ORACLE internal errors.
    -6502 ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    What can I do about it???
    Thanks in advance.
    Menno Hoogsteen

    Working on the same project as Menno, I had the time to look into the problem.
    The problem is caused by the creation of the capi-function agregate_char_value in the packages hsu_capf. While creating this function the following code is executed:
    add(' -- allowable values:');
    add(' -- '||l_col_name_list);
    This last statement causes the problem because this table is very big. L_col_name_list contains 2391 characters wich is 393 characters to long. So i changed this code into:
    add(' -- allowable values:');
    add(' -- '||substr(l_col_name_list,1,1990));
    add(' -- '||substr(l_col_name_list,1990));
    and everything works fine. Perhaps something for a patch?
    Kind regards,
    Ruben Spekle

Maybe you are looking for

  • How can I make a report of all records with the date in the last two weeks?

    Hi! I have records with a date field, I want to create a report that only includes records with a date which is within the last two weeks of the system date, is this possible? Surely this is a basic database function, I would have thought, but I can

  • JTree - problems with names of elements

    I have a Jtree thats populated with expandable elements. These elements are loaded on startup, but some of the elements don't get their full names, just i.e "dem..." instead of "demo3". WHen I expand the node, the full name appears, and remains. Anyo

  • How to gey siri on ipad 2, in portugal?

    Por favor respondam! PLEASE ANSWEAR!

  • Why am I losing memory and songs?

    After some recent music downloads from Amazon, some of the songs were skipping. I deleted and reloaded the songs. When I played them, the ipod classic 160 gb crashed with Apple logo coming up. After clearing, the ipod showed no music but full memory

  • Adobe Flash Professional CS6, cant use spell checker, missing or not there

    I am trying to use spell checker on Adobe Flash CS6, everywhere I look for help is very minimal. Most places just say click Text > then Check Spelling but I can't see this anywhere, I have found these instructions under Adobe CS6's Help but the Help