Merging Two Loops into One - 6.3

Talend Data Mapper User Guide

EnrichVersion
6.3
EnrichProdName
Talend Big Data Platform
Talend Data Fabric
Talend Data Management Platform
Talend Data Services Platform
Talend MDM Platform
Talend Real-Time Big Data Platform
task
Design and Development
EnrichPlatform
Talend Studio

In the Maps/Looping/LoopMergeTwoLoops example you can see the case where the input side has two corresponding loops to be merged into a single loop in the output. To do this, map the first loop (the one with more elements) normally as you see with Street, City and State.

Then for the elements in the 2nd loop (Detail) you need to use an aggregate function to pull the value for the desired index from the input loop as shown below.