Handle system errors in BPM

I'm working on a BPM that may fail to perform some steps due to system errors. I can raise an exception if that happens, but what I'd like to do in the exception branch is to build a response message to the calling application that starts the BPM, declaring the reasons of the error. I can do that  giving a generic "system error" description, but I'd like to be more precise, and access the system error cause itself and add it to the message description.
Is this possible? How to make it?
Thanks in advance.

Hi,
    As per my knowledge we can raise System errors using Send step and Transformation Step.I dont think we can rise System errors using Control step.Control Step handles only Exceptions not System errors.(Confirm once).
But if you want to rise System errors go for Send Step Synchronous or Asynchronous.
Send Step Synchronous used when exception triggered by permanent system errors that occur in the pipeline or while transporting the message to or from the pipeline.Asynchronous Send Step:the exception will only be triggered if an error occurs during the transfer to the pipeline. Errors that occur during mapping in the pipeline, do not trigger an exception.
Transformation step used when to rise Permanent System error occurs.
Regards,
Raj

Similar Messages

  • How to handle system errors in XI using BPM? please help!

    Hi Experts,
         I have a requirement where I have to handle system errors. For example when I am making RFC call using RFC adapter if the remote destination is down then I have create a understandable error message and store it in another SAP table.
    How to handle it? I am using BPM. I can see that there is "Exceptions" in the send step. How to use this?
    Thanks
    Gopal

    Hi Gopalkrishna,
    In this case whenever you get Mapping Exception , you can raise an Exception with the help of BPM and you can send the status to the RFC. But with the help of BPM.
    For a Simple case refer:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/33/4a773f12f14a18e10000000a114084/frameset.htm
    If you want you can do it without a BPM
    and throw an exception in case any of the values is missing:
    have a look at this weblog on how to throw exceptions
    in a nice way:
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    Also just go through <a href="/people/sap.user72/blog/2005/02/23/raising-exceptions-in-sap-xi-mapping Exceptions in SAP XI Mapping</a> and see if it helps you solve the problem.
    Also go through these links:
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7f2243d711d1893e0000e8323c4f/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/68/253239bd1fa74ee10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/f2bbc8142c11d3b93a0000e8353423/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/5d/2166e6a91d11d188de0000e8216438/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/05/bb223905b61b0ae10000000a11402f/content.htm
    Please do let know if it helped.
    Regards,
    Abhy

  • System Error- Restart Not Possible

    Hi All,
    I have Synchronous scenario.
    I am trying to handle system error in BPM. so if system error comes i m cancelling process.
    So in sxmb_moni, my scenario is successful as it is not getting stuck into queue.
    But it is giving me error as "System Error - restart not possible" .
    But I need to resend / restart this message again.
    So can u please guide me for same
    Regards,
    Manisha

    When your WS id down you are handling the esception in your BPM perfectly....what more you can do is in the exception branch throw an alert to the support team from SAP saying that the processing for a particluar IDOC failed as there was an error while connecting to the end system......in this case you can ask them to restart this particular process once the WS is up....
    One option wil also be to increase the default retry attempts of AE while connecting to the end system....affects performance....maximum retry attempts is 10 (if i am not wrong).....so if your WS comes up during this time you can send the message......
    We have a similar case wherein same logic has been applied in BPM...which asks the support team to restart the process if the process fails due to a communication error with the end system.
    Regards,
    Abhishek.

  • How to handle the system error messages?

    Hi...
       I was doing File to RFC scenario with BPM. If i give the correct values for the Bapi Input it is working . If i give the some wrong input to the BAPI, it is not executing and the scenario is stopping. If i click on PE , it is going to the Inbound Queue.
    If this type of issue occurs i need to capture the system error and store it in a database. Could you pelase help in this issue.
    Thanks,
    Leela
    Edited by: leelaratnam morampudi on Nov 21, 2008 2:24 PM

    Hi Leela,
    You need to handle this in BPM. Check the thread describing how to catch exceptions in BPM.
    How to handle system errors in XI using BPM? please help!
    Thanks!

  • Error in BPM: FIle to RFC

    Hi friends,
       I  am working on File --> RFC ---> File Scenario using BPM ...
    Here I am getting system error in BPM and showing broken red brick in workflow at  sender1 ...
    I have given like this...
    Start --> Receiver ->sender1>Sender2 ---> Stop.
    I have given properties... for each
    C2 = Abstractinterface FIleResponse_Abs
    Recevier
    1)Step Name = Receiver
      Message   =  C1 (I defiend in container Category =Abstact interface type = FileRequest_Abs)
      Start process = (Selected)
      Mode = Asynchronous
    2)Sender1
    Step name = Sender1
    Mode =Synchronous
    Synchronous Interface = FileRequest_AI
    Request Message= C1
    Response Message=C2
    3)Sender2
    Step Name =Send2
    Mode = Asynchronous
    Message = C2
    After Configartion,I have placed the sender sample XML in Server ...it is picking up properly.But
    it showing error while it was executing in the BPM. Please suggest me what i have to do.
    If you didnt understand I ll give some more details.
    Pls help me in this regard.
    With Regards,
    Raju.

    I am getting error in Integration Engine.....
    Attribute     Value
    Engine     Integration Engine
    Status     System Error
    Repeatable     No
    Cancelable     No
    Start     20.06.2007 06:25:22
    End     20.06.2007 06:25:22
    Sender Party     
    Sender Service     BPM_FILE_RFC_SAGAR
    Sender Interface     http://File2RFC_Syn
    FileRequest_AI
    Receiver Party     
    Receiver Service     ECCIDOC800
    Receiver Interface     urn:sap-com:document:sap:rfc:functions
    BAPI_SALESORDER_GETLIST
    Quality of Service     Best Effort
    Error Category     
    Error Code     
    Message     9BA7365DDBC0FE49B9F512F7308DDA53
    Reference

  • Handling web service error in BPM

    My scenario is get a message from a data base and call web service using that, if web service is available get the response from web service and send it back to data base, incase web service call is unavailable.
    When web service is unavilable Iam getting a fault message back and could not proceed. I have a seperate blco to do web service call, in that I have Synchronous send step in BPM, and selected default system error under Exception.
    My requirment is when SOAP fault occurs I need to send the data back to data base else proceed if web service call is sucessful.

    Looks like we can not handle fault messages in BPM.
    Before I close this thread. just wanted to give little more explanation reg. my scenario.
    Business scenario -  Pull the data from Data base using a Stroed Procedure(this marks the records once it is successful) and call web service using this data. If web service call is success, push the response received from web service to Data Base. If call to web service fails, still push the data which was pulled initially from database back to same location in database.
    Iam using BPM to get the message from Data Base using JDBC sender adapter, once I got the data  Asynchronously into BPM Iam using Synchronous send step to call web service, in the properties section, I have specified request message (abstract asynchronous, ) response message (abstract asynchronous) ,  Receive from - SendContext and selected default option which is ExWebserviceCall for SystemError.
    I have an exception branch for this synchronous send step, which is working good incase of system error.
    This is working good when I tried to testing using invalid URL for target system.  When web service itself is down , in this case  Iam getting SOAP Fault back with HTTP code 500.
    In SXMB_MONI, under error - it is showing as this error is related to application , which I think is application error.
    When this happens my process is not working.
    Edited by: Vamsi on Aug 26, 2010 4:31 PM

  • BPM - JDBC adapter - How to trigger system errors thro' adapters?

    I have designed the BPM in following way :
    1. Receive step - Receive Asynchronous message
    2. Defined the Block - DB
    3. Send step 'A' to JDBC - inside the Block-'DB' - Acknowledgement-Transport, Exceptions System Error-'DB', Receiver from-Send context.
    4. Created an exception handler and Selected 'DB' as exception handler for the property of the exception handler branch.
    5. Inserted the Send step-'B' to Mail inside the exception handler branch by using the mail receiver adapter.
    We want send the message to update database by using JDBC adapter but if it fails to update database then we want send an e-mail to outlook.
    Due to some problem we are not able to receive confirmation for the update of database in the "SEND" step-'A' and it is not red flag error it means it is not system error in Tcode-SXMB_MONI. Does anyone can help me to get a system error triggered by the JDBC adapter which would basically throws up the red flag and tells XI that the message could not be delivered successfully to database and the message would route to "SEND" step-'B' to send an email to outlook?
    Thanks in advance!
    Mrudula

    Hi Sarvana,
    I have defined the all the mandatory fields in the BPM.
    Following is the error log if you could help me in resolving it.
    Thanks in advance!
    MESSAGE ID: com.sap.aii.ib.sbeans.oa.rb_all.RUNTIME_EXCEPTION_OCCURED
    com.sap.aii.utilxi.swing.framework.FrameworkException: Runtime error (RuntimeException). See details
         at com.sap.aii.ib.gui.editor.XiDocument.checkConsistency(XiDocument.java:780)
         at com.sap.aii.ibrep.gui.bpm.BusinessProcessDocument.checkConsistency(BusinessProcessDocument.java:479)
         at com.sap.aii.ib.gui.editor.XiDocument.checkObject(XiDocument.java:799)
         at com.sap.aii.ib.gui.editor.CheckObjectCommand.execute(CheckObjectCommand.java:38)
         at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:196)
         at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:134)
         at com.sap.aii.utilxi.swing.framework.CommandAction.actionPerformed(CommandAction.java:69)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at com.sap.plaf.frog.FrogMenuItemUI$ClickAction.actionPerformed(FrogMenuItemUI.java:960)
         at javax.swing.SwingUtilities.notifyAction(Unknown Source)
         at javax.swing.JComponent.processKeyBinding(Unknown Source)
         at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Source)
         at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Source)
         at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Source)
         at javax.swing.JMenuBar.processKeyBinding(Unknown Source)
         at javax.swing.KeyboardManager.fireBinding(Unknown Source)
         at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
         at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
         at javax.swing.JComponent.processKeyBindings(Unknown Source)
         at javax.swing.JComponent.processKeyEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
         at com.sap.aii.utilxi.swing.toolkit.AccessibleKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

  • Set Message in BPM to System Error - Manual Restart Possible ?

    Hello,
    I'm working on a scenario where two idocs are merged in a BPM. The next step is sending the message in a synchronous RFC (BAPI) to a SAP R/3. Is it possible to set the merged message to the message status 'System Error - Manual Restart Possible' in the SXMB_MONI, when the BAPI returns an Error message?
    When it's not possible, is there an othe possibility to sent the message again, without involving the source system?
    Thanks in advance
    Matthias

    Hi,
    It would be better i think if you use the concept of raising an exception in your response mapping
    please refer:
    /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
    in the response mapping you can check the condition for the responce code from RFC.
    Ranjit

  • How to handle system exception in Sync communication without BPM? Help!

    Hi Experts
       I have a Synchronous scenario in XI: webservice <------>RFC SAP R/3.
      Webservice is making a sync call to RFC FM in SAP R/3 system.
       I want to handle system exception when SAP R/3 is down and send an email alert.    
       Can I achieve this in graphical mapping without BPM? How? Kindly provide necessary steps/screenshots for the same.
       Are there any other alternatives for handling system exception apart from mapping and BPM?  
    Thanks
    Gopal

    Hi GopalKirshna,
          Yes,You can handle the Exception if at all you are using the RFC.You can achieve this without using BPM.
       Using Fault message you can catch the System Exception and even the primary role for Fault Message is to catch the RFC Exceptions.
       Please refer the Fault messages Notes to achieve this you will understand better.
    Hope I am clear.
    Please let me if you have any more queries regarding this..!
    Thanks and Rewards,
    Chandu.

  • Reboot due to system error / Register dump from exception handler

    hi,
    I have a problem with Labview RT when using Reboot function.
    The RT target (desktop) reboot but there is a message : Reboot due to system error.  And if I reboot once again, the target become in safe mode.
    Now, If I look at the log I obtain the following message see more in the log attached!
    *** REGISTER DUMP FROM EXCEPTION HANDLER (code 0x80000003) ***
    I don't understand why there is this message.
    Anybody has an explaination?
    Attachments:
    Nouveau Document texte2.txt ‏6 KB

    julesjay a écrit:
    ok I didn't know that. I will wait for tomorrow.
    NI france is not very efficient about labview Real time problems. 
    There is one or two experts and there aren't easily reachable.
    So a lot of question I send stay with no answer.....
    That why I hope someone will be able to help me.
    Hi Julesjay,
    After i have see your log file and the problem, i think NI FRANCE are working on your request for all problems you have in your application.
    And i don't understand what you say that, because we have make test, we have send us informations for make different tests, and we are still working on your problem.
    I know the problem are not resolved, but we are working for resolve it quickly.
    I suggested you to contact the AE that are your service request for have more information.
    Best regards,
    Christophe S.
    FSE East of France І Certified LabVIEW Associate Developer І National Instruments France

  • I can't down load itunes. I get an error message, NTVDM has encountered a System Error The handle is invalid.

    16 bit MS-DOS Subsystem
    C:\WINDOWS\system32\msiexec.ex NTVDM has encountered a System Error The handle is invalid.
    Choose 'Close' to terminate tha application.
    Close   Ignore

    Okay. It seems unlikely to be the class of similar problems caused by various Symantec programs blocking installs.
    It's a bit of a mystery in the first place why the 16 bit DOS subsystem is running in this context. (The iTunes installer is 32-bit on XP machines.)
    Just in case it's a damaged NTVDM, perhaps try an sfc /scannow:
    http://www.updatexp.com/scannow-sfc.html
    Does that clear up the error?

  • System Error - BPM

    I am trying to enter a value in the System Error for the Send step to catch System Error and I am not able to. The drop down is empty.
    Can someone help?

    Hi,
    Can you paste the full error message. Also take a look at the default trace log in Visual Admin. Set the logging for soap to debug.
    Naveen

  • System error in block parforEach: Exception why is process finished?

    Hi everybody,
    we split a message in BPM. Then we loop the multiline-container element.
    For each line-item we call a WebService synchrounous.
    We got a exception branch for system errors.
    Now we got the following problem:
    Our produces abount 3000 line-items.
    While processing e.g. item 1000 we got a system error and the BPM jumped into the execption branch. After processing the exception branch the process FINISHED!
    We assumed that the process would go on processing the remaining items!
    Is there a workaroud, that the process does go on with processing the remaining items?
    Regards Mario

    Hi,
    After handling the exception, the process will be continuing after that block. So you can try to put the block within a loop until all the line items get over.
    Regards,
    P.Venkat

  • What is a PERMAMENT ERROR in BPM?

    Hello,
    that´s nice. All the docs about BPM describe the possible reactions to PERMANENT ERRORS. But what is this?
    Background:
    We created a BPM with a send step in a block after a receive step (That´s simple so far!).
    The send step (async) in the block is connected in field "system error" to an exception branch. In this branch the process should send back to sender system a message via RFC and the last step in this exception branch is to interrupt the proces.
    But now we tried to do a test. In this test we modified the receiver address of the send step so that the receiver could not be reached, which results in an error step in SXMB_MONI (Service unavailable).
    But this doesn´t work. The BPM starts the send step to the unavailable receiver, SXMB_MONI shows an error step, but then the BPM continues after the block without starting the exception branch.
    What is wrong in our understanding of BPM?
    Have found a link to some information from SAP which says this: In the case of an asynchronous send step, the exception will only be triggered if an error occurs during the transfer to the pipeline. 
    This means that such an error as we created here is not covered?
    No, I don´t think so, because in SXMB_MONI the error for this step is marked with flag for system error!
    Regards
    Dirk
    Message was edited by: Dirk Meinhard

    Hi Agasthuri,
    thanx for this help.
    But possibly the header of my topic is wrong as I got some more information from SDN now.
    I know now that the status flag in SXMB_MONI gives information about the kind of status. We have a system error here (red flag). So the BPM should trigger the exception. But it doesn´t !
    From our point of view everything is fine. The send step in the standard branch of the block is connected to the exception handler in the exception branch in its attributes.
    I am wondering that there is an error in SXMB_MONI but the BPM continues ignoring this error (ignoring to start the exception handler).
    (We are on SP17!)
    Regards
    Dirk

  • Catch error in BPM process

    I'm working with 11g.
    I have a BPM process and I want catch the system errors to redirect the work flow at a subprocess or in the particular form that can help external users
    I have tried with "evant subprocess" but don't work (BUG fix in only for PS5(11.1.1.6 version) )
    Can you help me?
    Thanks
    Elena

    Can you be more specific about the bug?
    It's true that the fault handling framework for recovery (as in BPEL) is in an upcoming release. But you can (in 11.1.1.4) put the activities that would generate errors in an embedded subprocess, then put a boundary catch event on the subprocess to catch and handle system and/or business errors. The flow out of whatever handles the error can rejoin the main flow or loop back to retry. A common pattern is to have to flow go to a human activity where the outcome of the activity determines whether to retry.
    You can also catch error events in an event subprocess, but you can't continue the main flow from there. That flow (within the event subprocess) either interrupts or is concurrent with the main flow.

