Configure field mapping

The field map is used by the Transfer Attributes tool Transfer Attributes and other editing tools that copy attributes from one feature layer and paste them to other features. You can map fields, automatically match corresponding fields, and embed ArcGIS Arcade expressions.

The attribute field map is available on the Edit tab, in the Tools group from the dialog box launcher, and in the Transfer Attributes tool pane Transfer Attributes by clicking the Editor Settings button Menu.

  1. On the Edit tab, in the Tools group, click the Editor Settings dialog box launcher Launcher.
  2. Click Field Mapping.
  3. Click the Fields tab and choose a source and target feature layer.
    1. Click the Source drop-down arrow and choose a source layer.
    2. Click the Target drop-down arrow and choose a target layer.
  4. To reset, clear, or automatically match fields, click the following tools on the toolbar:
    • Reset Undo—Restores the field mapping to the last saved settings.
    • Auto Match Switch Selection—Automatically maps fields based on matching field name and data type. This is the default setting.
    • Clear Clear Results—Overrides the current field mapping to explicitly transfer no attributes.
  5. To code or edit ArcGIS Arcade expressions, click the Expression tab.
    Caution:

    Changing settings on the Fields tab overrides the current expression. When this occurs, you must reenter the expression.

    • Reset Reset—Restores the expression to the last saved settings.
    • Verify Verify—Checks for syntax errors. The line number and reason are shown in the error message.
    • Import Show in folder—Imports a label expression (LXP) file.
    • Export Export—Exports the expression to a label expression (LXP) file.
  6. Click OK to save your settings and close the dialog box.
Dive-in:

Using the field mapping profile, you can code ArcGIS Arcade expressions to perform calculations and return values used by a specific function. For example, you can query the current value of a target field and copy the source attribute value only if it is greater than the target value.

Field values maintain their data type, and multiple lines separated by a comma are allowed in the same window. Input and output types are determined by the profile of the function for which the expression is evaluated.

The following example copies the values in the source feature fields Elevation and Rotation to the target fields with the same name.

return {
  "Elevation" : $sourceFeature['Elevation'],
  "Rotation" : $sourceFeature['Rotation']
}

Related topics


In this topic