** 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

Similar Messages

  • 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

  • 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.

  • 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.

  • Exception handling branch not executing in BPM

    Hi all,
    We have a problem with exception handling in BPMs.
    We have created an exception branch in a block and a transformation step in it.  However, the branch doesn't get executed in case of exceptions.
    Any ideas?  Is this a known problem?
    Many thanks,
    Aldo

    Hi VJ,
    The exception name can only be selected from a list.  There is no chance of mistaking/misspelling in there.
    That is fine as it is.  I am quite sure about it.
    Any other ideas?
    I found SAP note 1039330 but we are already on patch 12 and that correction was released on patch 12.
    Thanks, regards,
    Aldo

  • 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

  • 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

  • Exception branch in a block without cancelling the process

    Hi all.
    I have an integration process with a Block where I process a multiline message interface. Inside the block, exception branch for controlling errors is used. When exception is thrown, the process of the pendant elements in the block is canceled. Is any way possible so that the pendant messages in the block can be processed after the error?
    Thanks,
    Gari.

    Hi Gari,
    yes, put 2 blocks in boxes. Outside block is multiline (looping) inside block is processing a single message using the exception branch. Dont stop the process at exception.
    Regards,
    Udo
    Message was edited by:
            Udo Martens

  • 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

  • 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

  • Exit loop in BPM?

    Based on sap's documentation, loop in bpm works as While, Can anybody explain how to exit a loop in bpm similar to break statement in While loop? Is cancel the right step to use? will it cause potential issues then terminte the bpm normally(Stop)?
    Thanks,

    Hi,
    The "cancel process" option of the control step abruptly terminates the entire process and sets the status to "logically deleted" as per the documentation. Moorthy - if you have found a way to limit the scope of the control step to a block please advise - it does not work for me nor to I see any option for it (I am on SP16 so maybe it is in later SP).
    Anyway - when a bpm completes normally the status is set to "completed".
    I would suggest that the use of the "cancel process" in a control step is an extreme reaction to a catastrophic failure in your BPM that is unrecoverable. Not the situation that you have. Surely you can make use of local variables, switch statements and loop control to define the proper logical path through your BPM without resorting to canceling the process.
    Anyway - the short answer to your original question is this - There is nothing similar to a break statement in a loop control. Cancel process (or cancel step) is not the right way to terminate a loop or step in normal behaviour. It will most likely NOT cause any problems and it WILL terminate the BPM.

  • Multiple exception branches in a single block?

    whats the use of making multiple exception branches in a single block inside BPM

    hi all, thanks but pls clarify
    if i have a block , i can define one exception(in the blocks attributes),  and then how can i select multiple exceptions for each of my exception branches...
    case: suppose block1 has exception as  myError,
    it has two exception branches, if i select myError for one branch, i cant select anything for the second exception branch....(the drop down list doesnt show anything)
    null

Maybe you are looking for

  • Account Balance print form

    Hello all, I'm working on a print layout design for the Account Balance document. The problem is that I want to display the Remarks entered in the reference document for each row. I can get the remarks display for one type of  the reference documents

  • Power PC G4 running OS 10.5.8 no longer sync with iPad iOS7, what's up?

    Power PC G4 running OS 10.5.8 no longer sync with iPad iOS7, what's up?

  • Multiple records from PL/SQL

    Hi, Can anybody give me an example of returning multiple records selected from PL/SQL procedure to a Java program . It will be very good if i can get PL/SQL procedure code and Java program code. Thanx.

  • Local connection multiple instance

    Hi, I have used local connection between an action script 3 and action script 2 file which is working correctly. But when we open application in multiple tabs of browser it shows error that the "file is already connected". Is there any way to open th

  • Address book sync question using Mobile Me

    I sync my address book using Mobile Me. However, I have several different groups in my book, and only want to sync one group. I can't figure out how to do that. Right now it is syncing all my contacts. Any suggestions!? Message was edited by: KevShoo