Assign Default To Field (Data Management)

ArcGIS Pro 3.4 | | Help archive

Summary

Creates a default value for a specified field. When a new row is added to the table or feature class, the specified field will be set to this default value.

Usage

    Caution:

    This tool modifies the input data. See Tools that modify or update the input data for more information and strategies to avoid undesired data changes.

  • The default value is dependent on the field type chosen in the Field Name parameter. If you choose a field that is type LONG (long integer), the default value must be type LONG.

  • Adding subtypes to the default value is optional. If you add a subtype, there must be a subtype field in the feature class or table. You can set the subtype field using the Set Subtype Field tool.

  • You can also view and manage subtypes in Subtypes view which can be opened by clicking the Subtypes button found in the Design section of the Data ribbon, or by clicking the Subtypes button on the Fields view ribbon.

  • This tool can also be used to clear the default value of a field or subtype.

Parameters

LabelExplanationData Type
Input Table

The input table or feature class that will have a default value added to one of its fields.

Mosaic Layer; Raster Layer; Table View
Field Name

The field to which the default value will be added each time a new row is added to the table or feature class.

Field
Default Value
(Optional)

The default value to be added to each new table or feature class. The value entered must match the data type of the field. If the field chosen has a coded value domain assigned to it, the values from the coded domain will be included in the parameter value list..

String
Subtype
(Optional)

The subtypes that can participate in the default value.

String
Clear Value
(Optional)

Specifies whether the default value for either the field or the subtype will be cleared. The Default Value parameter must be empty to clear the default value of the field. To clear the default value for the subtype, leave the Default Value parameter empty and specify the subtype to be cleared.

  • Checked—The default value will be cleared (set to null). The default value parameter must be empty.
  • Unchecked—The default value will not be cleared. This is the default.
Boolean

Derived Output

LabelExplanationData Type
Updated Input Table

The updated input table.

Table View; Raster Layer; Mosaic Layer

Environments

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes

Related topics