cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Multi mapping with mutiple mappingsteps?

Former Member
0 Likes
3,971

Hi PI experts.

Using PI 7.4 Java only and trying to make a mutimapping splitting an incoming message into mutiple messages using the following guide.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/600b455f-01cd-2b10-0cab-a50e47a8f...

My operation mapping is as the picture showes.

When I do the mappings 1...1 then the mappings work.

One message in and out I get one correct message.

I tried to change the second mapping to 0...unbounded.

The mapping adds the Message and Message1 segments.

When i test the Operation Mapping after i activated it the Operation mapping only produces the two message segments and nothing else.

I then tried to change the first mapping to 0...unbounded. When I test the operation mapping now I have to add the Message and Message 1 segments and it works.

I then tried to process a file with my FTP adapter and ofcourse the mapping failed.

Do I have to add the Messaeg and Message1 segment in my content conversion?

How is this done because when I change the document name in the conten conversion the conversion fails.

Is this the correct way to make a split of messages in PI 7.4 Java obly or can I use the interface split functionality in the integration Flow in NWDS?

What shall I try next to make any progress?

Thanks for all the help I can get.

Andreas

View Entire Topic
Muniyappan
Active Contributor
0 Likes

Hi,

Do I have to add the Messaeg and Message1 segment in my content conversion?

you don't have to add this.

I then tried to process a file with my FTP adapter and ofcourse the mapping failed.

did you put Message tag in the input file. if yes then you have to remove it.

Regards,

Muni.

Former Member
0 Likes

Only used the Message tag when i tested the Operation Mapping.

The message processed by the FTP looks as the message in the interface it self.

No message tags added by the dapater.

//Andreas

Muniyappan
Active Contributor
0 Likes

Hi,

did not get you? is it wokring?

check this

Regards,

Muni.

Former Member
0 Likes

If I add the message tags when i test the operation mapping then the operation mapping works.

When i try to process a message with the file adapter without the message tags then the mapping fails.

//Andreas

Former Member
0 Likes

I have the namespace in the content conversion.

//Andreas

Former Member
0 Likes

When I post a message as xml file generated from the mapping it self.

I get an error that no receiver interface could be determined.

This message is with the Message tags included and read by an FTP adapter processing the message thru the scenario.

If i remove the message tags and try to process the message thru the scenario I get a mapping error that it is not possible to mapp the first segment in the target structure.

If I use the content conversion from txt file as I did before the multimapping was in place I get the following error.

Same as with the xml without the message tags.

//Andreas

Former Member
0 Likes

Hi

Can you please tell your exact requirement. I mean why you need 2 mapping step and both of them are 0:unbound ?

Muniyappan
Active Contributor
0 Likes

Hi,

first error happens because of message tag.

in the second and third error screen shot show that values missing in the queue context. this is means mandatory fields are missing. or you are not handling the context properly.

please reply back for indrajits question? why do you use 2 mappings?

can you show your source and target message?

Regards,

Muni.

Former Member
0 Likes

I'm using 2 mappingstep because I have a content conversion that will be to complex if I only use the second mapping.

Operation mapping.

First message mapping.

Second message mapping.

//Andreas

Former Member
0 Likes

Hi ,

So the first mapping is not 0:unbounded, so check this way

take the input payload and test operation mapping ( step 1 to 1 ).

Copy the xml that has been generated in the target side, put that in the source and execute step 2 to 2.

This way you will be able to identify the which step is causing the problem and why.

Harish
Active Contributor
0 Likes

Hi Andreas,

If you are using multimap (0..n or 1..n) you need to change all the maps used in operation mapping. your first map should also 0..n.

regards,

Harish

Former Member
0 Likes

Like this?

First mapping.

Second mapping.

//Andreas

Harish
Active Contributor
0 Likes

Yes. Now check if your scenario is working.

Please note if you are pushing the XML into integration engine , you need to add the message and message1 tag in the XML. If you are testing from source FTP then no need to add the tags.

Former Member
0 Likes

If I do not use the message tags when I test the mapping then the first step fails.

If I use the message tags in the message then the whole mappings executes ok.

The thing is if I use the message with message tags in it shows up red in the source structure but the mapping executes.

If I do not us it the operation mapping says I can't populate the target structure.

This is when I do test of mapping in ESR.

//Andreas

Former Member
0 Likes

Get the same error.

Harish
Active Contributor
0 Likes

To test the mapping in ESR (operation or message map) you need to use the message message1 tag.

To test end to end no need to worry about the message message1 tag.

Ignore the red in the source of operation mapping.

Do you have any other issue when you execute the message in ESR with message message1 tag

regards,

Harish

Former Member
0 Likes

No issues at all with message adn message1 tags in ESR.

Only issue when I test end to end without message and message1 tags.

Exact same payload in the messages except message and message1 tags.

//Andreas.

Harish
Active Contributor
0 Likes

The Problem is in your message mapping, while executing end to end it is not able to create the messages node in one the map.

Please check the map if the node is mapping and working in ESR.

Former Member
0 Likes

First test mapping with Message and Message1 tags in ESR.

Here is the mapping test without Message and Message1 tags.

Same error as when I test end to end.

//Andreas

Former Member
0 Likes

Tested to do a mapping with single mapping step now and got the same error.
when I did end to end mapping.

//Andreas