BPM Exception Handling control step

Hi,
Does anybody have any idea, whats the variable we need to pass in the control step of exception handling  in BPM? and how to map the error message back to the RFC Response.
I had Transformation step, in that mapping is also there.
Is there any ideas??.
Thanks,
Raj.

Hi,
The requirement was to send the exception that occured to a target (say file).
<i>insert a block for the exception</i>
You cannot place an exception step without a block right... thats what i mean by the above statement.
Now, just after the exception has taken place, if i put a transformation step, and a send step, you will be taking care of sending the exception message to the target.
<i>how to build the exception message ? It should map from what?</i>
You could build a data type for the exception.
In the mapping, you could map it to constants. For ex:
if you build your DT as
<excep>
<code/>
<desc/>
</excep>
You could map the description to a constant string "timeout".
After this, the send step will send the message to the file, through the abstract interface that you create.
Regards,
Smitha.

Similar Messages

  • BPM - Exception handling in multiline mapping

    Hi,
    I have in a BPM a block with processing mode ParForEach containing a transformation and then a send step.
    If the transformation (mapping) generates an exception for one of the lines of the multiline variable being processed, no subsequent lines are passed to the send step.
    I want the process to execute the mapping for each line and then send messages corresponding to lines without error. How can I do?
    Thank you
    Simona

    Hi Simona,
    I also feel that Michal had suggested the correct solution. Not sure why you are saying that the error gets propagated, if you have defined a proper Exception handling for the inner block.
    But regarding your design for "ParForEach", I am not sure whether you really need to carry out a transformation step for each Block instance, in which case you can keep the transformation step before the "ParForEach" block.
    Rgds
    R Chandrasekhar (RC)

  • BPM Exception Handling

    I am trying to test my Deadline and Exception handling.But it is not at all working. I will explain what I have done, please guide me where I am going wrong.
    1) Block Step. Properties --- Exception == ERROR1
    2)Switch Step . Success Branch . Send Step. with a Transport Response. And I am sending to the Mail adapter. And in directory I have provided the WRONG URL FOR THIS Mail.
          Otherwsie Branch. Send step, sending to a File.
    3)Dead Lock Branch : Having a Control Step.
                  Properties
                   Action : Throw Exception
                   Exception: ERROR1
    4) Exception Branch.
               Properties
                    Exception Handler : ERROR1
          Send Step : Send a Message to  a File (
    Result
    I am Seeing a Clock in my SXMB_MONI OUTBOUND_Status column, because I am expecting a TRANSPOT Response, and this going to never happen, so I thought the Deadline monitor will wakeup after 1 minute interval and my Exception branch has to Trigger, but it has never triggered my Deadline branch aswell as my Exception Branch.
    WE are in XI SP 12.  We dont have CCMS installed yet, even ALERT management is not installed.
    Please guide me.
    Thanks.

    Hi Anand,
    I looked into the Transaction SWI2_DEAD and I dont see any listings there.
    I am executing 1 Minute deadline Monitoring and from here firing an exception Branch, for my Asynchronous Scenario.
    So definitely after a minute , the DeadLine Branch should have been fired. But it didnot take place.
    In the mean time I have located an OSS notes OSS note 829921 And I am awaiting my Basis team to apply this note.
    symptom
    If the execution of an asynchronous method ends with a "system error" or "application error", the work item is not set to the 'ERROR' status.
    Other terms
    Reason and Prerequisites
    This problem is caused by a program error.
    Solution
    Implement the correction instructions.
    Note the following manual changes that must be implemented BEFORE you use SNOTE to implement the corrections:
    1. Make sure that the SET_EXECUTION_INTERRUPTED method of the CL_SWF_RUN_RESULT class has the following parameters:
    a) IM_CODE, Importing, Optional, Type SWO_RETURN, default Value 0000
    b) IM_ERRORTYPE, Importing, Optional, Type SWO_ERRTYP, Default Value 0
    Note the following manual changes, which you must carry out AFTER you have implemented the corrections:
    1. The M_EXECUTION_INTERRUPTED attribute type of the CL_SWF_RUN_RESULT class must be changed to EXECUTION_INTERRUPTED.

  • 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

  • Control step for exception in BPM

    Hi
    i am tring to learn exception in BPM.
    i inserted this Send step (Synchronous) in exception branch in block. and then inserted control step in exception branch.
    i created Errorsend as abbreviation on exception in block.
    and assigned this to system error under exceptions in send step. and then defined on Exception handler,
    and now <b>i could not define anything</b> on exception in control step for action as Throw Exception, i am not looking at Throw alert.
    i made receiver jdbc error and also mapping error in intentionally. when i see sxmb_moni, i can see jdbc error as normal process like not using exception branch.
    i would like to complete exception branch and control step for finishing touches.
    thanks
    venjamin

    hi,
    send step is for synch and jdbc,,,
    abaproxy to jdbc (sync)
    i made receiver jdbc error intentionaly. can i send back exception log to sender system program or send email to someone?
    when have you been using this function in bpm? if i am not right way.
    thanks
    venjamin

  • Add 2 container variables in control step BPM

    Hi All,
    I have a scenario where I need to add 2 container variables in control step under AlertMessage and I am using under exception branch
    Control Step
    StepName: XXXX
    Action      : XXXX
    AlertCategory: XXXX
    AlertMessage: ?
    I am successful putting one container variable in alert message with &AAAA& but I want to add another variable values &BBBB& as well.
    When I tried to keep variables as &AAAA& and &BBBB&..I can return code 99 in sxi_cache.
    How can I achieve this with BPM..I am using sap pi 7.0

    may be i need to explain more clearly..
    I have 2 container variables with simple type which holds 2 different payload values.
    Under exception branch I have a control step to throw alert. In this I need to pass alert messages with these 2 varaibles.
    As I said earlier I am able to pass successfully one container variable value but when I insert the second variable it is not picking up and when I check sxi_cache the IP return was 99 which means some error occured while assiging these values.( I tried in different ways)
    But when I inserted has &AAAA& and &BBBB& then reuton code was 0 but whn I run scenario it is not populating both values
    Can anyone please help me how I can populate 2 variable values in alert message under control step.

  • Trigger an exception in BPM ( Control Step )

    Hi everyone,
    I have a BPM which has a switch with three branch, one of them has a transformation to generate a mail structure and a sender to send the email, now I need throw an exception after send the email, I have think use a control step to do it, but I don't know how use the control step to throw an exception.
    Could someone please help me?
    Thanks, in advance.

    Jose,
    Please refer to the following url
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Also refer to the example scenarios in the Design: Integration Builder.  For example
    <b>Software component</b> SAP BASIS
    <b>Software component version</b> SAP BASIS 6.40
    <b>Namespace</b> http://sap.com/xi/XI/System/Patterns
    <b>Integration Scenarios and Integration Processes</b>
    <b>Integration Processes</b> BpmPatternReqRespTimeOut
    Regards,
    Mike

  • Timeout in control step(raise exception) of BPM

    All,
    Does timeout in the above control step means
    > The typical inactive timeout i.e. while using collecttime pattern, if IDOCS keep coming, the process is going to be active until the point there are no more IDOCs coming and then the exception time window starts kicking in (inactive)
    OR
    > No matter what, the system simply shuts of the inbound channel when the time expires i.e. even if IDOCS are continously flowing and a timeout=1 min is set, the BPM instance will unceremoniously shutdown the instance?
    If #2 is true, I am sure this is load dependent (a 1 min timeout my as well become 2-3 mins correct??)
    Thanks - this is not very clear anywhere
    m

    Im supposing here your scenario is multiple IDOCs to 1 receiver, is that so? For example, n IDOCs to file.
    So, suppose you define, in BPM, the max number of loops (as per CollectPattern example) and also you define a deadline in surrounding Block step. After the block, you have relevant steps (for example, transformation step to execute mapping to file expected structure; and async send step, to send the message to file receiver).
    While an instance is running, it will be receiving IDOCs which satisfy the correlation you set in BPM. As soon as max number or deadline is reached, the IDOCs in that instance will be mapped into a file and that file will be sent to receiver system.
    Whenever new IDOCs arrive, they will be gathered in another BPM instance, and hence they will be sent in another file to receiver system.
    Hope I made myself clear this time.
    Regards,
    Henrique.

  • Use a control step in BPM

    hi all
    Is it necessary to use a control step in BPM while using exception handling.
    If yes then is it to be used in the exception branch?

    >>is it necessary to use a control step in BPM while using exception handling.
    No..
    You can use control step only if you want to
    ·        Terminate the current process
    ·        Trigger an exception
    ·        Trigger an alert for Alert Management
    http://help.sap.com/saphelp_nw04/helpdata/en/bb/e1283f2bbad036e10000000a114084/content.htm

  • Wait Step, Exception Handling, Alerts

    Hi Everybody,
                 I am implementing a BPM scenario. I have a few questions:
    1) The wait step i am using in BPm, allows me the min wait time as 1 min, can't I have lesser wait time then that. Lets say 30 secs.
    2) Under what conditions should I use exception handling and when should i use alerts.
    Regards,
    Ashish

    Dear Ashish,
    1) In BPM  the 60 secs is the minimum  possible  one till now.
    2) Exceptions :
       Assume when the condition happend to  divide  by  ZERO we have to go for exceptions it to control the break of the conditions and getting the system into HANG.
    3) Alerts :
      We  use Alerts  When any error  message happen to  flow , Particularly  for Support  team information, If  they  check the mail or Alert  messages they  will come to know  where or exactly  which interface  is throwing or flowing  the error  messages.
    Regards
    Agasthuri Doss

  • Problem with the control step in a BPM

    Hi All
    My BPM is :
    There is a block , the first step is a Receive,  the second is a  Send(synchronus) step after there is a switch step. Depending on the result of Send step the switch step  goes to an other send step or it goes to a control step and  throws Exception .
    Checking the  BPM  a warning message occurs  , it says "Exception APError will not be caugnt" as APError is the exception defined in the Block .
    Running the BPM , the control step does not work
    Does anyone has an idea what is the problem ?
    Thanks
    Antonis

    Just defining the exception in the block step is not enough.
    You also have to "catch" it in an exception branch.
    That message usually occurs when the Block does not have any Exception Branch associated to that exception.
    Make sure you have at least one exception branch in your block step and that it is associated to the APError exception.
    Regards,
    Henrique.

  • Exception Handling Problem In BPM

    All
    I am facing an exception handling problem I am using BPM and , I have caught exception in the transformation step but when there is any data problem in that mapping(mentioned in the transformation)
    it is not throwing the exception . is there any option to collect these type of system exception in  the bpm and give a alert thru mail
    is there any way to collect these type of exception happened in the BPE and raise alert thru generic alert
    Thanks
    Jayaraman

    Hi Jayaraman,
        When you say there is any data problem, does that fail the message mapping that you have defined?
    If the message mapping used in the tranformation fails, it should raise an exception in the BPM.
    Did you test the message mapping using the payload and see if it really fails or not?
    Regards,
    Ravi Kanth Talagana

  • Exception handling of Transport acknowledgement in asynchronous send in BPM

    HI,
    A silly question, but your help would be greatly appreciated..
    - I have a asynch send step in a BPM for sending data to the target system through RFC
    - It has acknoweledgement property of this send step is set to transport acknowledgement
    - The exception property of this send step is set to throw a 'RFCException'
    - This send step is inside a block
    - This block also has an Exception branch which catches this 'RFCException'
    - now my RFC channel failed for some known reason, but the flow never went into the Exception branch
    IS this behaviour of the 'transport acknowledgement' property of an asynch send step in BPM expected ?
    What should I take care so that if my RFC receiver channel throws an exception, the flow of my BPM goes to the exception branch ??

    - now my RFC channel failed for some known reason, but the flow never went into the Exception branch
    IS this behaviour of the 'transport acknowledgement' property of an asynch send step in BPM expected ?
    What should I take care so that if my RFC receiver channel throws an exception, the flow of my BPM goes to the exception
    branch ??
    When an exception is caught by the Transport Acknowledgement it will trigger the Exception branch (if the send step is defined inside a Block with an Exception Branch)
    I think you have not defined (and then assigned) a proper Exception Handler for the Block.
    Click on the Block and define an Exception Handler......click on the Exception Branch and then select the Exception Handler from the dropdown......if this is not done then the Exception Branch wont be executed.....perform a check on your BPM in IR (using F7) you may get some warnings.
    Regards,
    Abhishek.

  • 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

  • Alerts in Control Step for BPM

    Hi.
    Is it possible for me to use the Control Step in a BPM to trigger a indication of a error in sxmb_moni?
    Fo example. My BPM handels a message that fails in a mapping. In the exception bransch I have a control step thattrigegrs an alert. Will this alert show up in sxmb_moni?
    If so is there anybody out there who has a blog or guide on how to setup that configuration?
    BR
    Kalle

    Is it possible for me to use the Control Step in a BPM to trigger a indication of a error in sxmb_moni?
    yes
    In transaction ALTCATDEF create an alert category and do not forget to check the Dynamic Text checkbox......then go to RWB ---> Alert Configuration and creat an alert rule for Integration Engine ....this willl give you all the alerts that happen in Integration Engine or in your SXMB_MONI
    Regards,
    Abhishek.

Maybe you are looking for