BPM Collect Scenario errors at transform stage

The BPM Collect scenario is using a Fork within a Block.
Branch 1 - Loop Receive Append Container Endloop
Branch 2 - Receive step of triggerIdoc
End of Block
Transform step - multiline container of XML documents to one XML document
Send step
BPM Errors at Transform step with JCo mapping not available.
Whilst BPM in Error (Workflow in Error) more messages being received but never processed as the RECEIVE event is "lost" for these messages.
We are looking at redesigning the BPM to reduce the likelihood of this transform error.
In the meantime was looking at ways to Alert the administrator straight away to the error. As we have a workaround to get the process going and to pick up the stranded messages. So have started setting up the ALERT categories as described in How to Guide, for Adapter and Interface. Will this work?
Also in the Transform step there is a box (system exception) but I can't enter anything in. Is there a way to do this if the Alert category doesn't report an error in the BPM. OR do I have to add the Transform step into a Block of its own?
Advice gratefully received if we come up with a working solution will post it out here. Have spent a large amount of time reading posts and blogs on here but have not got a clear picture yet of what is best to do.
thanks,

> Whilst BPM in Error (Workflow in Error) more messages
> being received but never processed as the RECEIVE
> event is "lost" for these messages.
This should give you an issue called Parked Messages. The best way to deal with this is to actually define a Local Correlation. In the Block Step properties, you will have an option, Use Correlation --> Give the name of the Correlation . This will make sure that when there is an error, the Correlation become inactiva and a new BPM instance is created.
> In the meantime was looking at ways to Alert the
> administrator straight away to the error. As we have
> a workaround to get the process going and to pick up
> the stranded messages. So have started setting up the
> ALERT categories as described in How to Guide, for
> Adapter and Interface. Will this work?
Not sure if this will work. The issue is that the messages are passed to the IE already and will be in wait step waiting for an active BPM 's receive step How will another interface pick up this message?
> Also in the Transform step there is a box (system
> exception) but I can't enter anything in. Is there a
> way to do this if the Alert category doesn't report
> an error in the BPM. OR do I have to add the
> Transform step into a Block of its own?
This is what is called exception handler. Defined a Exception handler for the Block. Right Click block, insert Exception Branch, give name of the Hanler and then you can select this in the Transformation Step's System Error. This is like Try - Catch of Java.
Regards
Bhavesh

