BPM: collect payload problem

hi all.....
i created BPM pattern collect payload.
BPM steps are...
in loop receive-contaner1(append the recmsg to recmsg_multi)-container2(increment the counter)-loopend, transfermation-send
And the container elements are.....
counter.....simple type
recmsg.....abs intrface
recmsg_multi..........abs intrface (multi line)
sendmsg...............abs intrface
but in testing , i got the msg in information area as fallows..
"container element 'recmsg' in step Receive is initialized but is not used"
and in sxi_cache the return code is 99.
how can i resolve this problem...
can anybody help me?
thanks,
Kumar

Hi,
this message is just an information and will not cause the error.
You should compare your process with the collectPayload pattern (SAP Basis -> System Patterns).
Reactivate the process in the IR and you could also try to refresh the process in sxi_cache manually with "Repeat Activation".
Regards
Patrick

Similar Messages

  • Bpm Collect message problem

    For the BPM Pattern BPMCollectMessage...
    I'm doin a file to file scenario.. Its fine at the sender side CC shows sucess and also moni but not able find any messages of my target interface any idea wat the problem is .. the recevr cc is active but no logs. .and also from IP to recvievr its not processed i guess no messages seen on moni....

    >
    Robin wrote:
    > For the BPM Pattern BPMCollectMessage...
    > I'm doin a file to file scenario.. Its fine at the sender side CC shows sucess and also moni but not able find any messages of my target interface any idea wat the problem is .. the recevr cc is active but no logs. .and also from IP to recvievr its not processed i guess no messages seen on moni....
    try to check the status using RWB -> Message monitoring ...
    you would be able to see what is causing the issue in the detailed log

  • BPM collect pattern based on payload

    Hi,
    i am doing BPM Collect pattern based on stop message which is RFC. Means, i need to collect the IDOCs until i get the RFC from another system.
    For this i am using predefined pattern BPMcolllect pattern which is in BASIS SWCV.
    is it possible to do with out correlation?
    if correlation is required, there should be one common fiield between two messages?
    Thanks,
    karthik

    Hi ,
    Your design it self wrong, when you develop interface as a sender IDoc , then how come you will receive RFC in to BPM??
    so check your requirement with your client, if you want to collect messages there are different ways, implementing patterns in last option.
    search in sdn.
    Regards,
    Raj

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

  • BPM Collect Message dependent AND time dependent

    Hi
    I have a IDOC to file scenario where I have to collect all the IDOC until I receive a stop IDOC.
    Once the End collect IDOC is received I have to do a n:1 transformation and write the file to the FTP.
    The problem is, at times the IDOC which is suppose to end the collect loop gets stuck in ECC R3 system.
    So Im wondering If I can do something like say, we have two options inside BPM both time dependent and message dependent.
    In this case which ever comes first (the Stop/END IDOC or the Time say 3 mins) will end the collect process.
    Can anyone pls suggest will it work and if so what are the additional steps I have to introduce in the BPM.
    Pls advice.
    Right Now these are the steps in the BPM Collect Message dependent.
    1. Block (I have used correlation)
    2. Fork inside the block
    3. Fork branch one has a look with end condition as 1=1; then a receive step and a container operation inside the loop.
    4. Fork branch two receives the end collect idoc.
    5. Transform step outside the block.
    6. Send step.
    Thanks
    Prasanna

    Hi Abhishek/ Raj
    Thanks!!
    I have done the changes let me confirm after testing it once. In the mean time I have one more question regarding the same BPM, as I have mentioned in the first post, the BPM contains the 6 steps mentioned but the the 6th step is inside another block (Block2).
    The steps 1 to 4 are inside Block1.
    The step 5 ie the transformation step (n:1) is in between the Blocks ie not inside any block (hope im not confusing).
    The second block is for sending the file to the FTP and based on the acknowledgement (transport level) I have to send an email.
    So Block2 already contains a deadline branch, it is to wait for the positive acknowledgement for say 3 mins and send the error email if incase we dont get positive ack within the time limit.
    My doubt is,
    1. Is it the only way (having two block and two wait steps) to achieve this.
        (one block for collecting and one block for ack)
    2. Is there any way I can have a single Block in the BPM insted of two. If so what are the steps.
        Having single block, Will improve anything??
    Thanks
    Prasanna

  • BPM Collect pattern is not coming out  and it is in loop.

    Hi Experts,
    We have implemented a BPM Collect Time pattern and it was working fine in Dev and QA environments perfectly. Couple of days back we have some server issue in Dev environment and Basis team has done some thing with File Storage. From that time, all our BPM's were not working in Dev. It is showing that the block is waiting for some event to trigger and it is in Process state.  We have set it for 5 min and block is not coming out from loop.   We exported the code to QA and it is working in QA.  We tried SWU3 transaction as given in the below forum and it didn't help us.
    bpm collect time infinite loop error
    Some one please help us.
    Thanks
    Venkat
    Edited by: Venkata Gupta on Nov 27, 2008 12:54 AM

    Hi
    Is Your BPM having deadline branch ?
    If there is any system Exception then catch it.
    http://help.sap.com/saphelp_nw04/helpdata/en/33/4a773f12f14a18e10000000a114084/content.htm.
    According to thread mentioned by you ,Schedule your Missed Deadline Branch.
    Also check your BPM using transaction SXMB_MONI_BPE and find out which step have error.

  • 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

  • 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

  • BPM Collect Pattern:File to IDoc

    Hi,
    My scenario is File to Idoc. An invoice excel file will be sent by the vendor.The excel has a built in macro, which converts the excel to a csv file and file is placed in a file share server.
    *Logic of Macro: *
    There will be a button in the excel file containing macro. In one excel file there would be multiple invoices that contains different number of item lines, The macro checks the u2018Invoice Numberu2019, lines with the same invoice number will be saved in one CSV file. So for example a excel file contains 5 invoices, when press the button that contains the macro, there will be 5 CSV files created under the same path, each CSV file contains one invoiceu2019s information.
      After this I have to post the Inovices in to SAP using an IDoc.
    So, I am using BPM collect pattern to achieve this. In the collect pattern,  I see a correlation defined on one of the source fields,  What does correlation exaclty do in my  case. Let's say I have defined a correlation on Source field called Invoice number.
    BTW I am using FCC on the filed adapter to change the CSV(Invoice) to xml
    Thanks,
    Kiran

    Hi
    to use Xpath for your receiver det. ref these blogs;
    a combination of logics should help you in this case ...
    Customise your 'XPATH' Expressions in Receiver Determination
    XPath to show the path (Multiple Receivers)
    File to Multiple IDocs (XSLT Mapping)
    Try removing BPM from ur scenario.
    1:n could be achieved without BPM
    Various multi-mappings and Optimizing their Implementation in Integration Processes (BPM) in XI.
    Regards,
    Suryanarayana

  • 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

  • Bpm Pattern Collect Payload

    I am trying to merge multiple inputs within a loop and then merge them in a transformation step and then send the merged output.
    I am getting an error <i>"Expression must return a multiline value"</i> because I assigned a multiline container to the source message of the transformation step. I made sure that occurances for the messages are 0..unbounded.
    Has anyone faced this issue before?

    One more issue related to this scenario. As per SAP's pattern for "stop collect based on payload", the initial loop needs a condition based on the payload element.
    My condition is
    <i>(PurchaseOrder./p1:MT_PurchasOrderReq/TotalNumberOfMessages &#8800; MsgCount)</i> similar to SAP BPM Pattern.
    I don't get any error in IR or ID, but once the integration process is activated in ID, I see a return code of 99 for this integration process in SXI_CACHE. The Activation log error says <i>'TOTALNUMBEROFMESSAGES' is not a component of data object 'PAYLOAD'</i>
    I get the same error if I import SAP's BpmPatternCollectPayload integration process in to ID and activate it.
    If I change my condition to <i>(MsgCount &#8800; 3)</i> then it works. Am I missing some kind settings?

  • 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 :: n To 1 Collected Payload Pattern issue

    Hi
    I am working on following scenario -->
    Web Page --> HTTP Adapter --> XI with BPM ( Using n To 1 Payload Pattern ) --> RFC Adapter --> SAP R/3 --> XI With BPM --> File Adapter --> Legacy System with Response from RFC
    Now everything is configured & when first time I executed the scenario it gives me " Green Flag " under Outbound Status for interface from Web Page to XI. Also date format error in next 2 messages. So I corrected the date format & execute it again.
    But since from than I am getting " <b>Red Flag</b> " ( <i>Message has error status on outbound side</i> ) under Outbound status. I checked my BPM under MONI also & all the mapping & configuration is fine. Even I made the Overall messages as 1 but still getting the same error.
    I am able to see the correlation ID of message also.
    Pls. suggest.

    Hi
    My Scenario is working now & I am able to correlate the payloads on Vendor Name. But I need to clarify the concept of n:1 Pattern.
    In my multi-mapping occurence of source message is 0 to N & Target message is 1. Now when I am sending the message in this format ( coming from web page when i am clicking the SUBMIT button two times ) :
    <p3:PurOrder_Request_MT xmlns:p3="http://BpmCollectMsg:AsyncSync:AlertMgt">
             <Total_Msgs/>
             <HEADER>
                <DOCDATE/>
                <VENDOR/>
             </HEADER>
             <ITEMS>
                <PURMAT/>
                <NETPRICE/>
                <UNIT/>
                <PRICEUNIT/>
             </ITEMS>
             <Items_Schedule>
                <QUANTITY/>
                <DELIVERYDATE/>
             </Items_Schedule>
          </p3:PurOrder_Request_MT>
    <p3:PurOrder_Request_MT xmlns:p3="http://BpmCollectMsg:AsyncSync:AlertMgt">
             <Total_Msgs/>
             <HEADER>
                <DOCDATE/>
                <VENDOR/>
             </HEADER>
             <ITEMS>
                <PURMAT/>
                <NETPRICE/>
                <UNIT/>
                <PRICEUNIT/>
             </ITEMS>
             <Items_Schedule>
                <QUANTITY/>
                <DELIVERYDATE/>
             </Items_Schedule>
          </p3:PurOrder_Request_MT>
    I am getting results in same format means two different nodes of " PurOrder_Request_MT ".
    But I was expecting results in this format ::
    <p3:PurOrder_Request_MT xmlns:p3="http://BpmCollectMsg:AsyncSync:AlertMgt">
             <Total_Msgs/>
             <HEADER>
                <DOCDATE/>
                <VENDOR/>
             </HEADER>
             <HEADER>
                <DOCDATE/>
                <VENDOR/>
             </HEADER>
             <ITEMS>
                <PURMAT/>
                <NETPRICE/>
                <UNIT/>
                <PRICEUNIT/>
             </ITEMS>
          <ITEMS>
                <PURMAT/>
                <NETPRICE/>
                <UNIT/>
                <PRICEUNIT/>
             </ITEMS>
             <Items_Schedule>
                <QUANTITY/>
                <DELIVERYDATE/>
             </Items_Schedule>
          <Items_Schedule>
                <QUANTITY/>
                <DELIVERYDATE/>
             </Items_Schedule>
          </p3:PurOrder_Request_MT>
    As in target they are coming as two different payloads & I am calling the RFC one time only. RFC is taking the data of first payload only. Right now my scenario is working more as creating a batch of payloads who has same Vendor Name. But my RFC doesn't take batch of payloads.
    Can you pls. explain what exactly the n:1 pattern means.
    Best regards
    Lalit

  • 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

Maybe you are looking for