How to capture last error in Application

Hi,
I have an application running in D2k with backend as oracle9i,now sometimes oracle exception pops up,but its not reptitive,like i would like to give example.
Query is fetching more than one row exception, actually very large amount of code is there ,with no proper exception handling...so modifying all code at one go is impossible,so i want to know any method which tell me which query or statement raised the oracle error in a particular session ,as I see sql_trace ,i think its not meant for that ,Is it ?
So please suggest me what can be done.
Regards,
Sandeep

I'm trying to get into a website and this is the message I get:
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>

Similar Messages

  • How to capture System Error in XI?

    Hello All,
    1. Can any one tell me , How to capture the system error , Adapter Error and send the alert to make sure the guarenteed delivery from Source to Target via XI ?
    2.I have done the configuration for to capture the mapping error in transaction ALRTCATDEF .But still i am not able to see any messages in my Alert Inbox???
    I have checked with the two weblogs Alert step by step and Alert Trouble shooting guide.but still i am not getting any messages in Alert inbox .Any one can tell me how to fix this?
    Thanks!

    Hi,
      You wrote:
    <i>How to capture the system error , Adapter Error </i>
    Errors are captures in many ways and at different stages,
    like alert, sld errors or even sxmb_moni or even with visual administrator trace, I am not sure of your requirement but if you want a centrlished point to access all these error you may refer a good example as,
    /people/michal.krawczyk2/blog/2005/09/07/xi-why-dont-start-searching-for-all-errors-from-one-place
    <i>have checked with the two weblogs Alert step by step and Alert Trouble shooting guide.but still i am not getting any messages in Alert inbox .Any one can tell me how to fix this?</i>
    The two weblogs are my favourite and best resources but still if you are missing, please elaborate if you are getting any errors or other fesible traces as to why your alerts are not coming in inbox.
    Regards,
    Anirban.

  • How to capture Exception error message in Odata ?

    Hi,
      I am new to sap gateway. Currently i am creating a Odata Service through the transaction SEGW. In the query i have mapped a RFC. When i execute the service sometimes the RFC throws exception like 'No data Found'. But i dont know how to capture the exception returned from the RFC.
    I read some threads which says use
    RAISE EXCEPTION TYPE /IWBEP/CX_MGW_BUSI_EXCEPTION
          EXPORTING
            textid            = /iwbep/cx_mgw_busi_exception=>business_error
            message       =  lv_text
            message_container = io_message_container.
    My doubt is since i have not done any code in the DPC method. As said in many threads should i go to DPC_EXT method and redefine the method or how to capture the exception.
    Kindly advise. Thanks in advance

    Hello Velsankar,
    You need not to capture the error messages explicitly by writing custom code in you DPC_EXT if you are using service builder when the return error message table is of type BAPIRET2.
    GW itself will handle and return the error messages.
    If at all the return error message table is of different type , i mean to say if it is not of type BAPIRET2 then you need to capture explicitly.
    The below is the code you need to write in DPC_EXT to capture.
    DATA: LO_MECO TYPE REF TO /IWBEP/IF_MESSAGE_CONTAINER.
    DATA: LX_BUSI_EXC TYPE REF TO /IWBEP/CX_MGW_BUSI_EXCEPTION.
            LO_MECO = MO_CONTEXT->GET_MESSAGE_CONTAINER( ).
             LO_MECO->ADD_MESSAGES_FROM_BAPI( IT_BAPI_MESSAGES = LT_ERR_RET_TAB ).
             CREATE OBJECT LX_BUSI_EXC
               EXPORTING
                 MESSAGE_CONTAINER = LO_MECO.
             RAISE EXCEPTION LX_BUSI_EXC.
    Note : where LT_ERR_RET_TAB is your internal table where you would have captured all the error messages.
    That is it. You will be able to see the messages .
    Regards,
    Ashwin

  • How to capture the error messages from incorrect session?

    Hi SDNs.,
    i am using BDC Session method to update transaction FB01. So my job runs daily. here i want to capture the error messages and i want to send it to mail.  Can i capture the unprocessed records???
    i think FM <b>SO_NEW_DOCUMENT_ATT_SEND_API1</b> used for sending mail? but how to capture mes or records?
    or Is there any other way to Do it???
    Thankning you.,
    Ram

    Hi Ramakrishna,
       Once you create the session, Process the session using
    the report RSBDCSUB using submit statement.
    It would list out the erroneous records.
    Hence, while submitting, just say submit RSBDCSUB in background and export output list to memory.,
    Then you can retrieve the list from memory using the FM LIST_FROM_MEMORY into the internal table and finally send the email by the fm you have already mentioned.
    Regards,
    Ravi

  • How to capture the errors, while processing the transformations

    Hi,
    i need to capture all errors, this includes invalid SQL text, short dumps related to SQL exaction etc.., while processing transformation.
    I need to write code to fill error handling structures like(monitor table).
    It sholud dynamically update the all errors to Monitor table, while processing the Transforamtions.
    Please advice how to do this.
    Thanks & Regards
    MRK

    Hi Rajani,
    the code goes some this like this
         RESULT = SOURCE_FIELDS-TXTMD5.
         TRANSLATE RESULT TO UPPER CASE .
         CONDENSE RESULT NO-GAPS .
         READ TABLE I_SECTOR INTO I_SECTOR WITH KEY
                                   PRODUCT = SOURCE_FIELDS-/BIC/Z_IPROD
                                   ISTATATTR = RESULT .
         IF SY-SUBRC NE 0 .
          MONITOR_REC-MSGID = 'ZMESSAGE'.
          MONITOR_REC-MSGTY = 'E'.
          MONITOR_REC-MSGNO = '001'.
          MONITOR_REC-MSGV1 = 'ERROR, SECTOR'.
          MONITOR_REC-MSGV2 = SOURCE_FIELDS-TXTMD5 .
          MONITOR_REC-MSGV3 = SOURCE_FIELDS-/BIC/Z_IPROD.
          APPEND MONITOR_REC TO MONITOR.
         RAISE EXCEPTION TYPE CX_RSROUT_ABORT.
         ENDIF.
    for this you need to create message class called ZMESSAGE in SE91 tcode
    Hope this helps
    PV

  • How to capture an error while creating a purchase requisition

    Hello All,
    I append 50 line items while creating a PR using BAPI_REQUISITION_CREATE and I get an error in RETURN.
    So can I capture the line item which exactly has that error.
    I mean to say how to figure out the line item with error, if the BAPI gives an error.
    Please suggest.
    Thanks & Regards,
    Tarun Gambhir

    I could not find TEST_RUN option in these bapis
    Roundway will be
    1. Use BAPI_REQUISTION_CREATE with single line item  and create PR then take the requisiton number
    2. Use ME_UPDATE_REQUISITION. and add line by line into same PR (Within loop)
    BAPI_REQUISITION_CHANGE can only be possible to edit existing line and you cannot able to add new lines,
    a®s
    Edited by: a®s on Jul 29, 2009 11:13 AM

  • How to capture mapping error and able to send it..

    Hi Friends,
    We have a requirement, where in, if a mapping fails due to missing required element or improper formation of the source xml message, we need to capture this and need to create an error message, which contains the error description as one of the elemnets and send it to the concerned system back. Basically, it is to let the sending system know that, what went wrong.
    Is there any api available which can capture the mapping error and which could be used under java mapping used for exception handling? Any pointers in this regard would be of utmost helpful.
    Regards,
    Vijay

    Vijay,
    You can throw some exceptions like mentioned in the weblog:
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    /people/michal.krawczyk2/blog/2007/04/26/xipi-throwing-generic-exceptions-from-any-type-of-mapping
    Once you see this message your support guys should check the message and let the sender system side know about this.
    ---Satish

  • How to capture DB Errors and display as pop-up message

    Hi All,
    I am using Jdeveloper 11g Release 2 (11.1.2.3.0).
    In my AppModuleImpl.java, I defined a class to call PL/SQL procedure and exposed the same as Client interface. Pulled this method from data control on to a page a Button. The functionality is working fine.
    Can you suggest me, what is best way to achieve the below functionality.
    1. If there is any DB errors during PL/SQL procedure, how to catch and display the Errors / Warning in Pop-up message.
    2. How to display info message on successful completion in Pop-up.
    regards

    Hi,
    +1. If there is any DB errors during PL/SQL procedure, how to catch and display the Errors / Warning in Pop-up message.+
    Throw a custom exception that extends the JboException class.
    See:
    http://www.oracle.com/technetwork/issue-archive/2013/13-mar/o23adf-1897193.html
    http://jobinesh.blogspot.de/2011/03/customizing-business-components-error.html
    +2. How to display info message on successful completion in Pop-up.+
    Option 1.
    you can either return "true" or "false" from the method so that you can call
    OperationBinding plsqlOperationBinding = .... get access to themethod binding to invoke the PLSQL method call ....
    String result = plsqlOperationBinding.execute();
    if(result.equlasIgnoreCase("true"){
    RichPopup popup = ... get reference to popup defined on the page
    RichPopup.PopupHints hints = new RichPopup.PopupHints ();
    popup.show(hints);
    Option 2
    OperationBinding plsqlOperationBinding = .... get access to themethod binding to invoke the PLSQL method call ....
    plsqlOperationBinding.execute();
    if(plsqlOperationBinding.getErrors().size == 0){
    RichPopup popup = ... get reference to popup defined on the page
    RichPopup.PopupHints hints = new RichPopup.PopupHints ();
    popup.show(hints);
    Frank

  • BPM - Send Step to HTTP - How to capture the error?

    Hi gurus,
    I have a BPM with a Send Step that connects to an http server. I need the following:
    - If the HTTP returns code 200, end the BPM
    - If the HTTP returns another code, wait 5 minutos and try the send step again.
    I've made a LOOP with a flag. Inside the LOOP I have a BLOCK with an exception branch.
    In the send step I put in the field "system error" to go to the exception branch and in the exception branch i'm setting my flag to do the loop one more time.
    My problem is that the Send Step is not triggering the exception branch! The http returns 405 or 504 and it continues like everything is okey.
    Can you help with this?
    Thanks in advance !
    MD.

    Hi Ramakrishna,
       Once you create the session, Process the session using
    the report RSBDCSUB using submit statement.
    It would list out the erroneous records.
    Hence, while submitting, just say submit RSBDCSUB in background and export output list to memory.,
    Then you can retrieve the list from memory using the FM LIST_FROM_MEMORY into the internal table and finally send the email by the fm you have already mentioned.
    Regards,
    Ravi

  • How to capture error message in a FM call during exception

    Hi,
    The FM i'm trying to call is giving an exception and don't have the built in mechanism to pass on the error message that occured during processing.
    However, if i see the job log in SM37, I'm able to see the corresponding error message.
    Please let  me know on how to capture this error message with in my program.
    Thanks,
    Vijay.

    Hi,
    add the exceptions...ERROR_MESSAGE to capture the error message..raised in the function module.
             EXCEPTIONS
                  ERROR_MESSAGE = 1.
    Thanks
    Naren

  • Capturing soap errors in PI

    Dear Scn users,
    I have a proxy->webservice scenario.
    If there is something wrong while sending data to webservice(Ex:wrong username)there will be error which will be displayed as"invalid username" if we test using soap UI.
    But in PI it will shown only as http 500 error,How to capture this error in PI like soap UI.
    In PI also it should show as "Invalid Username".
    How to achieve this.

    Hi Raghu,
    Check the below blogs
    Handling Web Service SOAP Fault Responses in SAP NetWeaver XI
    SOAP Fault in SAP PI: hijack it!
    regards,
    Harish

  • How to capture errors records in flat file in BDC

    hi ,
        i would like to know how to capture error records while  uploading a flat file to screen through BDC .
    appreciatable solutions are rewarded.
    thanks,
    shan

    Hi shan,
    write this code, it will solve your problem.
    DATA : BDCTAB LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
    DATA : I_MSG LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    DATA : BEGIN OF I_ERR OCCURS 0,
              MATNR(18),
              FLAG(1),
              MSG(100),
           END OF I_ERR.
    DATA :V_LINES TYPE I.
    LOOP AT ITAB.
    REFRESH BDCTAB.
    PERFORM SCREEN USING: 'SAPLMGMM' '0060'.
    PERFORM FIELD USING: 'RMMG1-MATNR'  ITAB-MATNR,
                          'RMMG1-MBRSH' ITAB-MBRSH ,
                          'RMMG1-MTART' ITAB-MTART,
                          'BDC_OKCODE' '/00'.
    PERFORM SCREEN USING: 'SAPLMGMM' '0070'.
    PERFORM FIELD USING: 'MSICHTAUSW-KZSEL(01)' 'X' ,
                         'MSICHTAUSW-KZSEL(02)' 'X' ,
                         'MSICHTAUSW-KZSEL(09)' 'X' ,
                         'BDC_OKCODE' '=ENTR'.
    PERFORM SCREEN USING: 'SAPLMGMM' '0080'.
    PERFORM FIELD USING: 'RMMG1-WERKS' ITAB-WERKS,
                         'BDC_OKCODE' '=ENTR'.
    PERFORM SCREEN USING: 'SAPLMGMM' '4004'.
    PERFORM FIELD USING:  'MAKT-MAKTX' ITAB-MAKTX,
                          'MARA-MEINS' 'EA' ,
                          'MARA-MATKL' '001',
                          'BDC_OKCODE' '/00'.
    PERFORM SCREEN USING: 'SAPLMGMM' '4004'.
    PERFORM FIELD USING:  'BDC_OKCODE' '/00'.
    PERFORM SCREEN USING: 'SAPLMGMM' '4000'.
    PERFORM FIELD USING:  'MAKT-MAKTX' ITAB-MAKTX,
                          'MARA-MEINS' 'EA',
                          'MARC-EKGRP' '001',
                          'MARA-MATKL' '001',
                          'BDC_OKCODE' '=BU'.
    CALL TRANSACTION 'MM01' USING BDCTAB
                            MODE 'A'
                            MESSAGES INTO I_MSG.
    FINDING LAST MESSAGE IN THE I_MSG TABLE*****
    DESCRIBE TABLE I_MSG LINES V_LINES.
    ACCORDING TO THE V_LINES NUMBER TABLE WILL BE READ****
    READ TABLE I_MSG INDEX V_LINES.
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
       ID              = I_MSG-MSGID
       LANG            = '-D'
       NO              = I_MSG-MSGNR
       V1              = I_MSG-MSGV1
       V2              = I_MSG-MSGV2
       V3              = I_MSG-MSGV3
       V4              = I_MSG-MSGV4
    IMPORTING
       MSG             = I_ERR-MSG
    EXCEPTIONS
       NOT_FOUND       = 1
       OTHERS          = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF I_MSG-MSGID EQ 'M3' AND I_MSG-MSGNR EQ '800'.
    I_ERR-FLAG = 'S'.
    ELSE.
    I_ERR-FLAG = 'E'.
    ENDIF.
    I_ERR-MATNR = ITAB-MATNR.
    APPEND I_ERR.
    CLEAR I_ERR.
    ENDLOOP.
    WRITE:/ 'SUCCESS RECORDS' COLOR COL_POSITIVE.
    SKIP.
    WRITE:/ 'MATERIAL' COLOR COL_HEADING, 20 'MESSAGE' COLOR COL_HEADING.
    LOOP AT I_ERR WHERE FLAG EQ 'S'.
    WRITE:/ I_ERR-MATNR, 20 I_ERR-MSG.
    ENDLOOP.
    SKIP 2.
    WRITE:/ 'ERROR RECORDS' COLOR COL_NEGATIVE.
    SKIP.
    WRITE:/ 'MATERIAL' COLOR COL_HEADING, 20 'MESSAGE' COLOR COL_HEADING.
    LOOP AT I_ERR WHERE FLAG EQ 'E'.
    WRITE:/ I_ERR-MATNR, 20 I_ERR-MSG.
    ENDLOOP.
    *&      Form  SCREEN
         SCREEN
    form SCREEN  using P_PROG P_SCREEN.
    BDCTAB-PROGRAM = P_PROG.
    BDCTAB-DYNPRO = P_SCREEN.
    BDCTAB-DYNBEGIN = 'X'.
    APPEND BDCTAB.
    CLEAR  BDCTAB.
    endform.                    " SCREEN
    *&      Form  FIELD
       FIELD
    form FIELD  using  FNAME FVAL .
    BDCTAB-FNAM = FNAME.
    BDCTAB-FVAL = FVAL.
    APPEND BDCTAB.
    CLEAR BDCTAB.
    endform.                    " FIELD
    Thanks,
    Murali

  • How to get the last error for while loop?

    How to get the last error for while loop? I just want transfer the last error for while loop, but the program use the shift register shift all error every cycle.

    What do you mean by "get" and "transfer"?
    If the shift register is not what you want, use a plan tunnel instead.
    Typically, programmers are interested in the first, not last, error.
    Can you show us your code so we have a better idea what you are trying to?
    LabVIEW Champion . Do more with less code and in less time .

  • Certain websites that i've accessed earlier in a day return a message saying 'Server Error in '/' Application. how can i access these websites and resolve what seems to be a continuing problem'

    within the past 10 days I've started to have problems in accessing websites that I visit regularly and may have visited only hours before. The message I receive is 'Server Error in '/' Application' which gives details about how to find out more information but (1) I'm not sure how to follow the information and (20 whether the information is safe, and (3) whether following the advice will correct the problem - it doesn't sound as if it will. I'll cut and paste the information below - help received with thanks (I'll just provide the current problem site but it has happened with a number including abc.net.au and classicsonline.com amongst others
    Web page error_Firefox_Feb 2011
    Server Error in '/' Application.
    Runtime Error
    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
    Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="Off"/>
    </system.web>
    </configuration>
    Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
    </configuration>

    within the past 10 days I've started to have problems in accessing websites that I visit regularly and may have visited only hours before. The message I receive is 'Server Error in '/' Application' which gives details about how to find out more information but (1) I'm not sure how to follow the information and (20 whether the information is safe, and (3) whether following the advice will correct the problem - it doesn't sound as if it will. I'll cut and paste the information below - help received with thanks (I'll just provide the current problem site but it has happened with a number including abc.net.au and classicsonline.com amongst others
    Web page error_Firefox_Feb 2011
    Server Error in '/' Application.
    Runtime Error
    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
    Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="Off"/>
    </system.web>
    </configuration>
    Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
    </configuration>

  • How to capture error message log for Tcode MIR7

    Hi ,
    I have a problem to capture the error message outside the tcode which are created by MIR7/MIR0 .
    Are they stored in any database table?
    Is there any other way to access them?
    Anybody knows how to solve this that will be very helpful.
    Thanks,
    Anu

    call transaction 'XK01' using i_bdcdata
                     mode 'N'
                     update 'S'
                     messages into i_bdcmsgcoll.
    if sy-subrc <> 0.
        perform get_error.
            write:/ itab , v_text.
    endif.
    *Form
    form get_error.
    loop at i_bdcmsgcoll.
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
       ID              = i_bdcmsgcoll-MSGID
       LANG            = sy-langu
       NO              = i_bdcmsgcoll-MSGNr
       V1              = i_bdcmsgcoll-MSGV1
      V2              = SY-MSGV2
      V3              = SY-MSGV3
      V4              = SY-MSGV4
    IMPORTING
       MSG             = v_text
    EXCEPTIONS
      NOT_FOUND       = 1
      OTHERS          = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endloop.
    endform.                    " get_error
    Edited by: Bala Krishna on Sep 9, 2008 7:50 PM

Maybe you are looking for

  • IOS 5 Bug: Badges on Messaging app

    We have stumbled upon a bug in iOS 5 running on the iPhone 4, in regards to the badges showing up on the Messages App. You can reproduce this bug yourself. In Settings>Notifications>Messages, set it to: Notification Center: On Show: 5 Recent Items Al

  • Problem with compilation of HelloWorld.java

    hi, getting problem with compilation of HelloWorld.java CLASSPATH--- C:\java PATH--- C:\j2sdk1.4.2_04\bin HelloWorld.java source code in: C:\java On cmd prompt: C:\java>javac HelloWorld.java error: cannot read: HelloWorld.java 1 error pls help me wit

  • My account is locked due to security questions? How do fix this?

    I locked my account by forgetting my security questions. All I wanted to do was buy music

  • Does apple provide service and repairs internationally?

    I am presently in the US and about to purchase iPhone 5s in the coming week. In November I am moving to India for some work. After going through the apple communities I have found that Apple is not providing international warranty. So if that's the c

  • How do I fix error -1202?

    When trying to purchase music on itunes, I get unknown error -1202.  Time and date are correct.  Is there a solution?