Maybe you are looking for

  • SID generation error

    Hi All, I am loading data for Sales Item for this i have enhanced the DataSource. Now while i am loading the data to DSO it is giving error while activating the DSO--SID generation error as it found some hex. values. To overcome this i tried with TOU

  • Internet explorer 9 support for WD ABAP?

    SAP support for IE9 for Webdynpro ABAP exists already says notes 1496565 ja 1583947 with some exceptions like 64-bit version of IE9 is not supported. This happened around april-june this year according to release dates of those notes. But I did not q

  • Basic Hue Saturation Question

    Using Image > Adjustment > Hue Saturation I notice there are reds on both ends of the spectrum. How do you decide which to use?

  • ITunes still not working after uninstall and install. Help?

    iTunes hasn't opened on my computer for a few weeks. Before uninstalling, I went to Control Panel and chose the 'Repair' option which did nothing. I ran a scan to see if there a virus, came up clean. I uninstalled it completely and reinstalled the la

  • STOCK STATEMENT (STORES)

    hi abapers pls help me abt stock statement (stores) output fields are 1. S.no. 2. Item Description. 3. Item Code. 4. Opening Balance. 5. Received Qty. 6. Issued to x. y z 7. Sold Qty. 8. Closing Balance. pls help me abt the table name and field names