I need to create a UDF that outputs 3 fields to the target structure using "all values in queue" but there are another 3 fields that can map directly to a single field in the target structure. When I tried to do this, the data through the UDF was misaligned with the data that was directly mapped. I solved this by passing the direct map fields into the UDF also but this becomes a problem in my next mapping as the number of fields starts to grow.
The image shows what I really need to do, at this works. But when I take the direct mapped values out and map them independently, the data is out of sync. Thanks for the help.

