on 05-20-2008 10:37 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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.
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.