cancel
Showing results for 
Search instead for 
Did you mean: 

Error mapping PI FileToIdoc

Former Member
0 Kudos

Hi experts

I have a mapping with an inbound flat file and in outbound a n Idoc file description (with Idoc occurrences 0..unbounded)

I want create Idocs only when plant different of 1003.

I have made this mapping, it works :

But when I have only line with plant = 1003 I have this message :

What can I do to fix it ?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member184720
Active Contributor
0 Kudos

>>>What can I do to fix it ?

You don't want to create IDOC when the plant value is "1003 " right?

If you want to avoid the mapping failure and filter the messages, handle this logic at receiver determination condition using xpath.


when plant != 1003 route the message to receiver so that when a message only has 1003 it'll not execute the mapping.

Former Member
0 Kudos

OK, and when I have lines with plant = 1003 AND lines with plant != 1003, only lines with plant !=1003 will pass, that's it ?

former_member184720
Active Contributor
0 Kudos

>>>OK, and when I have lines with plant = 1003 AND lines with plant != 1003, only lines with plant !=1003 will pass, that's it ?


No. That entire message(lines with plant = 1003 and plant !=1003) will be passed to message mapping.

Again you have to handle this filter conditions in your mapping too.(which you've already done).


So you just need to add this additional condition at RD using xpath which will filter if a message only has plant =1003.

Former Member
0 Kudos

OK, I'll try it.

Thanks

Answers (0)