When you add incoming struct and array fields to the output, you can choose to preserve the incoming field. This option copies the field to the output without changing the structure. You can select this option when the output is hierarchical.
When you add a nested array and select this option, the records that get created vary based on how you configure the data source for the output group.
You want to extract the description information from a nested array of maintenance records. The description information is in an array of strings. You want the output data to also be in an array of strings.
Add the description array to the output group and choose
Preserve Incoming Field
The following image shows the incoming and output fields:
creates the output array, it sets the data source for the description array to
, indicating that the information for the output array comes from the elements in the desc array in the Input group. The data source for the Output group determines the structure of the output records.
sets the data source for the Output group to
. When you run the mapping,
collates all descriptions into one output record. To write the descriptions to separate records for each vehicle, set the data source to
. To write the descriptions to separate records for each maintenance record, set the data source to