Hi Ignaz,
perhaps it is a problem in the sequencing of your structure mappings, so that the sub structure is mapped before the parent structure. The order bases on the alphabetic name.
Thomas Elsaesser gave a good solution that we also implemented in the following thread:
How to control sequence of mapping processing in AIF?
Kind regards
Christoph