Error Handling in BPM - Send Step

Hello,
I would like to implement the following two error handlers using BPM:
1. There is a send step which sends a message to an HTTP receiver. If the HTTP server is down I would like to add 3 retries and just in case after the third retry fails there should be an error Email sent. So I am wondering whether a communication error (which happens in the HTTP receiver communication channel) is delivered back to the process engine so that it can be handled using BPM.
2. I also need to apply a validation using XML schema. So if validation fails the error should also be returned to the process engine so that it can be handled in the integration process.
Are those two requirement possible as described (returning communication and validation errors)? Or do I have to follow another approach?
Thank you very much!

Hi Florian,
>>2. When I activate transport acknowledgement and there is an error in XML validation outbound channel request I get an system error acknowledgement back however the error branch is NOT taken either!
Correct send step using transport acknowledgment will check whether the message was transmitted or not
Check this link http://help.sap.com/saphelp_nw04s/helpdata/EN/43/65ce41ae343e2be10000000a1553f6/content.htm
>>3. And NOW it gets interesting: When I simulate step 2 again an cancel the error message afterwards then the error branch is taken! Not very useful in my opinion if error messages have to be canceled first. The error branch seems to be pretty useless for me in case of asynchronous send steps.
Again when you cancelled the message it was not received successfully by the receiver system and hence it raised exception (as mentioned in the Exception of send step.)
I will suggest you to try using Application Acknowledgment in send step. Also If you provide the steps of BPM then it will be more helpful.
Also have a look at this :
Asynchronous send step can raise exception only when
1. Thrown when a permanent system error occurs:
a. 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.
b . In the case of a synchronous send step, the exception is also triggered by permanent system errors that occur in the pipeline or while transporting the message to or from the pipeline.
Regards
Suraj
Edited by: S.R.Suraj on Sep 8, 2009 6:41 AM

