Mapping Non-Looping to Looping - 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 this case, you probably do not want the loop in the output to loop, as you have only one value in the input to map to it. You have two choices here:

  • Unroll the loop - Unrolling the loop is done by right-clicking on the output looping map element and selecting Unroll Loop. This makes a separate element that does not loop, and then you can map it normally. The loop still exists in the original map element, which you do not need to map.

  • Use FixedLoop - This loop function emits the loop a fixed number of times, by default once. Just use this as the loop expression for the output element and then map the elements normally.