BPM Exception Branch: Condition?

Hi everybody,
sometime our JAVA-stack makes some problems:
SYSTEM FAILURE" during JCO-Call.
In this cases some mappings fail and the BPM processes the exception branch.
So we got the idea to put a wait step (e.g. 5 minutes) in the exception branch and than the BPM sends the origin received message to itself.
The problem is now: The exception branch is also processed when other mapping errors occur.
In this cases the wait stept should be processed!
Do we have any chance to distinguish the case of error. Maybe to read the trace? But how can we read the trace in BPM to use it as a condition?
Thanks
regards, Mario

Hi Mario,
You can create an exception branch for MAPPING_EXCEPTION or what error you can see in the BPM when the mapping fails. This will trigger the branch with mapping exception when an alert is triggered.
/daniel

Similar Messages

  • Catch mapping error message in BPM Exception branch

    Hi dudes,
    Does anyone know how to catch the mapping runtime error message into a BPM exception branch? I know how to create an exception branch and how to trigger it, but I wonder whether it's possible to pass the mapping error message as shown in SXI_MONITOR (i.e. 'Cannot create target element XXXXX. Values missing in queue context').
    Otherwise, everytime my BPM fails I will have to take the payload and run the mapping test in order to find out the reason of the error.
    Many thanks in advance!
    Paco

    Thanks,
    My problem is not about handling exception in BPM, but getting the mapping error description and then passing it to the exception branch.
    I can see in the workflow log that this info is contained into the Exception container EXCEPTIONS[2] / T100MSG:
    Message Class: SAI_MAPPING
    Message Number: 217
    Message Type: E
    Message Variable: com/sap/xi/tf/_<MM name>
    Message Variable: com.sap.aii.mappingtool.tf7.IllegalInstanceExcepti
    Message Variable: on: Cannot create target element /ns1:<path/field>.Message Variable: Values~
    The text in bold is the one I am interested in to be get and mapped into the exception branch.

  • Bpm exception branch not triggerd

    Hello,
    I have defined an exception + corresponding exception branch in my bpm block.
    In my bpm processing steps I have assigned the above mentioned exception as system exception.
    My problem is that if one of my processing steps fails, the exception seems not to be triggered.
    For example I have a mapping step that fails, but the bpm simply continues the next processing step instead of jumping to the exception branch.
    I seem to be missing something, any ideas?
    Thanks
    Matthias
    P.S.: We are on PI 7.11 patch level 6.

    1) Open your BPM in ESR and do a check on it...press F7...check if you get any warning messages.
    2) Try to delete the BPM instances from SWWL transaction and then again test
    3) there is a note for this problem (1086654) but it is limited till PI7.1
    I have defined an exception + corresponding exception branch in my bpm block.
    You should have included the Exception handler in the Exception Branch, Transformation Step.
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Dec 9, 2010 9:15 AM

  • ** To put Exceptional Branch in loop in BPM

    Hi friends,
    We have a scenario like SO, Delivery, Billing creation based on Purchase Order data. We designed this using BPM. Its working fine. We throw an alert whenever the error is happend in creating document.
    We put control step to throw alert in exceptional branch. So, when the BPM has error in particular step like SO / Delivery/ Invoice, we throw alert. Then the user correct the error and restart the BPM, it will work fine.
    But, after restart again the error is coming in same step, we want to throw alert. So, how do we set exceptional branch in loop ? ie. whenever restart the message, it should check whether any error is there again in the message, if it is there, it should throw alert again.
    Kindly tell me, friend. How do we set this in loop ?
    Kind Regards,
    Jeg P.

    can you be a bit clear
    " We put control step to throw alert in exceptional branch. So, when the BPM has error in particular step like SO / Delivery/ Invoice, we throw alert. Then the user correct the error and *restart the BPM, it will work fine.*
    But, after restart again the error is coming in same step, we want to throw alert. So, how do we set exceptional branch in loop ? ie. whenever restart the message, it should check whether any error is there again in the message, if it is there, it should throw alert again "
    your question has two contradicting statments.  can you be a clear in when you are receiving the error ? try using transactional behaviour .
    Edited by: Pramod Yadav on Jun 10, 2008 2:03 AM

  • BPM not entering exception branch

    Hi,
    In BPM I have a timeout problem. I am calling asynchronously a JDBC receiver inside my BPM. This step is in a block. And I put there an exception and an exception branch. Now when my jdbc failes (in RWB I see the error) my bpm still continues without entering exception branch. After that I set the Acknowledgment in the sender step of the JDBC to Transport. This time it starts to wait and again doesn't enters the exception branch.
    How can I get that the process enters the exception branch?
    Thanks.

    In the case of an 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.
    Your requirement is to catch an exception that may occur while sending to the DB from the Channel....and for this you have set Acknowledgement to Transport and used an Exception Branch.
    Now in the Block enclosing your Send Step you have to first put a Deadline Branch....this deadline Branch will wait for the entire retry interval of your Channel.....in this Deadline Branch you have to put a Control Step which will Throw Exception
    Now this exception will be caught by the Exception Branch....then in the Exception Branch have your Exception Handler.....this is how we design the BPM when we have to catch the exception from an Async Send step.
    Be it Deadline Branch or Wait step....the minimum time-interval is 1 min!
    Regards,
    Abhishek.

  • How can we handle Exception Branch in BPM effectively

    Hi,
    I want to capture errors occurred in PM during runtime by using special "Exception Branch".
    For example If i define exception branch for one black then any step within that block thrown error then automatically it calls that corresponding exception branch within that block. Now i want to identify which step within that block has thrown error and what is the error.How can i achieve this?
    Thanks and Regards,
    Sudhakara

    Hi Sudhakara,
    Generally we use control step to raise an exception, Please go through this link for better understanding:
    http://help.sap.com/saphelp_nw04/helpdata/en/bb/e1283f2bbad036e10000000a114084/content.htm
    Also,
    Exception Handling:
    http://help.sap.com/saphelp_nw04/helpdata/en/33/4a773f12f14a18e10000000a114084/content.htm
    I hope it helps,
    Thanks & Regards,
    Varun Joshi

  • BPM - Exception not thrown

    Hi ,
    I created a BPM in which I I have
    Receive Step -> Send Step -> Block Step ->
    Block Processing branch - Receive Step ->Send Step
    Block Dead Line Branch - Dead line of 1 minute and Control step for raising exception
    Block Exception handler branch - Control step for cancelling the process.
    My requirement is that, When I receive the first message and within 1 minute if I DO NOT receive the second message the process should be cancelled(Error in SXMB_MONI).
    Right now the process simply waits for ever for the second message and the process is never Cancelled.
    Any help is greatly appreciated.
    Regards,
    Nazim

    Nazim,
    Try this.
    - Click on the Block Step, in the Properties window give some exception name.
    - Now in the Deadline branch Keep Control Step.
    - Click on the Control Step , choose Action Throw Exception and choose the exception you gave for block step.
    - Remember don't use exception branch, Coz as per your requirement you want to fail the BPM, if you use exception branch then it means again you are catching that. Hence don't use exception branch.
    raj.

  • How to get details about Exception catched in Exception branch of the Block

    Hello Experts,
    Is it possible to get details about Exception catched in Exception branch of the Block in Integration Process (BPM)?
    In the Exception branch System Error is catched, but from time to time different type of System Errors are happening during sync call to WebService - Connection Timeout, Connection Refused, UnknownHost, etc.
    So the task is somehow to map the type of System Error to the response. I was trying to create a mapping using as source the message which is coming from the Adapter after the sync call, but the mapping is failing with "No Source Payload" error.
    Maybe the description is somewhere in Header or Dynamic configuration?
    Or it is possible to access it somehow with JAVA-maping?
    Thanks for your help!

    Hey,
          the message from the exception can be utilized by using alerts(in order to mail,sms r fax). but otherwise its not possible using mappings or container.
    check this link for alert configuration.
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step

  • Hi, exception branch of a block

    If I define a exception branch for a block such as DB error. Do I need to send DB error message to the Integration process to stop it when error occurs?
    I'm not sure about how the exception here works.
    Thanks, guys.

    Hey,
    I'm not sure about how the exception here works
    Nice thread on BPM exception handling..
    check this..
    Re: Exception Handling
    Thanks,
    Vijaya

  • BPM - Exception Banch not getting triggered

    Hi All,
    I have developed a simple BPM, where on Transformation error, it has to throw an Alert in Control Step using Exception handler. but it is not going into Exception branch on error in Transformation Step. My BPM is as follows.
    Step1
    Recieve
    Step2:
    Block with Exception Branch
    Transformation Step
    On Exception
    it has to enter into Exception Branch
    But it is not
    If anybody encountered similer problem, please clarify?
    Also the same scenario i can able to execute successfully in our local system but not in client system
    Is service pack level will be an issue. Because our local system is SP16 where as our client system has SP10.
    Regards
    Vijayanand

    hi,
    1. did you create an exception handler for the whole block?
    2. did you assing this exception to the transformation step
    3. did you assing the exception branch to this exception handler?
    if you did that remove it and create once more from scrach - save and activate and it will work
    Regards,
    Michal Krawczyk

  • Not handled by BPM exception

    Hi guys, I got a question that hopefully you experts can help me. I got a scenario and using BPM like this: HTTP --> XI --> SAP --> XI --> ORACLE Storedprocedure.
    For each XI communicating with 3rd party (HTTP, SAP, ORACLE) , i'm using synchronous call. For each those synchcronous call in BPM, i also already provide an exception branch. The problem is, when there is an exception occurs when calling the ORACLE storeprocedure (see error below), it doesn't go to my exception branch. Anybody know why?
    the Error is:
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'PROCSAPDSTMM030' (structure 'StatementName'): java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'PROCSAPDSTMM030' ORA-06550: line 1, column 7: PL/SQL: Statement ignored</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

    Hi Made,
    >>>The problem is, when there is an exception occurs when calling the ORACLE storeprocedure (see error below), it doesn't go to my exception branch.
    You should build a switch, where you decide by the content of the response, if you go on or jump into a exception branch. Just log a successful answer and a exception, they must have a general difference, may be search for "exception". This difference is to be pointed in X-Path of switch.
    Regards,
    Udo

  • BPM Exception handling for RFC errors

    Hi all
    I have to handle the exception which would be like below:
    com.sap.aii.af.ra.ms.api.DeliveryException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get a client from JCO.Pool: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
    I am trying to put Block step and things are not working fine. Can anyone please explain me the steps to trap the exception?
    My scenario has synchronous call to RFC FM.
    Rightnow i have inserted Exception branch in my Block step and put the send step to write the error file.  I have put the Synchronous SEND step as part of block. This is not working.
    Help please??

    Hello Samuel,
    Just to close this thread and finish up my own search, where I met your discussion, here I'm quoting two experts of this forum:
    "you cannot catch the exception's value in the XI "
    (see posting from Michal Krawczyk, Jun 12, 2006, in thread catch the exception)
    "The content of a fault message are not accessible inside a BPM."
    (see posting from Bhavesh Kantilal, Oct 3, 2007, in thread Notify user about Exception in BPM)
    Regards,
    Dennis

  • Step repeated in Exception branch requires exception handler, why?

    I have a BPM Integration process with a sync send step calling a RFC. Any system errors and application errors are handled by an exception branch where I send an alert as then re-do the send step (so that it will fail but allow me to restart from that point after fixing the issue). The problem I am having is that in this send step, since it is mandatory to have an exception handler for application errors (defined fault message RFC.Exception), what do I enter for exception handler in this send step which is itself in an exception branch? I do not want to handle the exception this second time since I want this step to fail and process stops here to be able to restart manually later.

    Hi,
    I am not sure, how you will restart the step manually? Because once there is an error in the sync send, the message will turn to "Cancelled" status. You cannot restart this message.
    Now, for the second send step in the exception block you will not be able to choose the same exception block in the exception handler field. But for some reason if this send also fails then you cannot restart the process manually - same reason i mentioned above. It will fail as you intended it to do so.
    Regards,
    Balaji.M

  • Which messages of soap call processes the block exception branch?

    Hi guys!
    I'm testing a scenario, where I use BPM, have a block, sync web service call inside and have exception branch, which sends original message to the dest system. I'm a little bit confused, cos' I'm not sure, which error messages does exception branch process. Is it only system error? Or is it also application error - means: fault message is returned..
    Thanx, Olian!

    ok, If I send 0 as parameter, I get exception:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <SOAP-ENV:Body>
          <SOAP-ENV:Fault>
             <faultcode>SOAP-ENV:Client</faultcode>
             <faultstring>Division by zero</faultstring>
             <detail>
                <ns1:div_test.CalcException xmlns:ns1="urn:CalculatorWsd/CalculatorVi" xmlns:pns="urn:test">
                   <pns:message>Division by zero</pns:message>
                </ns1:div_test.CalcException>
             </detail>
          </SOAP-ENV:Fault>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    But When I send one string parameter, I get
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <SOAP-ENV:Body>
          <SOAP-ENV:Fault>
             <faultcode>SOAP-ENV:Client</faultcode>
             <faultstring>Deserializing fails. Nested message: XML Deserialization Error. Can not create instance of [java.lang.Integer] with parameter [ee]..</faultstring>
             <detail>
                <ns1:com.sap.engine.services.webservices.additions.soaphttp.exceptions.ProcessException xmlns:ns1="http://sap-j2ee-engine/error">Deserializing fails. Nested message: XML Deserialization Error. Can not create instance of [java.lang.Integer] with parameter [ee]..</ns1:com.sap.engine.services.webservices.additions.soaphttp.exceptions.ProcessException>
             </detail>
          </SOAP-ENV:Fault>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    So, these are two possible exceptions...  How to get them? Both are two different message types
    OR: hot to get detail text to send it to receiver? What steps need to be in the exception branch?
    O.
    Olian.

  • CcBPM Steps in exception branch not executed

    Hi,
    I have different blocks with transformations and sending steps in a integration process. Each block has a defined exception branch to handle its corresponding exception type.
    However, when a mapping or receiver/interface determination error occurs, none of the steps (throw alert and send asynchr. message to logging) defined in the exception branch are executed... I can see from the pe monitoring that the process jumps into the exception branch but the steps are not being executed.
    What could be the reason behind this situation?
    Many thanks,
    Roberto
    PS: Alerts has been properly defined and we are receiving alerts from other events aoutside this integration process.

    Hi,
    just to check - modify your BPM process and in the exception branch have to control step to generate alert as the first step.........moreover send a fixed msg as an alert and see if your alert is getting generated.........moreover in your alert category for bpm, you should check the Dynamic text option to dynamically send alert msg from bpm..........
    then re-run your scenario and from PE monitoring see if your exception branch was called and your alert generated..........if your alert got generated now, then either the container operation is having some issue or the alert step is having some issue.
    Regards,
    Rajeev Gupta

Maybe you are looking for

  • Help with exporting images

    HI I have recently shot a wedding with two bodies.  Forgot to sync the bodies before hand and so left with images at massively different times.  in lightroom i then changed to view by capture time and amended all the wrongly timed images.  i am then

  • My iMac won't accept discs of any kind

    I don't know when this started but for the last couple months my iMac has stopped accepting discs. I used to watch movies and burn cds all the time and somehow it just stopped working. Any tips or help on what may be the problem would be greatly appr

  • HT1338 wont read mac os x snow leopard dvd

    I ordered snow leopard for my Mac and it wont read it

  • Cannot sync iphotos or itunes with new iphone

    I have just purchased a new iphone, which I have synced with my MacBook Pro using itunes. I have also authorised the computer from the 'Store' drop down menu. After connecting the iphone with the provided usb and dock I have successfully synced all m

  • Hotmail connection error

    I have had my hotmail email set up forever on on iPad. Today, I started getting a message saying that it cannot connect to server. I have deleted the email, reset iPad and added again and it still won't work. Suggestions?