Exclude ORA-06512 from error message

Hi all,
Lets have a simple example:
declare
EXP_FRZN_VER EXCEPTION;
begin
if (1=1) then
raise EXP_FRZN_VER;
end if;
exception
when EXP_FRZN_VER then
raise_application_error (-20303, 'Frozen version cannot be modified!');
when OTHERS then
dbms_output.put_line('TEST');
end;
I want to send error message to my web application through raise_application_error.
Error message looks like:
Error report:
ORA-20303: Frozen version cannot be modified!
ORA-06512: at line 12
Question: Is there a way to exclude string "ORA-06512: at line 12" from that message? I need to handle it on DB side...
Thanks
Finec

Your calling code shouldn't get that line as you haven't passed back the error stack in your raise_application_error...
e.g.
SQL> ed
Wrote file afiedt.buf
  1  declare
  2    EXP_FRZN_VER EXCEPTION;
  3    v_err varchar2(200);
  4    procedure x is
  5    begin
  6      if (1=1) then
  7        raise EXP_FRZN_VER;
  8      end if;
  9    exception
10      when EXP_FRZN_VER then
11        raise_application_error (-20303, 'Frozen version cannot be modified!');
12    end;
13  begin
14    x;
15  exception
16    when others then
17      v_err := SQLERRM;
18      dbms_output.put_line('Error Message received is actually: '||v_err);
19* end;
SQL> /
Error Message received is actually: ORA-20303: Frozen version cannot be modified!
PL/SQL procedure successfully completed.If you did pass back the whole stack, then you'd get the whole thing...
SQL> ed
Wrote file afiedt.buf
  1  declare
  2    EXP_FRZN_VER EXCEPTION;
  3    v_err varchar2(200);
  4    procedure x is
  5    begin
  6      if (1=1) then
  7        raise EXP_FRZN_VER;
  8      end if;
  9    exception
10      when EXP_FRZN_VER then
11        raise_application_error (-20303, 'Frozen version cannot be modified!', true); -- pass back whole error stack
12    end;
13  begin
14    x;
15  exception
16    when others then
17      v_err := SQLERRM;
18      dbms_output.put_line('Error Message received is actually: '||v_err);
19* end;
SQL> /
Error Message received is actually: ORA-20303: Frozen version cannot be modified!
ORA-06512: at line 11
ORA-06510: PL/SQL: unhandled user-defined exception
PL/SQL procedure successfully completed.

