Why to raise an exception?

Hello
I am trying to understand that why do we RAISE an Exception.
I was seeing some documentation. where it gave this example
(to check if any rows were updated or not, it uses SQL%NOTFOUND)
DECLARE
BEGIN
UPDATE Tablename
IF SQL%NOTFOUND
RAISE e_invalid_Item
END IF
COMMIT;
EXCEPTION
WHEN e_invalid_Item
DBMS_OUTPUT.PUT_LINE ('No such Item);
END;
I was thinking
why cant we simply use the if statement to display. like below
IF SQL%NOTFOUND
DBMS_OUTPUT.PUT_LINE('.................');
END IF
So why to raise an exception and then display DBMS_OUTPUT........
Why dont we just display it where it happened?
What is really and USE of raising an exception?
thank you

I am trying to understand that why do we RAISE an Exception."An exception is a runtime error or warning condition, which can be predefined or user-defined. Predefined exceptions are raised implicitly (automatically) by the runtime system. *User-defined exceptions must be raised explicitly by RAISE statements*. To handle raised exceptions, you write separate routines called exception handlers."
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/exception_definition.htm#LNPLS01316
http://www.oracle.com/pls/db102/homepage
http://www.oracle.com/pls/db112/homepage
You only catch exceptions when you expect them, and then deal with them, let them propagate to the caller.
Hopefully this (imo) classic 'rant' will make you understand better:
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:1509245700346768268#tom1535781400346575552
Never ever swallow an exception by catching one and just 'dbms_output.put_line' it. Doing so, is the same as making success out of failure. Please read the link. It should give you ideas on how things (should) work.
Only catch exceptions you expect.

Similar Messages

  • FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-

    Hi,
    In R12 When trying to search existing users through Sysadmin or any other user ...we are getting the below errror...
    ORA-01403: no data found
    FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-06510
    This error is not happening when we search for the SYSADMIN user....
    Any idea why this error happening...
    Also another error which is faced by users other than SYSADMIN is the below one when changing the responsability...
    APP-FND-01926---The custom event WHEN-RESPONSIBILITY-CHANGED raised unhandled exception:User Defined Exception
    Thanks
    Joseph
    Edited by: 783717 on Sep 27, 2010 10:49 PM

    Hi,
    In R12 When trying to search existing users through Sysadmin or any other user ...we are getting the below errror...
    ORA-01403: no data found
    FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-06510
    This error is not happening when we search for the SYSADMIN user....
    Any idea why this error happening...What changes have been done recently?
    Please run AutoConfig and make sure it completes successfully.
    Also another error which is faced by users other than SYSADMIN is the below one when changing the responsability...
    APP-FND-01926---The custom event WHEN-RESPONSIBILITY-CHANGED raised unhandled exception:User Defined ExceptionCan you find any errors in the database log file?
    Please compile CUSTOM.pll (and other files) as per these docs and try again (as you are on R12 use frmcmp_batch.sh instead of f60gen).
    APP-FND-01926, ORA-06508 [ID 797242.1]
    APP-FND-01926: The custom event WHEN-LOGON-CHANGED raised unhandled exception: ORA-06508: PL/SQL: [ID 831159.1]
    APP-FND-01926 when logon changed ORA-06508 [ID 334295.1]
    Thanks,
    Hussein

  • How to raise a exception if the incoming value for a source field is empty

    Dear all,
    I have a scenario where the source and target structures are as follows :
    The output for the above transformation logic is
    The occurrence for field id in source and target is 1:1   Even if i don't provide the input value for id field,
    system is not throwing any runtime exception.But if the field tag id is missing in incoming payload, then
    system throws exception.
    1) *** How can i raise a exception it the value for field id is empty
    2) As the target structure occurrence for field id is 1:1  why system doesn't throw exception for null value
    Regards
    Koti Reddy

    1) *** How can i raise a exception it the value for field id is empty
    You need to impliment the check  to throw the error
    2) As the target structure occurrence for field id is 1:1  why system doesn't throw exception for null value
    You are sending a blank value " " and the same is being passed. if you remove the tag from source xml it'll throw the error
    Message was edited by: Hareesh Gampa

  • System instability using reports that raise an exceptions

    I am having a problem with some reports when I use the type "PL/SQL function body returning SQL query".
    If the Function raise an exception, the apex's engine will call again the function and it raise again the exception. These will make a loop that doesn't end until you close the session. The problem is that this page consume all the recourse of the CPU and/or fill the partition where the logs are saved. All these generate Instability on the server and also could bring down the server.
    To reproduce this error you have to follow this steps:
    1)     First create a simple function to return a raise.
    FUNCTION DORTEGA_TEST_RAISE RETURN VARCHAR2 IS
    BEGIN
    DECLARE
    A NUMBER;
    BEGIN
    A := 12/0; --This operation generate an exception.
    END;
    RETURN 'SELECT 1 FROM DUAL';
    EXCEPTION
    WHEN OTHERS THEN
    RAISE;
    END;
    2)     Create a empty page with one report region.
    3)     Edit the report region and set these values:
    a.     Type = SQL Query (PL/SQL function body returning SQL query)
    b.     Display Point = Page Template Region Position 2
    c.     Source = BEGIN RETURN DORTEGA_TEST_RAISE; END;
    Use Generic Column Names (parse query at runtime only)
    4) When we run the application the page never load, and if you look the data base, you can view that the session it’s growing and it’s begins to consume all the memory and the processor of the server.
    I am using APEX 3.1.0.00.32. And the DB is 11g.
    Someone know why is this happening? Are there any fix for this bug?

    Hi:
    I was able to reproduce this in APEX 3.1.2 installed in an Oracle XE instance.
    The APEX engine does seem to go into an endless loop and the server Oracle process handling this request eventually does with an out-of-memory error.
    However, if instead of raising an exception in the exception handler of the function I have a statement like 'Return Null;' then the APEX engine comes back with an expected response of
    failed to parse SQL query:
    ORA-00900: invalid SQL statement
    Varad

  • FRM-40735: When-Validate-Item trigger raised unhandled exception ORA-01861

    Dear all, I runned a form designed by Developer 2000 version 4.5 and encountered a puzzling problem. The same program could be runned on one computer but not in another one. The error message is as below: FRM-40735: When-Validate-Item trigger raised unhandled exception ORA-01861. The OS of both computers are windows 2000 professional. The only difference between two computers is the patch files didn't installed on one of them. I don't know if it is the key point. Could you tell me why?
    Thank you!!!

    I sure wish people would post the entire text of the error message. "ORA-01861: literal does not match format string."
    What kind of field are you trying to validate? This message is usually due to a date format error. If you are trying to convert text into a date without using TO_DATE('some text','date-format'), then that is the problem. It sounds like you are, and the database default date format is different between the two systems.

  • Frm-40735: when validate record trigger raised unhandled exception ORA-0406

    while on production when i open any form and inserting some valeus after that when i want ot save the information it is showing me following error
    frm-40735: when validate record trigger raised unhandled exception ORA-04062

    ORA-04062: %s of string has been changed Cause: Attempt to execute a stored procedure to serve an RPC stub which specifies a timestamp or signature that is different from the current timestamp/signature of the procedure.
    Action: Recompile the caller in order to pick up the new timestamp >
    Check the When-Validate-Record trigger in your form and look for any calls to a database stored procedure. Then check the status of the database procedure to ensure it is "Valid." If the procedure is not valid - find out why and fix it.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • FRM-40735 when Button Pressed Trigger Raised Unhandled Exception ORA-03113

    Hi all,
    We are using oracle 9.2.0.4 on SUSE 10.When user try to insert record second time they are getting the error
    FRM-40735 when Button Pressed Trigger Raised Unhandled Exception ORA-03113And we are also getting ORa-0600 [12333]-[253]-[1]-[253]
    Please don't tell me that this is an oracle internal error and i have to contact oracle support.
    Actaually earlier we were using Oracle 9.2.0.6 (64 bit)on sun soalris 8 9(64 bit) and now after migrating the same to Oracle 9.2.0.4 to RHEL4 (32 bit).
    And i have also cross checked on the new server oracle 9.2.0.6 (64 bit) on rhel4 (64 bit).
    please suggest me....

    Please don't tell me that this is an oracle internal error and i have to contact oracle support.WHY? But it's the one and only reason! What do you think, how we can solve internal error? Do we have a special utility to demand from you some logs and by uising that utility analyze your database and solve your problem?

  • Std FM raising an exception

    Hi Gurus,
    In my Z function module, i am in turn calling a standard Func Module :  ISU_ERCHV_APPEND_PREV.
    This std FM loops through an int table raises an exception & exits whenever it encounters a mismatch for record.
    But i need to continue with the next available  record(s) and so on...etc
    The loop is inside the std FM and i cannot edit the standard FM.
    Is there a way that i can handle this situation?
    Thanks
    Dany

    Dan,
    Why you are calling this fm ISU_ERCHV_APPEND_PREV
    Please check the code inside this fm
    data: werchv  like erchv,
            werch   like erch,
            werchp  like erch,
            h_belnr like erch-belnr,
            perchv  like erchv,
            ierchv  type table of erchv.
      sort t_erchv.
      loop at t_erchv into werchv.
        if werchv-belnr <> h_belnr.
          h_belnr = werch-belnr.
          call function 'ISU_DB_ERCH_SINGLE'
               exporting
                    x_belnr      = werchv-belnr
               importing
                    y_erch       = werch
               exceptions
                    not_found    = 1
                    system_error = 2
                    others       = 3.
          if sy-subrc <> 0.
            mac_msg_repeat co_msg_error  general_fault.
          endif.
    *     retrieve previous ERCHV
          if not werch-belnralt is initial.
            refresh ierchv.
            call function 'ISU_DB_ERCHV_SELECT'
                 exporting
                      x_belnr       = werch-belnralt
                      x_storno      = '1'
                 tables
                      t_erchv       = ierchv
                 exceptions
                      not_found     = 1
                      not_qualified = 2
                      not_valid     = 3
                      others        = 4.
            if sy-subrc <> 0.
    *         DBERCHV not found for this ERCH document
              mac_msg_repeat co_msg_warning erchv_not_found.
            endif.
          endif.
    *     search corresponding lines
          loop at ierchv into perchv.
            if      werchv-operand  = perchv-operand
                and werchv-massbill = perchv-massbill
                and werchv-twaers   = perchv-twaers
                and werchv-sttarif  = perchv-sttarif
                and werchv-ab      >= perchv-bis.
              if not x_meterchange_suppress is initial.
                check werchv-logikzw = perchv-logikzw.
              else.
                check  ( werchv-geraet   = perchv-geraet
                     and werchv-equnr    = perchv-equnr
                     and werchv-zwnummer = perchv-zwnummer ).
              endif.
              werchv-i_abrmengevor = perchv-i_abrmenge.
              modify t_erchv from werchv.
            endif.
          endloop.
        endif.
      endloop.
    endfunction.
    Why don't call this code directly in your program?, then you can handle exceptions from your code

  • Raised the exception condition "NO_DBROUTID_FOUND".

    Hi All,
    Am trying to load the transaction data from flat file to bI 7.0.
    upto PSA level data will loaded perfectly. but while am loading data to infocube through DTP am getting short dump with error message saying.
    "A RAISE statement in the program "SAPLRSDGUTILITIES" raised the exception condition "NO_DBROUTID_FOUND".
    if g_sx_p-s_viobj-dbroutid = space
    raise no_dbroutid_found.
    endif.
    could you please let me know the reason why am getting this short dump and solution for the above.
    am loading below flat file data.
    ZD_PROD     CHANNEL     QUANTITY     UNIT     REVENUE     CURRENCY
    P1     C1     10     KG     200     USD
    P2     C2     10     KG     200     USD
    P3     C3     10     KG     200     INR
    P4     C4     10     KG     200     INR
    Thanks yours support.
    Regards
    Yogee

    Did you use any routine for mapping in DTP?What infoobjects are you using???
    REgards

  • Raise IGNORE_RECORD Exception

    Hi All,
    I have the following code. What I do not understand is when processing certain records, when the v_per = 100, record gets written to the "ct_vv_chargeback_actual" table but not to the other following tables like CT_ORIG_ORDER, CT_VV_CHARGEBACK etc.
    Is it because of the raise IGNORE_RECORD? If so, can any one explain how the user defined exception works? (apologize for the long code)
    Thanks,
    DECLARE
    CURSOR GET_TKT_CB_DETAILS IS
      SELECT orh.order_no,
             ssku.shipment,
             ssku.sku,
             orh.supplier,
             sum(ssku.qty_expected) tkt_qty,
             sum(ssku.qty_expected) tkt_cost,
          ctt.qty_printed ctt_qty_printed,
          ctt.qty_printed ctt_tkt_cost
        FROM ordhead orh,
             ct_chargeback_shipment shp,
             shipsku ssku,
             uda_item_lov uil,
             (select order_no,pack_no,sum(qty_printed) qty_printed
             from ct_tkt_ticket_print_hist
            group by order_no,pack_no)   ctt
       WHERE shp.receive_date = (select trunc(vdate) from period)
         AND shp.location = 930
         AND shp.tkt_flag is null
         AND shp.order_no = orh.order_no
         AND orh.import_order_ind = 'N'
         AND orh.written_date > to_date('31-MAY-03')
         AND shp.shipment = ssku.shipment
         AND ssku.sku = uil.item                       
         AND uil.uda_id = 6                            
         AND uil.uda_value <> 7
         AND shp.order_no = ctt.order_no
         AND ssku.sku = ctt.pack_no
       group by orh.order_no,
             ssku.shipment,
             ssku.sku,
             orh.supplier,
          ctt.qty_printed ,
          ctt.qty_printed ;
    v_chk      varchar2(1);
    v_old_quantity number;
    v_sku_qty  number;
    v_order_no number;
    v_shipment number;
    v_tkt_cost number;
    v_pack_no  number;
    v_tkt_qty  number;
    v_orig_qty number;
    v_supplier number;
    v_cb_id    number;
    v_vdate    date;
    v_dept     number;
    v_tkt_dept number;
    v_tkt_div  varchar2(2);
    v_per      number(12,4);
    v_orig_ord_qty number;
    v_rate     number(12,4);
    v_yn       varchar2(1);
    v_err_desc varchar2(200);
    v_mail_country_id varchar2(4);
    v_pre_tick varchar2(1);
    v_actual   number;
    IGNORE_RECORD   EXCEPTION;
    IGNORE_SUPPLIER EXCEPTION;
    BEGIN
    select vdate
      into v_vdate
      from period;
    FOR get_tkt_cb IN get_tkt_cb_details LOOP
    BEGIN
    BEGIN
       SELECT '1'
         INTO v_chk
         FROM CT_ORIG_ORDER
        WHERE ORDER_NO = get_tkt_cb.order_no
          AND PACK_NO = get_tkt_cb.sku;
       RAISE IGNORE_RECORD;
    EXCEPTION
       WHEN NO_DATA_FOUND THEN
         NULL;
    END;
    v_old_quantity := 0;
    v_sku_qty := 0;
    v_order_no := null;
    v_shipment := null;
    v_tkt_cost := 0;
    v_actual   := 0;
    v_err_desc := null;
    v_chk := null;
    v_pack_no := 0;
    v_tkt_qty := 0;
    v_orig_qty := 0;
    v_supplier := 0;
    v_cb_id    := 0;
    v_dept := 0;
    v_tkt_dept := 0;
    v_tkt_div := 0;
    v_per := 0;
    v_rate := 0;
    v_yn := null;
    v_pre_tick := null;
       v_pack_no  := get_tkt_cb.sku;
       BEGIN
        select sum(sku_qty)
          into v_sku_qty
          from packsku
         where pack_no =v_pack_no;
       EXCEPTION
        WHEN NO_DATA_FOUND THEN
           v_sku_qty := 1;
       END;
       select dept
         into v_dept
         from desc_look
        where sku = v_pack_no;
       v_supplier := get_tkt_cb.supplier;
       v_order_no := get_tkt_cb.order_no;
       BEGIN
        select nvl(per,0),
               nvl(rate,1)
          into v_per,
               v_rate
          from AP_CB_EXCEPTIONS
         where vendor_number = lpad(to_char(v_supplier),'6','0')
           and nvl(div,'0') = decode(length(v_dept),4,substr(to_char(v_dept),1,1),'1')
           and nvl(dept,0) = v_dept
           and nvl(cb_no,410) = 410
           and trunc(v_vdate) between trunc(start_date) and nvl(trunc(end_date),trunc(v_vdate));
       EXCEPTION
         WHEN NO_DATA_FOUND THEN
          BEGIN
            select nvl(per,0),
                   nvl(rate,1)
              into v_per,
                   v_rate
              from AP_CB_EXCEPTIONS
             where vendor_number = lpad(to_char(v_supplier),'6','0')
               and nvl(div,'0') = decode(length(v_dept),4,substr(to_char(v_dept),1,1),'1')
               and nvl(dept,0) = 0
               and nvl(cb_no,410) = 410
               and trunc(v_vdate) between trunc(start_date) and nvl(trunc(end_date),trunc(v_vdate));
          EXCEPTION
           WHEN NO_DATA_FOUND THEN
           BEGIN
            select nvl(per,0),
                   nvl(rate,1)
              into v_per,
                   v_rate
              from AP_CB_EXCEPTIONS
             where vendor_number = lpad(to_char(v_supplier),'6','0')
               and nvl(div,'0') = '0'
               and nvl(dept,0) =  v_dept
               and nvl(cb_no,410) = 410
               and trunc(v_vdate) between trunc(start_date) and nvl(trunc(end_date),trunc(v_vdate));
           EXCEPTION
            WHEN NO_DATA_FOUND THEN
              BEGIN
               select nvl(per,0),
                      nvl(rate,1)
                 into v_per,
                      v_rate
                 from AP_CB_EXCEPTIONS
                where vendor_number = lpad(to_char(v_supplier),'6','0')
                  and nvl(div,'0') = '0'
                  and nvl(dept,0) = 0
                  and nvl(cb_no,410) = 410
                  and trunc(v_vdate) between trunc(start_date) and nvl(trunc(end_date),trunc(v_vdate));
              EXCEPTION
               WHEN NO_DATA_FOUND THEN
                 v_per := 0;
                 v_rate := .01;
                 --RAISE IGNORE_SUPPLIER;
              END;
           END;
          END;
       END;
       BEGIN
        select country_id
          into v_mail_country_id
          from addr
         where key_value_1 = to_char(v_supplier)
           and seq_no in (select mail_addr_type_seq_no
                            from ct_ordhead
                           where order_no = v_order_no)
           and addr_type = 15;
        IF v_mail_country_id <> 'US' THEN
         Select import_rate
           into v_rate
           from ap_ticket_cb_rates;
        END IF;
       EXCEPTION
        WHEN NO_DATA_FOUND THEN
          RAISE IGNORE_RECORD;
       END;
       BEGIN
        select qty_ordered
          into v_orig_ord_qty
          from ct_po_log
         where order_no = v_order_no
           and sku = v_pack_no
           and date_changed = (select min(date_changed)
                                 from ct_po_log
                                where order_no = v_order_no
                                  and sku = v_pack_no);
       EXCEPTION
         when others then 
           v_err_desc := substr(sqlerrm,1,100);
           INSERT INTO IF_ERRORS VALUES (
             'CT_TKTCHB.SQL',SYSDATE,'Order no ' || v_order_no || ' sku ' || v_pack_no || ' ',
              v_err_desc);
           commit;
           RAISE IGNORE_RECORD;
       END;
       v_shipment := get_tkt_cb.shipment;
       v_tkt_qty  := get_tkt_cb.ctt_qty_printed;
       v_orig_qty := get_tkt_cb.tkt_qty*v_sku_qty;
       v_orig_ord_qty := v_orig_ord_qty * v_sku_qty;
       v_tkt_cost := round(v_orig_ord_qty*v_rate*((100-v_per)/100)*1.15,2);
       v_actual   := round(v_orig_ord_qty*1.15,2);
       IF v_per = 100 THEN
         insert into ct_vv_chargeback_actual values (
            null,
            v_supplier,
            v_order_no,
            v_shipment,
            v_pack_no,
            '410',
            v_actual,
            1,
            v_vdate);
         COMMIT;
         raise IGNORE_RECORD;
       END IF;
       select ct_vv_chargeback_seq.nextval
         into v_cb_id
         from dual;
       INSERT INTO CT_ORIG_ORDER VALUES (
            v_order_no,
            v_shipment,
            v_pack_no,
            v_tkt_qty,
            v_orig_qty,
            v_orig_ord_qty,
            'N',
            v_supplier,
            v_cb_id,
            'N',
            v_tkt_cost,
            v_vdate);
       INSERT INTO CT_VV_CHARGEBACK VALUES (
         v_cb_id,
            v_order_no,
            'A',
            v_supplier,
            null,
            null,
            null,
            null,
            v_shipment);
       INSERT INTO CT_VV_CHARGEBACK_DETAIL VALUES (
            v_cb_id,
            v_pack_no,
            '410',
            v_tkt_cost,
            1);
       IF v_tkt_cost <> v_actual THEN
         insert into ct_vv_chargeback_actual values (
            v_cb_id,
            v_supplier,
            v_order_no,
            v_shipment,
            v_pack_no,
            '410',
            v_actual,
            1,
            v_vdate);
       END IF;    
       UPDATE CT_CHARGEBACK_SHIPMENT
          SET TKT_FLAG = 'C'
        WHERE shipment = get_tkt_cb.shipment;
       COMMIT;
    EXCEPTION
      WHEN IGNORE_SUPPLIER THEN
        NULL;
      WHEN IGNORE_RECORD THEN
        NULL;
      WHEN NO_DATA_FOUND THEN
       UPDATE CT_CHARGEBACK_SHIPMENT
          SET TKT_FLAG = 'D'
        WHERE shipment = get_tkt_cb.shipment;
       COMMIT;
      WHEN OTHERS THEN
       rollback;
       v_err_desc := substr(sqlerrm,1,200);
       insert into if_errors values ('ct_tktchb.sql',
                                     sysdate,
                                     v_err_desc,
                                     'Error while processing  order - ' ||
                                      to_char(v_order_no) ||
                                     ' shipment - ' || to_char(v_shipment));
       commit;
    END;
    END LOOP;
       

    Without analysing the code in detail, the
    IGNORE_RECORD exception is raised in four places
    within the BEGIN-END block that implements the loop.
    When it's raised, processing drops to the exception
    handler at the bottom, then the loop continues with
    the next record. It's kind of a pre-11g CONTINUE.gotcha...thats what I wanted to know. Glad to know that it works as CONTINUE....couldn't figure out why some values are not showing up.
    Thanks,
    Chiru

  • Connection refused is not raising an exception

    Hi, I am having problems getting my code to recognise that a url refuses a connection, eg "http://tigers.com.au".
    Opening the url in a browser correctly shows that a connection is refused.
    However, in Java (1.6_07) code as below, no exception is raised, and the response code is 200 OK.
    Even though no exception is raised, the content that is returned by the InputStream is actually from somewhere else (my local development server), so it seems that the connection is not actually successful.
    The code works fine for other urls that does accept a connection, eg it works fine for "http://www.tigers.com.au".
    Why is my code not raising an exception for cases where the url refuses a connection? Or is there a bug in Java?
    Grateful for any help.
              BufferedReader in = null;
              String s=null;
              HttpURLConnection urlCon = null;
              URL url = null;
              try {
                   url = new URL("http://tigers.com.au");
                   urlCon = (HttpURLConnection) url.openConnection(); 
                   urlCon.connect();
                   System.out.println("urlCon after connect: "+urlCon.getURL());
                         System.out.println("Response code: ["+urlCon.getResponseCode()+"] "+urlCon.getResponseMessage());
                   in = new BufferedReader( new InputStreamReader(urlCon.getInputStream()));
                   while ( (s=in.readLine()) != null) {
                        System.out.println("s: "+s);                    
              catch (Exception e) {
                   System.out.println("Exception: "+e);
              }

    Have found that wildcard addresses matches any address of the local system, and that in IPv4, the wildcard address is 0.0.0.0. Can check for this with InetAddress.isAnyLocalAddress().
    This means that I could potentially handle these cases by adding code to "ping" a host such as "tigers.com.au" using
    InetAddress address = InetAddress.getByName(name);
    if (InetAddress.isAnyLocalAddress() {
    .... do something, eg raise exception
    }But this is not fully satisfactory, as I would rather know that a "connection refused" exception is raised, which is actually the case with "tigers.com.au" (as all the browsers seem able to detect). I am not entirely sure what the relationship is between a site that has "connection refused" and it returning an ip address of 0.0.0.0. I don't think they are synonymous.
    Any thoughts?

  • Raising cx_rsrout_abort exception in Start Routine of Transformations

    Hello Abap OO Gurus:
    This is likely a very simple question but I'm brand new to Abap OO and despite reading and searching, I cannot convert some old abap code used in the start routine of business content in BW to be used in the Transformation start routine in SAP BI.
    My Start Routine inside a BI 7.0 transformation rule has a method declared like this:
    <b>METHODS
    start_routine
    IMPORTING
    request type rsrequest
    datapackid type rsdatapid
    EXPORTING
    monitor type rstr_ty_t_monitors
    CHANGING
    SOURCE_PACKAGE type tyt_SC_1
    RAISING
    cx_rsrout_abort.</b>
    The Exception "cx_rsrout_abort" has replaced what used to be a simple ABORT data field. The <u>old code I want to replace was just "abort = 1'.</u>
    But now it seems like I have to use TRY... ENDTRY statement to raise Exception "cx_rsrout_abort". I am inside the abap code of the Method "start routine"
    METHOD start_routine.
    *=== Segments ===
    Could some kind soul educate me as to how to raise the Exception "cx_rsrout_abort" inside the Method start routine?
    thanks in advance, David

    Tx HDev:
    we are almost there...  I have that PDF but never got thru to the rest of the Appendix B as my project is just too crazy...
    When try what Appenix B suggest..
    <u>"raise exception type CX_RSROUT_SKIP_RECORD."</u>
    I get the following Warning msg which makes sense...
    <b>"W:The exception CX_RSROUT_SKIP_RECORD is neither caught nor is it
    declared in the RAISING clause of "START_ROUTINE".</b>
    The METHOD statement in the start routine never declares another exception other than cx_rsrout_abort as seen below:
        METHODS
          start_routine
            IMPORTING
              request                  type rsrequest
              datapackid               type rsdatapid
            EXPORTING
              monitor                  type rstr_ty_t_monitors
            CHANGING
              SOURCE_PACKAGE              type tyt_SC_1
            RAISING
              cx_rsrout_abort.
    Maybe NW2004s has a bug here... I'm hoping that a SAP Developer reads this posting and can enlighten us all... otherwise I'll have to post a OSS msg
    So the mystery is still how to do
    "raise exception type CX_RSROUT_ABORT" and make this equal to ABORT = 1
    which makes the start routine skip a record
    tx again,  David

  • In R12.1.3 we get FRM-40735: ON-ERROR trigger raised unhandled exception.

    Hello,
    after we upgrade to R12.1.3 users are getting FRM-40735: ON-ERROR trigger raised unhandled exception ORA-01001, can you please help to resolve this issue immediately.

    Can you provide the list of patches you have applied?
    In addition to the log files mentioned above, please confirm that you have no invalid objects in the database.
    Loading the System Administrator Forms Responibility Produces Error FRM-40735,ORA-06508 (Doc ID 271652.1)
    Oracle Application Return The following Error FRM-40735: ON-ERROR trigger raised unhandled exception ORA-6508 (Doc ID 797293.1)
    After Migrating To Linux, Users Are Seeing FRM-40735 When Trying To Access Forms. (Doc ID 1282488.1)
    Thanks,
    Hussein

  • FRM-40735 POST- UPDATE trigger raised unhandled exception ORA- 01403

    FRM-40735 POST- UPDATE trigger raised unhandled exception ORA- 01403
    I am getting the above error when i am trying to change the Assignment Category field of
    an employee from Junior Staff to Senior Staff.
    Navigation People> Enter & Maintain> (B)Assignment.
    Kindly assist me to resolve this error.
    Plz note there is a promotion that is suppose to be given to some employees in our company as of
    01-APR-2010 so i had to open the closed payroll periods and do the changes. I managed to change for all
    the 9 employees but 1 employee's assignment is giving me an error as follows :
    FRM-40735 POST- UPDATE trigger raised unhandled exception ORA- 01403
    The error displays after i try to save the changes made to the Assignment Category from Junior Staff to Senior Staff.
    NB: i have also tried to switch off the custom code...but its giving me same error.
    Also the element links have been defined for employment category on the links window.
    please help!!
    Edited by: 594647 on Jul 20, 2010 10:26 PM

    Release 12.1.1.
    OS is Red Hat Ent Ed 4
    i am trying to change the employee assignment category from Junior to Senior. so when i am updating the assignment details on the assignment screen (Navigation is People >Enter & Maintain> Assignment) and trying to save, the system gives error on the status bar of the application as follows:
    FRM-40735 POST- UPDATE trigger raised unhandled exception ORA- 01403
    NB: Error is appearing on the Assignment screen.
    Please help!!
    Edited by: 594647 on Jul 21, 2010 2:48 PM

  • When-new-form-Instance trigger raised unhandled exception ORA-04062

    Hi,
    We are facing ORA-04062 (FRM-40735 WHEN-NEW-FORM-INSTANCE trigger raised unhandled exception ORA 04062) while trying to run the first form of our Application.
    We are using a PL/SQL LIBRARY(.pll) for forms.
    We are using 10G Application Server,10G DB and Oracle 9i Forms.
    DB Version----10.1.0.4.0
    Application Server--9.0.4.0
    During compilation, we are following the below steps:
    1. Compile the .pll
    2.Compile Forms.
    When we are running these compiled version of forms and pll in Development server where we are compiling it,we are not facing any error.
    But when we are taking these compiled version of forms and pll to the Production Server,we are getting the above error.
    When we are compiling the .pll in Production server, Application runs fine.
    But we should not compile form or pll in Production server.
    Searching in Metalink(Note:73506.1) , we find a solution that remote_dependency_mode if set to signature this problem may be resolved.
    We tried that by chaning ' REMOTE_DEPENDENCIES_MODE=SIGNATURE' in Init.ora file in both Production and Development server.
    But the error still persist.
    I think the problem is regarding .pll.Because for the time being to test the application,I compiled the pll in Production and we didnot get any error while running the Application.
    But whenever we are tring to deploy the compiled version of pll (compiling in Development sever) and to run the application in Production, we are facing the error.
    Also, pll calls one standard database package in SYS.That standard package has VALID status both in Production and in Development.
    We donot have priviledge to change/compile that package.So,we didnot change anything in that package. We didnot change anything in .pll also.
    We are upgrading our forms from 6i to 9i.And now when we are trying to deploy it to Production we are facing ORA-04062 error.
    Can anyone please help ?

    Exactly what procedure or package in SYS are you calling that causes this problem?
    <p>Are both test and production databases at the same version?
    <p>Do you know what procedure or package is named in the error? If not, then you need to improve your on-error trigger processing. I use a PLL_On_Error trigger to capture and improve a number of Oracle messages. It is posted here:
    <p> Re: FRM-40735:Pre_Insert trigger raised unhandled exception ORA-20011
    <p>Note especially the part near the end that deals with FRM-40735. (Not sure, but you may also want to display DBMS_ERROR_TEXT in your situation.)
    <p>If that doesn't help find the actual problem, I would pull out my Re: Zdebug -- Download a Forms debugging message tool, and add messages before every call in the when-new-form-instance process to zero-in on the offending call.
    <p>If it really IS a call to a system process, I would then experiment with creating a server-side package or stored procedure that calls the process, and then call that stored procedure from my form. That way, you effectively insulate your form from system differences.

Maybe you are looking for

  • Sharing files between users and macs

    My husband and I share an iMac. I have a MBA for traveling and my husband a PC laptop (though he rarely uses for private stuff). We both have iPhones. We are looking for a way to: - Share our photos (we don't use iPhoto) and some files. We would like

  • My Account issues...

    When I try to login to my account it comes up to an blank page.  This also happens with I click on my Credit Cards under my Profile.   I have to click Order Status to get into my account and see things.    Ordering items I have to logout and then sta

  • Readonly and form submission

    Hi, I have a real problem with form submissions and readonly text fields. The problem occurs when I have a readonly text field and a field which is requirted to have a value. An example: <f:view>    <h:form>       <h:inputText          id="test"     

  • Multi-Line Stack Charting

    I am trying to develop a stacked line chart but do not see any example of plotting data coming from 2 datasets within a same table. Most examples are about the data coming from a table with 2 different columns such as data under 3 fields Date, Profit

  • RMAN clone doc

    Hi All, Can anyone share a good doc for cloning a database using RMAN? Thanks Regards,