You can configure the source fields that you want to use in the data flow. Configure source fields on the
tab of the
Configuration options vary based on the connection type. For most connection types, you can add and remove source fields, configure how the fields are displayed, edit field metadata, and restore original fields from the source object. For some connection types, you can restore original fields from the source object only. For more information about configuring source fields, see the help for the appropriate connector.
You can configure source fields in the following ways:
Add the source file name to each row.
If you are using a file list as the source, and you want to identify the source for each row, add the source file name to the field list. You can pass this information to the target table.
To add the source file name to each row, enable the
Add Currently Processed Filename Field
Add Currently Processed Filename Field
option is visible for file sources.
When you enable or disable this option,
adds or removes the CurrentlyProcessedFileName field but it doesn't synchronize the fields with the source object. To synchronize with the source object, click the
icon. You can synchronize all fields, synchronize new fields only, or skip the synchronization.
Retain existing fields at runtime.
If field metadata changes after a mapping is saved,
uses the updated field metadata when you run the mapping. Typically, this is the desired behavior. However, if the mapping uses a native flat file connection and you want to retain the metadata used at design time, enable the
Retain existing fields at runtime
option. When you enable this option,
mapping tasks will use the field metadata that was used when you created the mapping.
Add and remove fields.
You can add fields to a mapping source. Add a field to retrieve a field from the source object that is not displayed in the list. To add a field, click
, and then enter the field name, type, precision, and scale.
You can also remove fields that you do not want to use in the mapping. To remove fields, select the fields that you want to remove, and then click
Change the sort order.
You can display source fields in native order, ascending order, or descending order. To change the sort order, click
, and select the appropriate sort order.
Use technical field names or labels.
You can display field names by label or technical field name.
To change the display option for field names, select
Use Technical Field Names
Edit field metadata.
You can edit the metadata for a field. You might edit metadata to change information that is incorrectly inferred. When you edit metadata, you can change the name, native type, native precision, and native scale, if applicable for the data type. For some source types, you can also change the transformation data type in the
To edit the name or metadata for one or more fields, click
. When you edit metadata, you can also display native names by label or technical field name. To change the display option for native names, select
Show Technical Field Names
When you change the metadata for a field, avoid making changes that can cause errors when you run the task. For example, you can usually increase the native precision or native scale of a field without causing errors. But if you reduce the precision of a field, you might cause the truncation of data.
Restore original fields from the source object.
To restore the original fields from the source object, enable the
option. When you synchronize fields,
restores deleted source fields and adds fields that are new to the source.
removes any added fields that do not have corresponding fields in the source object.
updates the metadata for existing source fields based on whether you synchronize all fields or synchronize new fields only. When you synchronize all fields,
replaces any field metadata that you edited with the field metadata from the source object. When you synchronize new fields only,
retains the metadata for any existing source field.