Similar Messages

  • BPM collect messages error

    Hi
    we are experiencing problems in BPM Collect pattern, error is not clear.
    Our payload before input to BPM
    <record>
    <row>
    <key>1</key>
    <val1>1</val1>
    </row>
    <row>
    <key>1</key>
    <val1>1</val1>
    </row>
    </record>
    this is given to BPM, and BPM is following exact collect pattern in SAP Documentation like
    1. Block with restricted by correlation (/record:key1), deadline with 1 minute, used by correlation
    2. within Block, unlimited loop, with started recieve step, activated correlation, and append records with container operation
    3. multi-mapping transform step, with multiple records to single record and followed by send step.
    we are getting error in the blok step, no description of error.
    BPM is activated without any errors
    Please advise, appreciate all ur help.

    Any body got the solution for this . I am having same problem .
    My Payload as follows
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:BpmPatternCollectMessageToBeCollected xmlns:ns0="http://sap.com/xi/XI/System/Patterns">
      <ID>1</ID>
      <OverallNumber>1</OverallNumber>
      </ns0:BpmPatternCollectMessageToBeCollected>
    for BPMPattrenCollectTime BPM and I amhaving error on outbound side in BPE
    when I dig into technical details The BPM details as follows
    Error during result processing of work item for Reciving Message Step
    Regards
    Murali

  • Problem in BPM Collect scenario

    Hi,
    I am implementing a collect scenario of BPM in which I am collecting Acccount details of a customer and posting them to receiver.
    In Receiver Determination, I have two objects, one with Sender system and BPM process and other with BPM process as sender and Receiver System.
    However, when scenario is run, in SXMB_MONI I see success flag for the processgin of message with Tilted green flag in column C stating that "Message Scheduled at the outbound End." I am not able to understand the meaning of this message.
    I have checked queues; there are no queues with any messages stuck. Also, because there is no error in the processing of message, I am not able to check the point in BPM till where processing was successful.
    Kindly let me know where I can go and check for possible causes of errors. Also, let me know if BPM process could be debugged at runtime.
    Thanks and regards,
    Bhavish Bhatia

    to check the successful point of execution of the bpm u need to follow thru the grpahical workflow log which can be found either in the transaction sxmb_moni_bpe or traverse by clicking on the PE column.
    u can check this below link for more on:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e7bc3a5a-0501-0010-1095-eb47159e169c">Monitoring ccBPM - Howto Guide</a>

  • BPM Collect Msg error

    I have exactly duplicated the scenario of CollectMsgPattern. When I try to execute, it starts the prcess by start msg but when it comes to block it throws the exception. I went to XMB_MONI_BPE to see the error and it says "Object FlowItem method execute cannot be executed". And before this there is msg in yellow "Unable to deliver event received" of object "StopMsg". Not sure how did stop msg came in picture if it is not sent. Any one faced this kind of problem? Any hint would be great help!
    Thanks,
    Samir

    As a simple scenario, I tried to just Receive and Send, That worked fine.Which means communication is fine, I tried to enahnce this with following
    Start> Block1>loop1:                   >Trans>Send
                           Loop1:Receive -- Collect
    CorrlelationProperites:
    CorrleatioList:corrleation
    Name:name
    InvlovedMessage:MI_DATA_ABS
    properties:name(Intefrace./p1:MSG_DATA/VendorName)
    Block1 Properties:
    StepName:Block1
    LocalCorelation : None
    Exception :None
    Container:
    msgConsolidated:AbstractInterface:MI_DATA_CONSOLIDATED_ABS
    msgData:AbstractInterface:MI_DATA_ABS
    msgDataCollect:AbstractInterface:MI_DATA_ABS:Multiline-yes
    Loop:
    StepName:Loop1
    Condition:(msgData./p1:MSG_DATA/VendorName = end)
    Receiver:
    StepName:Receiver1
    Message:msgData
    StartProcess:Yes
    userCorrelation:correaltion
    ActicvateCorrelations:correlation
    name:'start'
    ContainerOperation Properties:
    StepName:Container Operation1
    Target:msgDataCollect
    Operation:Append
    Expression:msgData
    Transformation Properties:
    StepName:Transformation1
    InterfaceMapping:IM_DATA_MERGE
    Exception:None
    SourceMessage:msgDataCollect
    TargetMessage:msgConsolidated
    Send Properties:
    StepName:Send1
    Mode:Asynchronous
    Message:msgConsolidated
    Acknowledgment:None
    Receiver From : Send Context
    Send Context:None
    Exception:None
    Activate Correaltion:None
    But when I send the message,it's not even starting the workflow, it comes in queue and in XMB_MONI the OutboundStatus is Red, It says Outbound is PE. So I am assuming it is trying to go into Process but not able to. This is just an extension of scenario where everything was working with one receive and one send.
    As I was writing this, just clicked the condition which I am giving in the loop might be wrong. I think it should be != instead of =.
    Thanks,
    Samir

  • IDOC-BPM-FILE scenario ERRORS

    Hi gurus,
    I am trying to send IORDER01(pm order) from an R/3 system to a file, which works fine.
    but when i try to use some business logic like if order type = 'PM01' then only i have to write to the file, using ccBPM, it fails...
    this is my first BPM scenario and am having trouble....have read lot of blogs etc...can u please tell me where i am going wrong...
    I have a data type DT_FILE for writing to the file.
    I have interfaces:
    si_oa_iorder(outbound asynchronous interface for file)
    si_aa_iorder(abstract asynchronous interface for idoc)
    si_aa_file( abstract asynchronous interface for file)
    si_ia_file (inbound asynchronous interface for file)
    I have message mapping MM_IORDER2FILE mapping IDoc to flat file structure
    I have operation mapping OM_IORDER2FILE where I have mapped si_aa_iorder and si_aa_file
    (( Is this right? are both abstract interfaces to be mapped? or do i need to create more mappings like si_oa_iorder to si_aa_iorder etc? please clarify...))
    My IP is very simple with just a 'recv step' having container element of  type si_aa_iorder and 'send step' having container element of  type si_aa_file to start with..i haven't yet put the switch control etc...even such simple IP fails....
    I have created Configuration objects like
    Business System for file receiver
    Business component for Idoc sender with adapter specific details set
    Communication channels for Idoc and file adapters
    No sender agreement as it is Idoc communication
    Receiver agreement between the Integration Process(IP_IORDER2FILE) and the file server
    2 Receiver determinations between BC_idoc_send to IP and other from IP to FileRecv system
    2 interface determinations , one from si_oa_iorder of  BC_idoc_send  to IP and other from si_aa_file  of IP to file recv system.
    This is my setup and this fails....
    My question is..is my message mapping and operation mappings correct? and can u see any obvious blunders i am doing?
    please bear in mind that with same interfaces and sending and recv components, it runs fine without BPM....so please look at the BPM bit of mappings/config that i might have missed and please advice asap..
    Thanks in advance and i am sure there would be lot of gurus for whome it is just a peanut...so please reply...
    Regards
    Jhansi

    Hello,
    I am trying to implement one pi scenario :
    File -> file adapter -> ccBPM -> soap receiver adapter -> web service request -> web service response -> ccBPM -> output file adapter.
    The web service that I call works file from wsnavigator. I have created all the design and configuration objects
    needed for the scenario.
    I place a file with following contents:
    <?xml version="1.0" encoding="utf-8"?>
    <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>
        <pns:GetSetNameWS xmlns:pns="urn:file2soap2fileWSVi">
         <pns:name1>ajeet</pns:name1>
          <pns:name2>phadnis</pns:name2>
        </pns:GetSetNameWS>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    When I look at the process monitor I get this:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Receiver Determination
      -->
    - <SAP:Error SOAP:mustUnderstand="" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">CX_RD_PLSRV</SAP:Code>
      <SAP:P1>Problem while determining receivers using interface mapping: No operation with XML root tag http://schemas.xmlsoap.org/soap/envelope/.Envelope exists.</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Error when determining the receiver: Problem while determining receivers using interface mapping: No operation with XML root tag http://schemas.xmlsoap.org/soap/envelope/.Envelope exists. Problem while determining receivers using interface mapping: No operation with XML root tag http://schemas.xmlsoap.org/soap/envelope/.Envelope exists. No operation with XML root tag http://schemas.xmlsoap.org/soap/envelope/.Envelope exists.</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    I have no clue about this error. Can you help me with this ?
    If yes I can send you more details, if you liked 
    Hoping to get help from you,
    Cheers,
    Ajeet Phadnis

  • BPM Collect Scenarios

    Hi All,
    We have a scneraio to collect IDOCs in BPM for a time frame of 5 minutes.The collection is based on correlation condition for same customer and its in infinite loop and a deadline branch is givenwith  timout of 5 minutes.
    We have obseved that for the IDOCs that were triggered never came out of the IP for one of the customer.They are stuck in PI
    and in message being sent state for 12-13 hours even if timeout is given for 5 minutes
    We have processed the same IDOCs in other environment and they got processed.
    Could you please tell me what can be the issue ?
    Why this problem is occuring,
    Best Regards,
    Harleen Kaur Chadha

    They are stuck in PI and in message being sent state for 12-13 hours even if timeout is given for 5 minutes
    You mean to say the deadline never reached? If yes then refer: Re: Problem with timeout exception on a block step
    Regards,
    Abhishek.

  • Error in transformation step

    Hi all,
    In my requirement i have a BPM with the following steps
    start->Rx->Send<>Tranform>Send->end
    first send step is synchronous and it is sending req to a website and receiving response through http receiver channel.
    second send step is asynchronous , sending response received from website to a file server through file receiver channel.
    i have a transformation step ,where i am doing transformation between the structure in receive step and the structure in second send step,
    can i do that?
    can we do transformation between any async abstract structures that we define for BPM?
    BPM is showing error in transformation step, i dont know whats the error is and how to see the error and rectify the problem
    plz help
    regards
    jhansi

    <b>-Check the Transformation Step in BPM, weather it has correct source and target abstract interfaces or not.
    - Check the Message Mapping and interface Mapping manually from the Test Tab in IR.
    -Check the status of the Error of BPM in SXI_CACHEIntegration ProcessyourBPM. Code should be 0..if something else it is showming means it has an Error.
    -Check the Test data you are using to test your interface.
    - Check Webservice sending the correct response or it is failing at the time of response..may be because of WS is not running properly or server is down.</b>
    Thanks
    Farooq.

  • BPM collection question

    Hi all,
    In BPM collection scenario
    Is there any way to capture all the messages ids(inside BPM) which are being sent to that BPM?
    Any help will be appreciated.
    Regards,
    Ivá

    Hello Ivan!
    Yes. You might specify a WHILE or UNTIL loop inside a block of your BPM process. For example, create a FORK and then create on one path a Receiver Step waiting for a "STOP" message, and in the other fork path create an infinite WHILE step with another Receiver Step to gather the incoming messages (and appending them to a Message List container). Or you can just set a WHILE or UNTIL with a limited amount of messages, without the Fork.
    Please check the Help page below for more information about this.
    Workflow Builder:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/c5/e4b79d453d11d189430000e829fbbd/frameset.htm
    Best regards,
    Lucas

  • Error in Transformation of BPM(N:1 Scenario)

    Hi,
       I am trying out a BPM scenario for an N:1 transformation.The workflow log shows the error on Transformation step.The Interface mapping(called inside BPM) is done between the abstract type of both Source structure(0 to Unbounded) and the target structure(1-1).The underlying Mesage mapping between the source and the target is as as below :
          Source                                                                     
         Messages(1-1)                                                            
              Message1(1-1)
                   MT_Src(0-Unbounded)
                       Packet(1-1)
                          Dataset(0-Unbounded)
              Messages(1-1)
                  Message2(1-1)
                      MT_Src(0-Unbounded)
                           Packet(1-1)
                              Dataset(0-Unbounded)
          Target                                                                     
         Messages(1-1)                                                            
              Message(1-1)
                   MT_trg(1-1)
                       Packet(1-1)
                          Dataset(0-Unbounded)
                                                   Could someone help me out with any pointers to the above said pbm?

    Hi Thiyagarajan,
    the problem is, that such a mapping makes no sense.
    You have 1-1 in target. That means that the target message will be generated exactly one time (not more and not less)!
    So it is not possible to map two sources (which are 0-Unbounded) to a target that is 1:1.
    Regards Mario

  • BPM Collect Pattern: N:1 Mapping error in trnsformation step

    Dear All,
    I am using collect pattern Payload Dependant.
    I have one source data type and one target data type. Mapping is one to one.
    Data type contains 3 fields, Value Name and Surname.
    In Loop I have used condition when Counter is equal to value stop the loop.
    I have used Transformation step as I am using N:1 mapping.
    I have used abastrct to abastract message mapping.
    Source message is 0 to unbounded.
    In interface mapping target message occourance is 1. But in mapping program target message occourance is 0 to unbounded.
    When I am running my scenario, Third party to IP is working fine. But in IP i am getting error in transformation step.
    "com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:Messages/ns0:Message1/ns1:Collect_Receiver_MT. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start"
    Can anybody will help me to solve this problem?
    Warm Regards,
    Gouri

    Have a look
    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
    /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
    Thanks

  • BPM Collect Transformation Step Raise Alert need help

    Hi,
    Scenario BPM Collect.
    Block 1 - Multiple xml messages received and collected into multiline container.
    Block 2 - Transform multiline container element into single message. Mapping Error throw Transformation Exception.
    Block 2:Exception Branch - Transform multiline container element to error multiline container element (based on BpmPatternReqRespTimeOut with a twist).
    Block 2:Exception Branch - Send multiline container element to Communication Channel for further error analysis.
    Block 2:Exception Branch - Throw Alert BPM_ALERT Transformation Failure message.
    Getting Compilation errors because I am not allowed to output a multiline container element...?
    Behaviour without the Exception Branch Transform and Send is that the first message collected in the ccBPM goes to Green Flag and the others goto chequered flag when the BPM_ALERT is thrown. This is not desirable behaviour.
    Would like to output multiple line container element so I easily know which group of messages failed ie file 1,2,3... so that I can go to the Error folder and repost them in the Sender Communication Channel if required.
    Once this is working I am trying to identify which file had the conversion problem so I can filter if out from the others and process the others attempting to pass information from a UDF as to which item in the multiline container element I reached before I had a problem int he original mapping...?
    I have read Michal Krawcyzk's blog on ALERT variables and Help on Throwing Alerts etc but I am progressing slowly with my solution...
    thanks,
    V

    Thankyou Chirag for those Blogs.
    The first is the one I have looked at most recently and the second has given me an idea.
    If I change my mapping of the multiline container element each line holds an xml message to the error element by calling a UDF to map the payload across then at least I would have output my Payload that errored? I will try it and see Java coding is not my forte currently.
    thanks,
    V

  • BPM Scenario: Error in SXMB_MONI

    hi,
    I am using a File- XI(BPM) - File scenario. After completing all the mappings and carrying out the necessary steps for configuration, when I go and see the message in SXMB_MONI - it gives me the following error:
    " During the application mapping com/sap/xi/tf/_File2File_Bpm_MM_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformation "
    What is causing this error. I have gone back and checked my mapping. Everything seems fine. Please help?
    regards,
    Manpreet

    Hi Manpreet,
    BaseRunTime exception generally occurs in the mapping, when the mandatory fields are not coming the input file. For example, assume <Name></Name> is mapped in your mapping. But in the input file if <Name></Name> tag doesn't come, then mapping will throw BaseRunTime exception. So check your input data contains all the fields mapped in your program or not.
    Regards
    Arpit Seth

  • Error in Transformation step of BPM

    Hi all,
    In BPM, I have defined a transformation step. For this, I have specified the Interface mapping which is between 2 abstract asynchronous interfaces. The Message Mapping for this Interface mapping involves multi-mapping (1:n) of the messages used.
    Also, for naming convenience, I have kept the names of the abstract async interface and its message type same.
    I have created containers for the message types of the both interfaces. The container for target message is of type 'multi-line'.
    When I checked the integration process, errors (red boxes) appear for both - the source and target messages in the transformation step properties window. The error text says <b>"Expression must return the interface type < Name of abstract message interface >"</b>
    What could be the cause of this error ?
    Any help would be appreciated.
    Thanks in advance.
    -Shankar

    Hi Shankar,
    Are you splitting the messages i.e 1 message into N messages ? If so, do  you have multiple message types in the Message Mapping in the target side ?
    Anyway, just recheck the Abstract Interfaces are activated. And reassign the container variables with Source message Absract Interfaces and Target message Abstract Interfaces.
    The error tells that, there is somewhere occurence problem.. So that is mismatch with the Message Interfaces..because you have selected the Multiline in the COntainers right ? Check without that..if it is ok, to narrow down the debugging..
    Regards,
    moorthy
    Regards,
    Moorthy

  • File to RFC with multiple records using BPM Scenario Error...!!!

    Hello Guru's,
      I have done the File to RFC with multiple records using BPM scenario as per the Materiel available in the sdn.sap. This involves BAPI (BAPI_MATERIEL_AVAILABILITY). I have done exactly the same what is their in the materiel. SXI_CACHE is also giving return value " 0 ". File is getting deleted from the source directory, but no file in target directory. SXMB_MONI is also showing no error (black Flag). BPM is also error free. Checked the interfaces also.
    Can any one tell me what mistake would i have done.
    Thanks in advance.

    Hi,
    There is one similar discussion I found,
    FTP TO RFC using BPM
    Thanks
    Swarup

  • BPM Collect Pattern Scenario :Container is empty for the loop at run time

    Hi Friends,
    I am working on BPM Collect Pattern Scenario after looking into the example delivered by SAP in namespace http://sap.com/xi/XI/System/Patterns and IP name as BpmPatternCollectPayload.
    After configuring the same and when it is run, I see strange behaviour as illustrated below
    1. Container step is empty and not able to see the counter for which it needs to be incremented at runtime
    2. I understand that Loop should start and it need to be incremented as when we get a new message into the same BPM.
    But I observe that it is creating a new message and loop never stops and completes the condition and comes out to go to next step.
    Request your help.
    Regards,
    Hussain

    Hi,
    define or declare a variable with name counter and type as integer in Container where you define abstarct variables...
    Thanks,
    Madhu

