Hello,
following strange graphical mapping behaviour. Goal is to create a certain target segment only for those E1EDP05 source segments where field KSCHL exists.
And I need to align the KSCHL contexts with the E1EDP05 contexts (P05 occurence in P01).
Implementation: createIf (formatByExample ( exists(KSCHL), E1EDP05)
All works fine except when we have an input document which contains no P05 segment at all. In this case, the function exists(KSCHL) surprisingly returns a queue with one element (false), and not an empty queue. But the P05 parameter returns an empty queue, the result of formatByExample then is an error because the queues have not same length.
The funny thing is when the input document contains one P01 segment without P05 elements, and other P01 segments with P05 elements, it does NOT return that strange "false" value for the segment which does not contain P05 elements, but an empty queue (which is as expected).
I consider this a bug. In PI 7.0, the behaviour is ok, there we always have an empty queue.
We are on PI 7.11 Service Pack 07.
What can I do ? I tried several workarounds (e.g. mapWithDefault), but nothing worked.
CSY