cancel
Showing results for 
Search instead for 
Did you mean: 

BPM Message Split in Block par for Each: Just last message is sent n-times

Former Member
0 Kudos

Hello everybody,

we got BPM with a message split. In a par-for-each block the message is send.

Asuming I have 3 lines in the multiline container element, I can see in SXMB_MONI that that message is send 3 times.

The error is, that 3 times the last message is send.

<u>Sample Error:</u>

Message incoming in BPM:

<root>

<mymessage>M1</mymessage>

<mymessage>M2</mymessage>

<mymessage>M3</mymessage>

</root>

Messages outgoing:

<root>

<mymessage><b>M3</b></mymessage>

</root>

<root>

<mymessage><b>M3</b></mymessage>

</root>

<root>

<mymessage><b>M3</b></mymessage>

</root>

--> As you can see, just the last message M3 is send 3 times!

What can I do?

Regards Mario

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

See the occurance in your sorce structure of file-to-bpm mapping. Set the occurance of message as 0 to unbounded.

Regards,

Alok

Former Member
0 Kudos

Hi Alok,

with "sorce" I asume you mean the multiline container element that mapped? But in this case the the target structure should be 0 to unbounded?

regards Mario

Former Member
0 Kudos

Hi,

Lets set the occurance 0..unbounded in all data type used in this scenarioand test. Because i thing the container contains repititive data.

regards,

Alok

Former Member
0 Kudos

Lets set the occurance 0..

--> I did it. Error is still the same!

Former Member
0 Kudos

Hi Mario,

If you can, check the mapping in IR by taking the message from SXMB_MONI for first pair of interface and taking output of this for second pair and see whether it is working perfect. I thing data populated in container is not correct.

Former Member
0 Kudos

If I take the payload from SXMB_MONI an try to test, I get an syntax error when I copy&paste the data into the message mapping.

This is very strange, because

a) the message mapping is done on basis of imported IDOCs!

b) the BPM works without throwing a mapping error

So what should I do?

Former Member
0 Kudos

Hi,

you cannt directly copy paste the data from SXMB_MONI. Right click and select "see source" and then copy paste.

also can you you exact scenario and the way you are doing it.

Former Member
0 Kudos

Hi,

Export the Parameter of the payload as .xml.

Import this in the Interface mapping and check?

Regards

Vijaya

Former Member
0 Kudos

Mapping works fine!!!

Former Member
0 Kudos

We set the mode for the block on ForEach, now it works!

Thank you all!

Regards Mario