Similar Messages

  • Change of Message status from Error message to Warning message

    Hello,
    I would like to know the configuration details of changing the status of a message class from Error message to warning message.
    Thanks
    Manish

    Hi,
    You can do it via OBA5 transaction; enter the application code, and put an entry for the message setting the flag to warning. Keep in mind, that not for every message it could be done.
    Regards,
    Eli

  • Strip Oracle Number from error message!

    Hi All,
    I am raising error messages in my application but I want to be able to strip off the Oracle number form the error message.
    The system may pass back an error message like:
    ORA-00900: invalid SQL statement
    I would like to pass back "invalid SQL statement" instead of "ORA-00900: invalid SQL statement"
    It is possible to do this?
    Can it be striped off from the source where it is raised like in the procedure
    From here:
    Err_Handler.RAISE(l_ErrorNum);
    Or it it better to strip it off in the asp.net code when I call:
    ex.Message
    Thanks in advance, your help will be much appreciated.

    Careful consideration should be given to removing the error number from the message.
    If you have an application that throws up just an error message when the user does something then they are going to report this error to the system administrator. Users being users will no doubt get the wording wrong when they report it, and that possibility also exists when the system admin reports it back to the developers. By the time it gets to the developer to look at, they have some sketchy message about what went wrong and then they're expected to know what that error is. Without the exact description of the message and without the error number, tracking down the exact error that occurred becomes more difficult. With the error number, the original user only has to report that number, which is less likely to get corrupted on the way to the developer, and is far easier to look up what the error was and how to go about fixing it. It may not appear user friendly, but it's sure as hell developer friendly.
    ;)

  • To remove error from error message screen stnd SAP in case condition met

    Hi all,
    I have a strange problem may be not to you guys,
    well i am showing an error message in ME21N on certain condition in EXIT 'EXIT_SAPMM06E_012' this is working fine i am using simple stmt Message e(MSGno) text-01, but when i correct the problematic part and again want to save my data it is aloowing me to save data but my error message(In red) still remains there if i see in EDIT ( of faulty messages pop-up window). Can any body know if we have to remove error message manually in case our program satify the condition.
    if yes what portion i m missing to delete the error message.
    any reply will be highy appreciated <REMOVED BY MODERATOR>
    Mandy
    Edited by: Alvaro Tejada Galindo on Feb 7, 2008 10:51 AM

    Well we can remove message from message text tray using pre-defined macros to erase message.its like
    IF SY-SUBRC NE 0.
    IF NOT tekpo-id IS INITIAL.
    "This is to remove error message later on
    "if problem corrected.
    mmpur_business_obj_id tekpo-id.
    ENDIF.
    mmpur_metafield mmmfd_item_userexit.
    mmpur_message 'E' 'ZMM02' '050'
    'Intraplant STO :' '' '' ''.
    else.
    "To erase message
    mmpur_metafield mmmfd_item_userexit .
    mmpur_remove_messages_by_id tekpo-id.
    ENDIF.
    its working for one line item, if more then one line item you need to verify it.
    ENJOY SAP

  • EXP-00008, ORA-06502 , ORA-06512 - Export Error

    We had done export of schema around 270gb..
    exp file=ops4sept.dmp log=ops4sept.log owner='OPS$BBCASHIN' statistics=none buffer=200000000
    The following error has come at the end
    EXP-00008: ORACLE error 6502 encountered
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "SYS.DBMS_SCHED_MAIN_EXPORT", line 351
    ORA-06512: at "SYS.DBMS_SCHED_JOB_EXPORT", line 14
    ORA-06512: at line 1
    EXP-00085: The previous problem occurred when calling SYS.DBMS_SCHED_JOB_EXPORT.create_exp for object 81203
    EXP-00008: ORACLE error 6502 encountered
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "SYS.DBMS_SCHED_MAIN_EXPORT", line 351
    ORA-06512: at "SYS.DBMS_SCHED_JOB_EXPORT", line 14
    ORA-06512: at line 1
    EXP-00085: The previous problem occurred when calling SYS.DBMS_SCHED_JOB_EXPORT.create_exp for object 81202
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully with warnings.

    EXP-00085 The previous problem occurred when calling string.string.string for
    object number
    Cause: The listed package provides export/import support for procedural
    objects, i.e., those whose DDL is supplied by stored procedures. The previously
    listed error occurred while calling the specified function.
    Action: Contact Oracle Support Services. Most packages are supplied by Oracle
    internal cartridge or server development groups. The package name will help
    Oracle Support Services determine the correct owner of the problem.
    Can you trace the session in order to find out the ORA-01031 problem, which could be a missing grant on a table or system privilege

  • To remove error from error message screen in ME21N

    Hi all,
    I have a strange problem may be not to you guys,
    well i am showing an error message in ME21N on certain condition in EXIT 'EXIT_SAPMM06E_012' this is working fine i am using simple stmt Message e(MSGno) text-01, but when i correct the problematic part and again want to save my data it is aloowing me to save data but my error message(In red) still remains there if i see in EDIT ( of faulty messages pop-up window). Can any body know if we have to remove error message manually in case our program satify the condition.
    if yes what portion i m missing to delete the error message.
    any reply will be highy appreciated n offcourse points for sure
    thanks a lot.
    regards
    Mandy

    Well we can remove message from message text tray using pre-defined macros to erase message.its like
    IF SY-SUBRC NE 0.
      IF NOT tekpo-id IS INITIAL.
       "This is to remove error message later on
       "if problem corrected.  
        mmpur_business_obj_id tekpo-id.
      ENDIF.
       mmpur_metafield mmmfd_item_userexit.
    mmpur_message 'E' 'ZMM02' '050'
                  'Intraplant STO :' '' '' ''.
    else.
      "To erase message
       mmpur_metafield mmmfd_item_userexit    .
       mmpur_remove_messages_by_id tekpo-id.
    ENDIF.
    its working for one line item, if more then one line item you need to verify it.
    Mandy

  • Mail send issue - Workflow Triggered from Error Message

    hi
    i am learning workflow and doing some practical sessions using tutorials found on the internet. I have successfully enabled a workflow triggering options from the error message. The workflow will simply send an email and there is nothing else in that workflow definition. When i get the error message i open up the error message window and trigger the workflow option which is enabled. I get a message that the workflow has been started but i dont get the email immediately. I see the emails only after a long time. Infact the emails sent yesterday is only visible today.
    i checked in SOST and i dont see the messages at all. If its available in SOST then the system would have picked up and send to the inbox. But i dont see the mails queued in SOST. But if i wait for a day i can see the emails in my inbox. Any idea what is wrong.
    ~Suresh
    Message was edited by:
            Suresh Reddy

    Hi Suresh
    Good on you that you are actually going through the SAP Help and trying the harder but better way unlike many others...your input regarding your problem is also quite well explained....Keep it up!
    Coming to your problem,
    <b>1.>>I see the emails only after a long time. Infact the emails sent yesterday is >>only visible today.</b>
    RSCONN01 is the program that sends email out of SAP, make sure this scheduled to run frequently otherwise you can manually run this from SE/SA38.
    <b>2. i checked in SOST and i dont see the messages at all. If its available in SOST then the system would have picked up and send to the inbox</b>
    When you run SOST make sure you tick all the checkboxes - Waiting, Errors, Sent and Transmitted. If you are on ECC, then these are available on the Send Status tab...
    Good Luck
    Ravi

  • How to recover from error message 13014

    I am having a problem with launching the itunes from my computer. I consistantly receive the error message 13014 with every attempt. Is there some way I can recover from this error short of wiping the computer clean?

    Repair Permission with Disk Utility.  See if it starts.
    If not, relocate Genius related files in your iTunes Library folder to another folder somewhere.  Test if it starts.

  • How to exclude "Blocked for Purchase" error message in PO creation for particular Order Type

    In Article master some times we used to set Site-Specific Article Status = '01'. (MARC-MMSTA)
    01
    Blocked for Purchase
    02
    Blocked for Purchase/Sale
    My requirement is that when Creating PO in ME21N for a particular Order Type (Purchasing). This check need to be removed.
    Now if we try creating the PO we will be getting the below error message.
    Status "Blocked for Purchase" of article XXXXXX does not allow external procurement.
    Is there any exit or BADI where i can put logic to remove this check.

    Hi ,
    You can use BADI ME_PROCESS_PO_CUST or customer exist EXIT_SAPMM06E_013
    Regards,
    Pravin

  • Insane Object error while saving: Can i identify case from error message?

    Hi,
    I get the following message "Insane Object at BDHP+36C8c in "Data Logger.vi"{graphics}(0x80):Wire Segment (WIRE). I have seen errors like this in the past. It usually happens when the wire gets coiled like a snake or gets behind a place that cannot be viewed etc. The last time i had the problem, i had to delete the wire and rewire to have the problem solved. Is there any way for me to identify the case that has this wiring problem from the error description? I get this annoying dialog everytime i save my vi. Thanks for your time in advace.
    Anand.

    The message means there is a problem with an object on the block diagram (the BD of BDHP). Fixes include copying the diagram to a new VI, and randomly deleting objects and replacing them. You might also try pressing control-shift-run arrow on the VI to perform a binary recompile of the VI. It is a long shot but it is quick and easy do do. Ususally you will not see anything happen but occasionally LabVIEW can highlight the error or even correct it.

  • Is it possible to exclude .PDF file from Email Message body ?

    Hello Friends,
    I am sending e-mail from one program with attachment of EXCEL file.
    I am using following function SO_NEW_DOCUMENT_ATT_SEND_API1
    I am getting body of the message as a separate .PDF file.
    Even I want in real message body.
    <REMOVED BY MODERATOR>
    Regards,
    NVM
    Edited by: Alvaro Tejada Galindo on Dec 28, 2007 7:47 AM

    NB - the "data" that is returned by these classes is the data as defined in an adobe form - it doesn't return the content of non-form PDF documents.
    The PDF must be an interactive form ( although that doesn't restrict you to using the SAP process for creating the form is my understanding - but I could be wrong. )
    Edit - I was wrong! ONLY PDF documents that have been created by the ADS can have data extracted using these classes. So unless you are using Adobe interactive forms - then you will get no value from this functionality - and if you're using AIF then you're probably just use the standard UI element
    Edited by: Chris Paine on Oct 26, 2010 6:04 PM

  • Error message for ORA-904 incomplete in german locale [1.1.0.22.71]

    Hello Forum,
    when I enter an SQL which generates an ORA-904, the error message looks somewhat weird with german locale:
    -- First with AMERICAN setting:
    alter session set nls_language='AMERICAN';
    select a from dual;
    alter session set succeeded.
    Error starting at line 2 in command:
    select a from dual
    Error at Command Line:2 Column:7
    Error report:
    SQL Error: ORA-00904: "A": invalid identifier
    00904. 00000 - "%s: invalid identifier"
    *Cause:   
    *Action:
    -- And now with GERMAN setting:
    alter session set nls_language='GERMAN';
    select a from dual;
    alter session set succeeded.
    Error starting at line 4 in command:
    select a from dual
    Error at Command Line:4 Column:7
    Error report:
    SQL Error: ORA-00904: Ungültiger Spaltenname
    00904. 00000 - "%s: invalid identifier"
    *Cause:   
    *Action:
    As you can see, the name of the invalid column is not displayed when nls_language="GERMAN".
    Maybe the second line '00904. 00000 - "%s: invalid identifier"' results from having a german Windows XP.
    I don't know how it looks on english Windows or how it should look like. :-)
    I run SQLDeveloper on XP Pro and Oracle 9.2 (on W2k).
    Regards,
    dhalek

    dhalek,
    If you take a closer look, the 00904. 00000 - "%s: invalid identifier" line is present in both languages - it's something that gets always appended.
    As for the German message SQL Error: ORA-00904: Ungültiger Spaltenname, you see it's lacking any reference to the column. The German translator apparently let that slip out. If the substitution parameter was there, but unsubstituted for some reason, it would look like SQL Error: ORA-00904: "": Ungültiger Spaltenname.
    You can contact Oracle through Metalink if you want this to get sorted out...
    K.

  • Change message from error to Warning

    Hi,
    I need to change message No. MM038 to warning from error message. I have tried:
    SPRO-->Materials Management --> Purchasing --> Environment Data --> Define Attributes of System Messages --> System Messages
    but could not find or add my message there.
    MM038 message appears in Forecasting view of Material Master.
    Description of message MM038 is : "You may not add material as reference to itself"
    Thanks,
    Yuvnish

    this message is not customizable. it is a hardcoded error.
    ** Check for rekursive definition:
    * 1. does the given mat. have a usagemat.
    * 2. does another mat have us as usagemat.
    *0.
        IF MARC_VRBMT EQ P_MARA_MATNR AND
           MARC_VRBWK EQ P_MARC_WERKS.
          MESSAGE E038(MM) RAISING ERROR_VRBMT.
        ENDIF.

  • ORA-00600: internal error code, arguments: [kcbgtcr_5] ...

    Hi,
    I'm getting the error
    ORA-00600: internal error code, arguments: [kcbgtcr_5], [4294967295], [1], [0], [], [], [], []
    with a simple insert command on my XE database.
    SQL> l
      1    insert into sscm_content
      2    ( KEY ,
      3      NAME ,
      4      TOPIC_KEY ,
      5      CSS_CLASS_KEY ,
      6      SORT_STRING ,
      7      CONTENT ,
      8      NOTE
      9    )
    10    select
    11      KEY ,
    12      NAME ,
    13      TOPIC_KEY ,
    14      CSS_CLASS_KEY ,
    15      SORT_STRING ,
    16      CONTENT ,
    17      NOTE
    18    from
    19      temp_content
    20*
    SQL> /
      insert into sscm_content
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [kcbgtcr_5], [4294967295], [1], [0], [], [], [], []
    SQL> desc sscm_content
    Name                                                              Null?    Type
    KEY                                                               NOT NULL VARCHAR2(100)
    NAME                                                              NOT NULL VARCHAR2(100)
    TOPIC_KEY                                                         NOT NULL VARCHAR2(100)
    CSS_CLASS_KEY                                                     NOT NULL VARCHAR2(100)
    SORT_STRING                                                       NOT NULL VARCHAR2(100)
    CONTENT                                                           NOT NULL CLOB
    NOTE                                                                       CLOB
    SQL> desc temp_content
    Name                                                              Null?    Type
    KEY                                                                        VARCHAR2(100)
    NAME                                                              NOT NULL VARCHAR2(100)
    TOPIC_KEY                                                         NOT NULL VARCHAR2(100)
    CSS_CLASS_KEY                                                     NOT NULL VARCHAR2(100)
    SORT_STRING                                                       NOT NULL VARCHAR2(100)
    CONTENT                                                           NOT NULL CLOB
    NOTE                                                                       CLOBThe same command has worked many times in the past.
    I saw the following at http://oracledocs.shu.ac.uk/local/personalOracleInstallation/w2k-10g/readme.101/README_rdbms.htm
    "Bug 3392439
    Row Access Method problem: DML statements may fail with ORA-00600 [kcbget_24], ORA-00600 [kcbgtcr_5], or ORA-00600 [kcbgcur_3] error messages. The DML on an Index-Organized Table (IOT) that has one or more secondary index may fail with ORA-00600, fail with an access violation, or it may cause modification of rows in objects that are not associated with the target IOT.
    Workaround:
    Set hidden parameter _db_cache_pre_warm to false in init.ora to avoid pre-warming behavior in buffer cache. Alternatively, use ALTER SYSTEM FLUSH BUFFER_CACHE."
    Even though my tables are not index organized, the bug seems related to my problem since the "ALTER SYSTEM FLUSH BUFFER_CACHE' provides a temporary fix. It's not a permanent fix because the ORA-600 error reappears in later operations.
    For a permanent fix I tried setting the hidden parameter mentioned, but it wouldn't take.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> alter system set "_db_cache_pre_warm" = false comment = 'workaround for bug 3392439 ora 600 kcbgtcr_5 error' ;
    alter system set "_db_cache_pre_warm" = false comment = 'workaround for bug 3392439 ora 600 kcbgtcr_5 error'
    ERROR at line 1:
    ORA-02095: specified initialization parameter cannot be modifiedAny ideas on how I can fix the problem?

    Looks like I spoke too soon. The error is back.
    The problem might be related to a foreign key to an index organized table (IOT) that SSCM_CONTENT has. I converted the IOT to a regular table and was then able to perform the INSERT without receiving the ORA-00600. Let's hope it's gone for good.
    I sure would like to be able to use IOT's on Oracle XE though. I'd appreciate hearing if there are any workarounds or fixes other than the two already mentioned.

  • Error Message in IOS-XR

    Hi,
    Have anyone come across the following error message in CRS?
    "plaspa_server[123]: %L2-PLIM_ASIC-4-HW_WARNING : plaspa instance 0: (plaspa port 1 jacket slot 3) RSI Spi Error was reported"
    I couldn't get this message interpreted from Error message decoder
    Appreciate if anyone can explain this..
    Regards,

    On a SIP-800 in a CRS-1 there are two PLASPA ASICs. PLASPA ASIC Instance 0 handles/connects to the SPAs in subslots 0,1, and 3. PLASPA ASIC Instance 1 handes/connects to the SPAs in subslots 2, 4, and 5.
    There is an SPI 4.2 interface between the PLASPA ASIC and each SPA.
    http://en.wikipedia.org/wiki/SPI-4.2
    The error means that the PLASPA instance 0 detected an SPI 4.2 Packet Error on the link from the SPA in subslot 3.  The effect of the error is a packet was lost. If a threshold of these errors is exceeded (2 per minute) the SPI interface between the PLASPA ASIC and the SPA will be resynced to try and recover.
    You can see the number of errors with the command...
    show controller plim asic plasspa error loc <>
    If this is seen once and doesn't return then I would not be alarmed and would take no action.
    If you see these errors counting up frequently I would start by OIRing the SPA in subslot 3. If that doesn't fix it replace that SPA.
    Finally, if that doesn't fix it replace the SIP-800.

Maybe you are looking for

  • Stored Procedure using JDBC lookup.

    Did anyone tried this? does the DataBaseAccessor supports this type of call? cheers. Nimrod.g

  • Oracle.apps.fnd.framework.OAException: oracle.jbo.DMLConstraintException:

    Hi, I am inserting rows in advanced table using AddMoreRows button and page Apply button. It was working fine but now I am getting the following error when I click page Apply button, oracle.apps.fnd.framework.OAException: oracle.jbo.DMLConstraintExce

  • Adobe Air SDK 16.0

    Trying to use newly compiled MoPub ANE with Universal Binary Plugin x86 support for IOS Platform with Adobe Air SDK 16.0 for IOS App, i am encountering this compile time error. Adobe AIR [java] Picked up _JAVA_OPTIONS: -Xmx512m      [java] Picked up

  • How to configure details form in the Timekeeper Entry screen

    Hi All, I am using Payroll Timecard Layout. Currently I have a requirement to configure the details form in the timekeeper entry screen to accomodate the timekeepers to enter additional 2 fields of information along with the comments in the details f

  • I have a problem with my ipad sync to the itunes in pc

    when i connect my ipad4 wifi to pc i receive an error from itunes that says it can't read the contents of my ipad and i must restore.what's wrong and what should i do?