Skip To Content

Configure field mapping

In the Editor Settings dialog box, on the Field Mapping tab, you can specify how attribute field values on a source layer are processed and copied to fields on a target layer.

Field mapping is used by the Transfer Attributes tool and when you copy and paste attribute values between features.

  1. Open Editor Settings using one of the following methods:
    • In the Modify Features pane, click Transfer Attributes Transfer Attributes, click the Editor Settings button Menu, and click Field Mapping Field Mapping.
    • On the Edit tab, in the Tools group, click the Editor Settings dialog box launcher Launcher.
  2. Set the target and source layers.
    1. Click the Fields tab.
    2. Click the Source and Target drop-down arrows and choose the layers containing the fields between which you want to copy attribute values.
  3. In the Fields table, click a field drop-down arrow in the Source column and map it to the corresponding target field.
    Note:

    To transfer geometry, map the Shape field to the corresponding target field.

  4. To reset or clear the field mapping settings, click the appropriate control on the toolbar above the Fields table.
    • 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 verify, import, or export an Arcade field expression, click the Expression tab.
    Note:

    Arcade is a scripting language that is used to evaluate embedded expressions, perform calculations, and return values used by a specific function. For example in an attribute rule, a label, or a field calculation.

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

    Using Arcade, you can embed logic that you can't otherwise accomplish with the standard controls. For example, query the current value of a target field and copy the source value only if it is greater than the target value.

    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']
    }

    Variable NameTypeDescription

    $sourceFeature

    Feature

    The source feature whose field value is copied to the target field.

    $targetFeature

    Feature

    The target feature whose field value is overwritten by the source field.

    $sourceLayer

    FeatureSet

    A collection of features in the same layer as $sourceFeature. Only supported for Feature Layers.

    $targetLayer

    FeatureSet

    A collection of features in the same layer as $targetFeature. Only supported for Feature Layers.

    $sourceDatastore

    FeatureSetCollection

    A collection of layers in the same feature as the $sourceFeature executing the script.

    $targetDatastore

    FeatureSetCollection

    A collection of layers in the same feature as the $targetFeature executing the script.

    $map

    FeatureSetCollection

    A collection of feature service layers in the same map as the $sourceFeature whose popup is displayed in the view.

    Arcade profile

    To learn more, see the ArcGIS Arcade developers guide.

  6. Click OK to save your settings and close the dialog box.

Related topics


In this topic