Reprocess BPM's

Hi everyone:
I wanna reprocess workflows in XI(BPM) when they have failed.
I wanna do it from the step which failed.
I know there is a transaction swf_xi_swpr to do it.
Is this transaction usefull?
Can somebody explain me how does it work? and how to use it?
thanks

hi Álvaro,
have a look at this weblog:
XI : How to Re-Process failed XI Messages Automatically
/people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically
this is what you're looking for
Regards,
michal
XI / PI FAQ - Frequently Asked Questions

Similar Messages

  • Cancel or Reprocess BPM message with error on outbound state

    I have a BPM scenario, IDOC comes from R3 and triggers a BPM. The BPM has a fork step which sends the message across 4 branches. Each branch has its own steps. Now, the problem is the IDOC has come and has trigerred the BPM but has errored on outbound side. The first step in each branch is a mapping step and the BPM has failed at this due to Jco communication failure. This has been fixed now. Now I need to reprocess this message, but can not restart as it shows succes message in inbound side.
    I have to re process this message, but how?
    Regards,
    Jaishankar

    Jai,
    I dont know whether it is the correct appraoch.
    Have a look at the transaction SWWERRE_DEBUG
    Regards,
    Sudharshan N A

  • Reprocess a message in BPM

    Hi,
    In my scenario I have configured a BPM where in, if message does not get processed for 25 mins then I have used a control step in the block to trigger alert.
    I have noticed that the message crossed the deadline time and triggered the alert.
    But the problem is I cannot reprocess that messages as SXI_MONITOR shows chequered flag without any errors.
    For your information both message status and outbound status is chequered flag. Also there are no errors shown in the workflow.
    Can anybody help me to reprocess such a message?
    Regards,
    Suraj Kumar

    hi Suraj
    logically if you are getting alert then it should come into errot but You can check the status of your workflow as:
    goto transaction sxmb_moni there  in your message there is a field PE click on that u will be directed to workflow of your message in that there is an icon for technical view click on that u will get all technical details of your process as well as status of your workflo whether it is completed or in error
    there you will find where your logic is getting failed
    hope this may help you in solving your problem
    Thanks
    sandeep
    PS reward with points if helpful

  • BPM -- Reprocessing from failed point.

    Hi Friends,
    I am developing a BPM of 3 send steps. 1st will retrieve the records from a table(using JDBC adapter) and second send step inserts the same records into another table(different system). when insert is done, status is updated into 1st system(by 3rd send step).
    Now my business requirement is, If any error occurs(any exceptions) and I do Reprocess the message, BPM should start from the same point. (to avoid 2 times select and insert).
    This weblog gives the idea to put steps 2 times but I dont think I can do it because I have to put other logic also.
    /people/krishna.moorthyp/blog/2006/04/08/reconciliation-of-messages-in-bpm
    any idea how to achieve this?
    Thanks,
    Sandeep Maurya.

    Hi Sandeep,
    To make the BPM start from the point it failed you have to go with the approach mentioned in the above Blog.
    We did the same approach and working fine for us.
    If you find some  workaround please update here.
    Thanks
    Sunil.

  • BPM - Reprocessing

    Usually we go to sxmb_moni_bpe >> Continue Process Following Error to restart failed BPMs.
    Is there a standard job that can be scheduled to do this for us i.e restart failed bpms.

    Any thoughts?

  • Error handling in File - XI - SOAP scenario without BPM

    Hello!
    We have a File -> XI -> SOAP scenario without BPM. The problem is that if the Web Service sends back an error XI tries to reprocess the same message again and again instead of taking the next one.
    We do not want set the retry interval to NULL because most error cases are temporary connection problems and then also those messages would not automatically be reprocessed any more.
    We also have to use BE instead of EO, otherwise the Web Service will not return a response. But we need the response to be sure that the processing was successful. The message volume in this scenario is quite high and we do not want to use BPM only for the error handling.
    I know that from SP19 some additional adapter modules are available for async - sync scenarios without BPM. I tried to configure it like described in File - RFC - File without a BPM - Possible from SP 19. but it did not solve the problem. Does anybody have any other ideas? Thanks.
    Regards, Tanja

    Hi Tanja,
    >>>The volume is 3000 messages/day on business days and 700 messages/day during weekends but the traffic will increase in the future
    I think, you should check that out. It is assumedly only 2 days work to build a scenario:
    IDoc -> BP
    BP <-> SOAP/HTTP
    BP -> IDoc (Acknowledgement)
    In the process you need a condition branch, where you decide success or not. You need 2 Interface Mappings for filling the ALEAUD.
    Just send 1000 IDocs to the Test-XI and look to performance monitoring at Runtime Workbench, to find out, how many message will be processed in one hour. Assumedly 3000 and more per day should be possible. The advantage would be to reduce number of systems (no file system) and messages (better monitoring) and using the standard (better maintenance).
    >>>So you are suggesting I should use HTTP adapter and then add the SOAP header manually in a mapping?
    Yes, build the SOAP envelop during the mapping. Most easy is to use XSL or, if your mapping is ready, an additionsal XSL. You can put the error into the Acknowledgement to see it in ERP transaction WE02.
    Filling of ALEAUD fields:
    E1ADHDR/MESTYP: original message type
    E1ADHDR/E1STATE/DOCNUM: original IDoc number
    E1ADHDR/E1STATE/STATUS: 68 in case of error, 53 in case of success
    E1ADHDR/E1STATE/STATXT: Short description for R/3 user what has happend
    I ve done such a scenario several times. That works without any problems.
    Regards,
    Udo

  • Idoc to soap sync without bpm. is it possible? Helping me..

    Hi Experts,
    i have a small clarification Idoc to soap sync interface in sap pi 7.0. i created IDoc to Soap sync using BPM but some times the signals are stuck due to load issue in swpr, while reprocess those signals all going successfully to the receiver. So We are trying to eliminate BPM.
    I just wanted to know Idoc to Soap sync scenario without BPM is possible or not in SAP PI 7.0?
    if it is possible kindly send me the links
    Regards,
    Kiran polani

    Hi Kiran,
    Could you please let us know the exact requirement. How do you want to send the response back to IDOC?
    ASync - Sync Bridge with IDOC sender is not possible in PI 7.0.
    If It is something like IDOC --> SOAP --> IDOC , And If the SOAP request is small then you can use SOAP Lookup in IDOC to IDOC Scenario.
    In The mapping You can do a lookup and get the response from SOAP(Webservice) and map that to your Target IDOC.
    This is one possible way for you without BPM in PI7.0.
    Please let me know if you need more details about this.
    Thanks
    Jyothi A

  • BPM Error during delivery of message

    Hi All,
    I am working on BPM Scenario, to collect the files based on Correlation Id.
    Its working file in PROD, Last 2 days back we processed 20 message, 4 was not processed. Data looks good, and i am trying to process those 4 records.
    I am getting the below error in SMQ2.
    SysFAIL - >Permanent error in BPE inbound processing -> Display Trace: 193     385     20091008225338.6300000     DATA     SWF_INB     EXCEPTIONS          WF-BATCH     X     Error during delivery of message BDAAD94EA8454FA005F1A2C9416843DC to receive processes     WS90100038     XBQO$PE_WS90100038     BDAAD94EA8454FA005F1A2C9416843DC
    I cleared the SMQ2 and SWWL, and reprocessed the file, still i am getting same error...
    SXMB_MONI_BPE - > Continoue Process flow after error nothing is displayed...
    Any cause, i am getting the error???
    Thanks,
    SR

    Hi Siva,
      Normally this error occurs when your data not sufficient,check your data its correct or not,i think its not satisying your condition / corealtion what you defined in BPM.
    Regards,
    Raj

  • Rfc Jco communication channel error in BPM integration process

    Hi,
           when we are processing the records some records are processed succussfully some records does not in integration process view. when we restart the workflow we can able to process the error messages succussfully.
    but here not understanding how to reprocesse automatically error messages in the BPM integration process level.
    thanks and regads,
    krushi.

    Hi
    re-submission of messages after corrections that were failed
    Reconciliation of Messages in BPM
    Reconciliation of Messages in BPM Contd. - Restart Workflow

  • BPM, serialization messages through XI

    Hello,
    I want to achieve the following:
    A business process receives and manages each message through XI in the same order as the adapter engine has sent this message (EOIO) to the BPM.
    Therefore I use  the fork step (Necessary branches = 1).
    The first branch receives messages and appends each message to a list. (Never ending iteration: 1 = 1). To receive each message I use a dummy correlation id like a version attribute of the message type (e.g. 1.0).
    The second branch manages this message list how long as the last message in the list is managed (Iteration: ReveivedMessage.MessageId != MessageList[n].MessageId.
    The process also sends messages EOIO.
    I have tested it and it works. But I have never seen such a process and so I'm not sure whether this process reveals any errors.
    Can anybody give me an hint whether this process is correct?
    Regards
    Marc

    Hey Marc,
    your questions are very pertinent.
    I'll try to give some comments on experience that I've had.
    For every collectPattern BPM instance (which is your case), you'll have a input queue which will receive messages while your correlation is active. So, while you are executing steps inside the block which defines the correlation, then you will also have messages being added to that instance's queue. So, it is extremely sugested that you use local correlations in a Block step and that you only put the loop with the receiving step and relevant container operation steps inside it.
    In the case that some messages are in the queue but was never processed (because the fork or the loop reached an end condition, for example), they are called "Parked messages" and from XI SP 17/PI SP 8 you can even resend them (with a kind of huge delay time, this is a gap from workflow framework...). Check out these notes:
    903139 BPE-RUN: Messages are not processed                   
    901047  BPE-RUN: Local correlations, error in block at runtime
    Briefly, you can minimize the probability of a parked message to occur, but you cannot eliminate it (probability will never reach zero). You can, by setting that particular BPM to a mode "without buffering" (meaning, no input queue), minimize the problem, and all messages which would be parked in "with buffering" mode will now be reprocessed (resent to BPE) but they have a kinda large delay (set in SMQR's Pause parameter for that particular queue).
    To set the BPM for "without buffering" mode, you need to go to tx SWF_INB_CONF and enter the BPM_MODE='X' (the task of the BPM can be checked in SXI_CACHE).
    But please read the notes (and the notes they refer to) before doing any setting. They comment you can't set a particular BPM to "without buffering" if you still have any parked messages for that BPM. You need to check and delete those through report RSWF_XI_UNPROCESSED_MSGS.
    Regards,
    Henrique.

  • How to make a BPM restartble at a specific point after error?

    Hi,
    I have a somewhat very simple question.
    I have a BPM that works like this:
    1. receive message A
    2. transform message A to message B (using valuemapping)
    3. switch with a condition determining if valuemapping was succesfull for all cases.
    3.1. Branch 1
    3.1.1. Send message B to R/3
    3.2. Branch otherwise
    3.2.1. Transform message B to errorMessage
    3.2.2. Send errorMessage to R/3
    This is all fine and works as intended.
    Now what I would like is to somehow be able to "stop" the BPM after step 3.2.2. and somehow be able to reprocess the BPM starting from step 2..
    The reason for this is that if the valuemapping was unsuccesfull it means a table needs to be updated. After updating the table it would be nice if the process could just be restarted and complete with success instead of having to send data through XI once again from sending system.
    I've tried to experiment with exception handling in the BPM, but have not been successfull in finding a solution that works as intended.
    Hope someone can help:-)
    Best regards,
    Daniel

    Hi Kavita,
    What I want is this:
    If valuemapping is unsuccesfull I want to send errorMessage to R/3. Afterwards the BPM should stop. At some point someone (or XI ifself) will try to reprocess the BPM. In this case the BPM should basically start from my previous step 2 (Transformation step with valuemapping) and then go through it all again.
    I a litle unclear what exactly you want me to try - is it something like this you mean?: - but what exactly goes in the exception branch? The time part I guess can be left out in my case, since I just wanna stop right away - but still we the posibility of starting from valuemapping step when reprocessing the BPM after error.
    1. receive message A
    2. Block
    2.1. Exception branch
    2.2. Control branch
    2.2.1. Loop
    2.2.1.1. transform message A to message B (using valuemapping)
    2.2.1.2. switch with a condition determining if valuemapping was succesfull for all cases.
    2.2.1.2.1. Branch 1
    2.2.1.2.1.1. Send message B to R/3
    2.2.1.2.2. Branch otherwise
    2.2.1.2.2.1. Transform message B to errorMessage
    2.2.1.2.2.2. Send errorMessage to R/3
    Best regards,
    Daniel

  • BPM in STARTED State

    Hi Experts,
    I found an errored out BPM with error description " Engine - Entrance Blocked".
    I reprocessed the workitem and it went to "STARTED" State from "ERROR" State.
    From the last two days it was still in STARTED state only.
    Can any one tell the reason why it was in STARTED State and also what should be done in order to move WorkItem
    to Completed State.
    Thanks for your help.
    Regards,
    Prajwal

    Hi Amir/Michael,
    Can you please tell why the BPM will be in STARTED State only (Will it depend on any factors)
    Are there any options to see it COMPLETED other than Stopping it.
    Thanks and Regards,
    Prajwal

  • Restarting a BPM after triggering an alert

    Hi all,
    is there any way to resume a BPM in the exact point where it failed, but having thrown an alert also?
    My scenario is a chain of steps (transformations and web service calls). If it fails, there is an exception branch which will throw an alert with the exact cause of error.
    The problem is that the status of the BPM after this is not ERROR, it's COMPLETED (or CANCELLED if you cancel the process after throwing the alert). So I think it can't be restarted at the exact transformation step where it failed. The hole scenario must be reprocessed.
    Isn't this a serious flaw in the ccBPM?
    PD: I've checked this blog, /people/krishna.moorthyp/blog/2006/04/08/reconciliation-of-messages-in-bpm, but I think it's terrible to have to repeat every step in the exception branch (I mean, I would have to have an exception branch for each step, and repeat the same step in the exception branch. It would not be a good design).
    Thanks!

    Hi Jorge,
    I am also having the same problem. My BPM consists of a series of transformation steps, block steps and send steps.
    After reading the blog as you mentioned above, i was thinking how can i repeat each step in the exceptional branch.
    Can somebody help with the ideas of the exceptional handling in the case where we have series of different steps. any suggestions would be appreciated
    Thanks,
    Raj

  • FileName in BPM

    Hello everybody,
    we poll via file adapter. The files we read are processed in BPM.
    Is it possible to access the value of a file name in BPM?
    Regards Mario

    Hi Mario,
    yes,
    set the Set Adapter-Specific Message Attributes indicator at communication channel and choose file name to store adapter attribute "file name" in the message header of the XI message.  Map the value into the message to have it at BPM containter.
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm">SAP Library: Configuring the Sender File/FTP Adapter</a>
    Regards,
    Udo

  • BPM Process chain takes long time to process

    We have BI7, Netweaver 2004s on Oracle and SUN Solaris
    There is a process chain (BPM) which pulls data from the CRM system into BW. The scheduled time to run this chain is 0034 hrs. This chain should ideally complete before / around 0830 Hrs. <b>Now the problem is that every alternate day this chain behaves normally and gets completed well before 0830 hrs but every alternate day this chain fails…</b> there are almost 40 chains running daily. Some are event triggered (dependent with each other) or some run in parallel. In this, (BPM) process chain, usually there are 5 requests with 3 Delta and 2 full uploads (Master Data). The delta uploads finishes in 30 minutes without any issues with very few record transfers. The first full upload is from 0034 hrs to approximately 0130 hrs and the 2nd upload is from 0130 hrs to 0230 hrs. Now if the 1st upload gets delayed then the people who are initiating these chains, stop the 2nd full upload and continue it after all the process chains are completed. Now this entire BPM process chain sometimes takes 17 -18 hrs to complete!!!!!
    No other loads in CRM or BW when these process chains are running
    CRM has background jobs to push IDOCS to BW which run every 2 minutes which runs successfully
    Yesterday this chain got completed successfully (well within stipulated time) with over 33,00,000 records transferred but sometimes it has failed to transfer even 12,00,000 records!!
    Attaching a zip file, please refer the “21 to 26 Analysis screen shot.doc” from the zip file
    Within the zip file, attaching “Normal timings of daily process chains.xls” – the name explains it….
    Also within the zip file refer “BPM Infoprovider and data source screen shot.doc” please refer this file as the infopackage (page 2) which was used in the process chain is not displayed later on in page number 6 BUT CHAIN GOT SUCESSFULLY COMPLETED
    We have analyzed:--
    1)     The PSA data for BPM process chain for past few days
    2)     The info providers for BPM process chain for past few days
    3)     The ODS entries for BPM process chain for past few days
    4)     The point of failure of BPM process chain for past few days
    5)     The overall performance of all the process chains for past few days
    6)     The number of requests in BW for this process chain
    7)     The load on CRM system for past few days when this process chain ran on BW system
    As per our analysis, there are couple of things which can be fixed in the BW system:--
    1)     The partner agreement (transaction WE20) defined for the partner LS/BP3CLNT475 mentions both message types RSSEND and RSINFO: -- collect IDOCs and pack size = 1 Since the pack size = 1 will generate 1 TRFC call per IDOC, it should be changed to 10 so that less number of TRFCs will be generated thus less overhead for the BW server resulting in the increase in performance
    2)     In the definition of destination for the concerned RFC in BW (SM59), the “Technical Setting” tab says the “Load balancing” option = “No”. We are planning to make it “Yes”
    But we believe that though these changes will bring some increase in performance, this is not the root cause of the abnormal behavior of this chain as this chain runs successfully on every alternate day with approximately the same amount of load in it.
    I was not able to attach the many screen shots or the info which I had gathered during my analysis. Please advice how do I attach these files
    Best Regards,

    Hi,
    Normally  index  creation or deletion can take long time in case  your database statistics are not updated properly, so can check  stat  after your data loading is completed and index generation is done,  Do creation of database statistics.
    Then try to recheck ...
    Regards,
    Satya

Maybe you are looking for