Maybe you are looking for

  • Spontaneous scrolling and mouse clicks

    Not sure if this is a hardware problem or an OS or software problem, (or even one problem) but here goes. So far these problems have occurred in Word, Xcel and AOL as well as Finder. 1. When working on a Word or Excel doc., spontaneously my window sc

  • Create report from olap .cub file problem

    hello, i am using crystal reports 2008. i tried to create a report based off of the sample sales reports.cub file using the olap cube report wizard. when i moved the measures dimension to the slice list on the slice/page screen and tried to create a

  • Is there a way of sharing a single library on multiple laptops?

    Merry Christmas to me, I got a new MPB! I got this MPB because my girlfriend hates when I wait till she comes home and pounce on her MBP to make photo albums and share them with family.  She takes the photos (hundreds of them) and then loads them and

  • Canon, Sony??

    From this helpful board, decided to buy a new camcorder after Dec 25. I am moving from 8mm to miniDV. Although, I was hoping by now that HD would do the job. My little pea brain says it should, but the collective wisdom of the Apple boards (and David

  • Mac Book Pro for photography

    I've never used a MAC before, I am going to university to study photography, I've been recommended to buy a Mac Book Pro. 1) Can you get a simpler version of Mac to use for beginners...or is it easy to pick up from using a computer? 2)What requiremen