Similar Messages

  • BPM SEND Steps

    HI,
    Can anyone tell Maximum number of BPM SEND steps we can have?
    Regards;
    Akshay.

    Hi Ram,
        Ok do one thing create a container variable. Dont use this container variable in any steps. now pt a condition at the point whr u want to check whehter the container variable in which u r receiveing the msg is not equal to this newly created container variable. If the condition is satisfed, u hv receive the msg i.e. ur container variable is not empty.
    Regards,
    Akshay
    Message was edited by:
            Akshay Salunke

  • 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 get detail info of application acknowledgement in BPM send step

    Hello
    in BPM we will send an async message to SAP backend system, we need to know if the message is successfully process or not, if not, we need to get the detail info which is returned in the acknowledgement message.
    As you know in PI monitor, you can open the acknowledgement message and you can see the error texts that are sent by the SAP backend system to PI in the acknowledgement message. However seems like there is no standard way in PI BPM to get the error texts inside the acknowledgement. In the send step you can only specify that application ACK is required, if negative ACK comes in, an exception is raised and you can handle the exception in the exception branch. However there is nowhere to capture the acknowledgement message to get the detail error texts.
    Anyone has good idea to get the error texts from the application acknowledgment message inside BPM/
    Thanks

    we need to know if the message is successfully process or not, if not, we need to get the detail info which is returned in
    the acknowledgement message
    One way to have the above requirement done is make the process synchronous (if RFC/ Proxy). The response message should contain the state of processing of the message inside SAP....now in the BPM make a check on the response message to see if it is a success or failure....you can apply logic like is success terminate the BPM without any alert.....if failure raise an alert/ send a mail.
    Regards,
    Abhishek.

  • Retries in BPM Send Step

    Hello,
    I wouild like to send a message using the send step in BPM to an http receiver. Requirement is, if the http server is not reachable there should be 3 retries and afterwards an error should be thrown.
    How would I do this? Do I need three error handler branches, where each of those has the same send step? And then apply a 4th error handler which then terminates the process? I think there should be a simpler solution.
    What do you think?

    For http receiver, you will finally receive error message in sxmb_moni (not RWB). If you have standard retry configuration in sxmb_moni, then same would be applied in this case also.
    Regards,
    Prateek

  • Alerts and Error handling in BPM Async/Sync Bridge

    Hello All,
    I am developing an Async/Sync Bridge in BPM for sending a request from ECC webservice asychronously to a front end application synchronously using BPM Async/Sync Bridge. I get a response from the front end to PI and stays there.
    It wont be send back to ECC. What are the possibilities of error handling required in this type of scenario.
    Thanks
    Deno

    . I get a response from the front end to PI and stays there.
    Then it should mean that the BPM design is faulty...did you have a send step at the end which closes the Async-Sync Bridge by sending the message to original sender?
    In SXMB_MONI --> For BPM message processing there will be a link called PE...click it...check the graphic workflow...see till where the message has processed.
    error handling
    include your Sync send step whithin a Block....this block will have an Exception Branch....in this exception branch you can have your Exception handling logic...like raise alert, cancel process etc.
    Regards,
    Abhishek.

  • BPM send step not executed in BPM (after Message split)

    Hello everybody,
    we use BPM:
    We have a paralell Block which should send the rows of a multiline element. In SXMB_BPE_MONI the send step is not executed?
    Any idea?
    Thanks  lot, regards Mario

    HI,
    Go to SXMB_MONI_BPE->and check the workflow log (technical details).and go to SXI_CACHE and check the return code of the Integration Process. It should be zero. If not try to activate the same
    If there is no error then go with like this-
    Also check the Syntax in Integration Repository with F7. Change the IP and activate it. If there is no syntax errors.
    Then reimport the IP into Directory and then test your scenario
    Regards,
    Moorthy

  • ** Use of 3 values in 'Receiver From' property of the BPM send step

    Hi Friends,
    Still I am not clear the exact use of 'Receiver From' property of the Send step in BPM. This property is having 3 possible values: 'Send Context', 'Receivers List', & 'Response to Message'.
    What's the purpose of each value ? In what situations, which value we have to use.
    Kindly clarify friends.
    Kind Regards,
    Jeg P.

    Hi,
    In Send step, The message receiver can be a business system or another integration process.
    To handle Receiver Determination in BPM you need these options.
    Send Context -
    Send Context will be used by Receiver determination, if you will give it in Send step then accordingly receveir deteermination will process. Here the Message will go to fixed receiver
    Response to message -- While dealing with Sync/async bridge you can use this option to give the Switch or Transformation step to for further response.
    Receivers List -- For Runtime Receiver Determination you have to go for Receiver Lists. It will relied on the
    design of the Integration process.
    For e.g you can refer to the Conditional Receiever Determination.
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/frameset.htm
    Thanks
    Swarup

  • BPM SEND step with Acknowledgemnt.Process logic depends on Application Ack.

    Hi,
    I am designing one BPM process in which I want to send IDOC to R/3.This IDOC will be processed by the R/3 system using process code.
    Now I have sent this IDOC to R/3 through send step with application acknowledgment and only if acknowledgment comes then only next processing logic of the BPM process should be executed.
    How should I design SEND step because the communication is asynchronous but I want the processing depending on acknowledgement only?
         Please guide me.

    Hi,
    Take a look at this doc,
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f6d2d790-0201-0010-9382-b50b499b3fbe">How to handle Idoc Acks'</a>
    Regards,
    Bhavesh

  • BPM: Send step bypassed at run time

    Hi,
    In BPM, there is a send step after a transformation step in a block.
    In the corresponding interface mapping for the transformation step, the name of the .xsl mapping name is incorrect in spelling.
    Now due to this a strange situation is happening.
    When I looked into the trace, the system is searching for the xsl mapping. But fails to find it.
    Still, the BPM proceeds without an error, bypassing all the other steps of the current block including the send step, and goes to the next step after the block. And the BPM is completed.
    Can anyone please explain this behaviour?
    Thanks,
    John

    HI,
    Please can you give the details about your Integration process. (Which steps you had used)
    Thanks
    Swarup

  • Error handling using BPM

    hi all
           I would like to do an error handling scenario using BPM in XI. As i haven't done it before, can somebody give me links to good blogs and materials in this regards.
    Thanks
    Sumayya

    HI,
    Check the below links
    monitoring BPm https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e7bc3a5a-0501-0010-1095-eb47159e169c
    Reconciliation of Messages in BPM - /people/krishna.moorthyp/blog/2006/04/08/reconciliation-of-messages-in-bpm
    Also see the below BPM related links
    check list for BPM https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bf550d4-0201-0010-b2ae-8569d193124e
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/62/dcef46dae42142911c8f14ca7a7c39/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/de/766840bf0cbf49e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cb/15163ff8519a06e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
    Many other examples can be found under the following link at help.sap.com
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    And some weblogs
    https://weblogs.sdn.sap.com/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/siva.maranani/blog/2005/05/22/schedule-your-bpm *****
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
    /people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    /people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
    /people/michal.krawczyk2/blog/2005/09/04/xi-do-you-realy-enjoy-clicking-and-waiting-while-tracing-bpm-steps *****
    /people/udo.martens/blog/2005/09/30/one-logical-system-name-for-serveral-bpm-acknowledgements *****
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    /people/kannan.kailas/blog/2005/12/07/posting-multiple-idocs-with-acknowledgement
    Also have a look at these seminars,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/daea5871-0701-0010-12aa-c3a0c6d54e02
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/e8515171-0701-0010-be98-e37bec4706cc
    Regards
    Chilla

  • BPM Send Step with acknowledgment: ID: sender agreement?

    Hello everybody,
    I have a send step in BPM and I expect a acknowledgement from the receiver.
    Do I have to configure a sender agreement?
    Thanks a lot
    Regards Mario

    mario,
    I have tried to use a Sen Synchronous Step to a JDBC adapter from a BPM and it works fine.
    <i>After changing the send step in BPM from async to sync with acknowledgement, I get not response message</i>.
    When you select MODE as SEND SYNCHRONOUS in your Send Step, there is no option to Select ACKNOWLEDGEMENT.
    When you select the MODE as SEND ASYNCHRNOUS , you can have acknowledgements.
    But, as you are using a RECEIVER  JDBC adapter , you need to have a SEND SYNCHRNOUS step that will get the response back from the JDBC adapter. This response will double up as Acknowledgemet.
    You can surround this Send Synchrnous Step with an Exceptuion Handler to handle any exception that might occur.
    Regards,
    Bhavesh

  • Getting Dynamic Error Text for Error Handling in BPM

    Hello,
    is there any way to get the error message or further details on an exception handler in BPM? I would like to pass the detailed error description of the error that has happened in BPM to an alert using a separate Alert container variable.
    Is this possible or do I need to hardcode potential errors?

    Hi Florian,
       Check Michal's reply in : catch the exception
    and Bhavesh's reply in Notify user about Exception in BPM
    Regards,
    ravi

  • BPM Send step and acknowledge application.

    Hi All,
    with this url
    http://help.sap.com/saphelp_nw70/helpdata/EN/43/65ce41ae343e2be10000000a1553f6/frameset.htm
    I understand that we can define application for acknowledgment from SEND Step in BPM. and this acknowledge will can let me know document as I sent to R3 that posting success or not. But when I try configure with this param. I see only waiting acknowledgement in SXMB_MONI. So how I can to configure this param. Do I have to config someting on R3 side or not?
    Thanks and Regards
    Park

    Ricardo,
    You would not believe me but I had the same requirement a year back.
    Infact I ended up posting a thread on this on the XI forum,
    Idoc Acknowledgements and Idoc Packaging
    Answering your question in 2 phases,
    1. R3 can send the AleAduit back to XI immediately. In the inbound processing code, all the R3 team would need to do is add the code to trigger the RBDSTATE report to trigger AleAudit to XI.
    2. The problem with Correlation - Well, in your case as you are using Idoc Packaging , the solution 1 in my earlier thread would not do the trick. If you look in IDX5 in XI you will see that the Idoc Packaging trigger multiple Idoc's from XI itself but again the problem is the correlation and for this there is no straight forward solution than having some custom field in the Idoc and in the corresponding response.
    But yeah overall your analysis was perfect. Idoc's are used for Asynch Communications and hence trying to achieve what we are acheiving is not always and necessarily the best solution. Proxies help in these cases, and if proxies are not possible then I guess RFC is the way to go.
    Regards
    Bhavesh

  • BPM: Send step with acknowledgment - Application

    Hi folks,
    I’ve a simple BPM with receiver(sender file)->mapping->send(IDoc receiver). The Send step is configured with the option Acknowledge type -> Application. The scenario runs well, the IDoc is successfully processed, but my BPM remains waiting with the clock icon!!! Going to sxi_monitor, in the PE details is a step waiting for an event from R/3 with the message “Waiting for an event SEND_OK_APPLICATION type CL_SWF_XI_MESSAGE. It seams waiting for an event that R/3 didn’t send… Did I miss some steps at R/3?
    The idea is to receive an ack after my IDoc is successfully processed at R/3, in order to finish the BPM.
    Regarding Acknowledgment type -> Application, the sap help says:
    Wait for Acknowledgement
    Specify whether the send step is to wait for an acknowledgement. To receive an acknowledgement in the send step, the receiver (adapter, business system, and so on) must send the corresponding acknowledgment.
    Application - Specifies that the message was processed successfully by the receiver application (for example, ‘posted’).
    I guess it should works, but maybe I'm missing something. Anyone knows how to work with this kind of ack at ccBPM?
    Thanks in advance,
    Ricardo.
    Edited by: Ricardo  Quintino on Jan 21, 2008 4:33 PM

    Ricardo,
    You would not believe me but I had the same requirement a year back.
    Infact I ended up posting a thread on this on the XI forum,
    Idoc Acknowledgements and Idoc Packaging
    Answering your question in 2 phases,
    1. R3 can send the AleAduit back to XI immediately. In the inbound processing code, all the R3 team would need to do is add the code to trigger the RBDSTATE report to trigger AleAudit to XI.
    2. The problem with Correlation - Well, in your case as you are using Idoc Packaging , the solution 1 in my earlier thread would not do the trick. If you look in IDX5 in XI you will see that the Idoc Packaging trigger multiple Idoc's from XI itself but again the problem is the correlation and for this there is no straight forward solution than having some custom field in the Idoc and in the corresponding response.
    But yeah overall your analysis was perfect. Idoc's are used for Asynch Communications and hence trying to achieve what we are acheiving is not always and necessarily the best solution. Proxies help in these cases, and if proxies are not possible then I guess RFC is the way to go.
    Regards
    Bhavesh

