cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping error :Collecting file : BpmPatternCollectTime

former_member192079
Participant
0 Kudos

Hi

I am trying to use Multimapping with BPM, for 3 files correlated based in some field value

but mY collectpattern is not workin, Workflow shows errror in Message Mapping Runtime exception

Attach Mapping

http://img255.imageshack.us/my.php?image=mappingaw1.jpg

Refered BPM from SAPBASIS

http://img413.imageshack.us/my.php?image=bpmsapbasisen1.jpg

steps relate to occurane in Source & target messaget type has been done..

but still the error is there...

I check the thread below , having the same issue and concern with BUG in display in SAP BASIS component display

Regards

AshutoshR

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member192079
Participant
0 Kudos

I got the issue..

After changing the occurance of target MT to 0..Unbounded..

the XML content for source messge type also changes..

1 Message Tag is also added to Source Message Type..

BUT the payload going as an input to this mapping is

not having the <Messages1> tag..

Here is the payload

in SXMB_moni before mapping

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_Source_File xmlns:ns0="urn:godb:bw:01">

<row>

<Field1>first file</Field1>

<Field2>a</Field2>

<Field3>1</Field3>

<Field4>1</Field4>

<Field5>1</Field5>

</row>

</ns0:MT_Source_File>

XML payload copied from Message mapp TEST TAB

<?xml version="1.0" encoding="UTF-8"?>

<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">

<ns0:Message1>

<ns1:MT_Source_File xmlns:ns1="urn:godb:bw:01">

<row>

<Field1/>

<Field2/>

<Field3/>

<Field4/>

<Field5/>

</row>

</ns1:MT_Source_File>

</ns0:Message1>

</ns0:Messages>

Regards,

AshutoshR

Former Member
0 Kudos

Ashutosh

i was also getting the same error in MessMapping for doing N:1 Multimapping with BPM...do u got any clue..

WarmRegards,

AjayP

Former Member
0 Kudos

</ns0:MT_Source_File>

remove ns0: from start and end tag in source XML...

in multimapping Message tag gets generated. But don't put it in source file while testing end to end..

former_member192079
Participant
0 Kudos

i removed the <ns0 and used the payload as

<?xml version="1.0" encoding="UTF-8"?>

<MT_Source_File xmlns:ns0="urn:godb:bw:01">

<row>

<Field1>first file</Field1>

<Field2>a</Field2>

<Field3>1</Field3>

<Field4>1</Field4>

<Field5>1</Field5>

</row>

</MT_Source_File>

But still i am getting the same error..

com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:Messages/ns0:Message1. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at

Regards

AshutoshR

Former Member
0 Kudos

Ashutosh,

Your file seems correct now test it in Test Mode by adding <Message1> tag.

I feel that there is some problem with your mappings. Simplest way is go to each Node and field and verify the queue content.

Gaurav Jain

Former Member
0 Kudos

XML payload copied from Message mapp TEST TAB

--> XML payload that you have copied in earlier post, does not have values for Field1,Field2,Field3,Field4.....

Is your mapping working fine. Test it in test tab of MM

After changing the occurance of target MT to 0..Unbounded..

-->

if you are using correlation then dont change target occurrence to 0..unbounded. Correlation will take generate multiple instances and you will get multiple target messages when your correlated field value is changed. So let your target occurrence be 0..1

former_member192079
Participant
0 Kudos

Thx Mugdha

XML payload that you have copied in earlier post, does not have values for Field1,Field2,Field3,Field4.....

Is your mapping working fine. Test it in test tab of MM

yes it is working fine..

I am using correlation for the 3 files on FIELD4 value...

correlation key is getting populated..

i change the MT to 0..Unbounded (for target) as specied in SAP BASIS comp, and in various blogs...

i think my Container step is not appending all messages properly...

refered :BPMcollectpatternTime (Collect and Bundle messages from Single interface)

Regards

AshutoshR

Former Member
0 Kudos

i have checked BpmPatternCollectTime IP in BASIS component.

Target occurrence is 1 only

Try making it as 1

Also logically, if your requirement is when value for Field4 changes, new file (target message ) is to be generated then, you need not make target node unbounded.

Correlation will handle it by creating different instance for per value of field4 and you will get new target message accoordingly

correct me if I have any mis concept about your scenario.

former_member192079
Participant
0 Kudos

Hi

if you the SAP BASIS Comp they have made the Source MT occurance as 0..Unbounded...

which make sence as in BPM first Container will create Multiple Message instance ( On APEND) and map it 1 target message..

Regards

AshutoshR