cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver Determination Split failing with mapping error

Former Member
0 Kudos

Hi,

We are on PI 7.11.

We have an interface where a single file must map to an IDOC and under certain circumstances should generate an email.

We have a split in the Receiver Determination which always sends to the IDOC mapping and if a XPATH condition is true it should send to the MAIL mapping.

If the XPATH is true then it successfully sends data to the IDOC and also to the MAIL.

But, if the XPATH is false then it sends to the IDOC and maps correctly but in the Monitor we see the split taking place and an error on the email side saying: Split mapping created no messages

Help appreciated.

Gareth


Accepted Solutions (0)

Answers (4)

Answers (4)

iaki_vila
Active Contributor
0 Kudos

Hi Gareth,

But, if the XPATH is false then it sends to the IDOC and maps correctly but in the Monitor we see the split taking place and an error on the email side saying: Split mapping created no messages

Are you using multimapping?, in this case, you should check that the message tag for the mail interface won't be generated.

Mark, im a little confused with your solution, isnt necessary a to use xpath in the receiver determination?, in order to choose one receiver or another, (to determine later the i.d desired).

Regards.

markangelo_dihiansan
Active Contributor
0 Kudos

Yes, it is necessary to use xPath in receiver determination. In interface determination, there is a choice of using xpath (Indrajit's suggestion) or not (by creating two interface determinations with a specific entry under the receiver service/party).

Regards,

Mark

Former Member
0 Kudos

Hi Gareth,

Design your interface in the following way

create two mappings one for file to idoc and the other for file to mail.

In the receiver determination use two conditions

1. one for Idoc

2. one for Mail

In the interface determinatin, use two condtions

1. If condtion true , then call file to idoc map

2. If condtion true, then call file to Mail map.

markangelo_dihiansan
Active Contributor
0 Kudos

Or you could also create two interface determinations so that it (the interface det) is only called when there is an actual receiver found in receiver det. The advantage of this approach is that the system will not search for additional xpath conditions at runtime.

Regards,

Mark

ambrish_mishra
Active Contributor
0 Kudos

Hi Gareth,

the problem is that in multi-mapping, the message has to get split even though the XPATH condition is false. The mapping to email API is not separate.

Why don't you tryu to create an additoinal mapping to the MAIL API and then do conditional interface determination.

that should work.

cheers,

Ambrish

Harish
Active Contributor
0 Kudos

Hi,

 

The error is at
Interface
determination stage. You need to use two receiver service/system from
Receiver determination and determine the email condition in RD.

Regards,

Harish