Maybe you are looking for

  • What to do if it is telling me I have "Insufficient Permissions?"

    Well I've been having several problems. First is when I go to install it I get a screen saying that the file "C:\Windows\System\32\Macroomed\Flash\NPSWF32.dll:5" could not be written due to insufficient permissions. I have no idea how to fix this or

  • Firefox isnt saving my info for registered sites like my bank so i have to keep answering the security questions

    everytime I enter my banking site I have to answer the security questions to register my computer. it used to save the info so I didnt have to do that each time I log in but now it doesnt and its really annoying to keep doing each time

  • Time Stamps on E-mail

    When I look at my e-mail before opening it, the part you see on the list shows the correct time on the e-mail. But when I open the e-mail, the time stamp in it shows an hour earlier. What accounts for the descrepancy? And how do I fix it? (I recently

  • Error 1904, error 46

    Well, I haven't had quicktime for a while now. After trying to upgrade to 7 all I've had is problems. I previously used quicktime 7 beta or whatever apple called it, and that worked fine. Until iTunes 5 came along. On installation of quicktime 7.0.3x

  • What is OBIEE?

    Hi, I have a background in using Hyperion products, from Essbase to Planning to Shared Services, etc... I'm trying to learn about OBIEE and started googling and did not find the exact answers I was looking for. What exactly is OBIEE? How is it differ