Alter Field (Data Management)

AllSource 1.0    |

Summary

Renames fields and field aliases or alters field properties.

Usage

  • This tool allows you to rename fields or field aliases for any geodatabase table or feature class.

  • When using in-memory feature classes or tables, renaming the ObjectID, Shape, or other required fields such as those found in network analysis layers can result in corrupted data or unexpected behavior.

Parameters

LabelExplanationData Type
Input Table

The input geodatabase table or feature class that contains the field to alter.

Table View; Raster Layer; Mosaic Layer
Field Name

The name of the field to alter. If the field is a required field, only the field alias can be altered.

Field
New Field Name
(Optional)

The new name for the field.

String
New Field Alias
(Optional)

The new field alias for the field.

String
New Field Type
(Optional)

Specifies the new field type for the field. This parameter is only applicable if the input table is empty (does not contain records).

  • TextThe field type will be text. Text fields support a string of characters.
  • Float (32-bit floating point)The field type will be float. Float fields support fractional numbers between -3.4E38 and 1.2E38.
  • Double (64-bit floating point)The field type will be double. Double fields support fractional numbers between -2.2E308 and 1.8E308.
  • Short (16-bit integer)The field type will be short. Short fields support whole numbers between -32,768 and 32,767.
  • Long (32-bit integer)The field type will be long. Long fields support whole numbers between -2,147,483,648 and 2,147,483,647.
  • DateThe field type will be date. Date fields support date and time values.
  • Blob (binary data)The field type will be BLOB. BLOB fields support data stored as a long sequence of binary numbers. You need a custom loader or viewer or a third-party application to load items into a BLOB field or view the contents of a BLOB field.
  • Raster imageryThe field type will be raster. Raster fields can store raster data in or alongside the geodatabase. All ArcGIS software-supported raster dataset formats can be stored, but it is recommended that only small images be used.
  • GUID (globally unique identifier)The field type will be GUID. GUID fields store registry-style strings consisting of 36 characters enclosed in curly brackets.
String
New Field Length
(Optional)

The new length of the field. This sets the maximum number of allowable characters for each record of the field. This parameter is only applicable to fields of type Text or Blob (binary data). If the table is empty, the field length can be increased or decreased. If the table is not empty, the length can only be increased from the current value.

Long
New Field IsNullable
(Optional)

Specifies whether the field can contain null values. Null values are only supported for fields in a geodatabase. This parameter is only applicable if the table is empty (does not contain records).

  • Checked—The field can contain null values. This is the default.
  • Unchecked—The field cannot contain null values.
Boolean
Clear Alias
(Optional)

Specifies whether the alias for the input field will be cleared. The New Field Alias parameter value must be empty to clear the alias of the field.

  • Checked—The field alias will be cleared (set to null). The field alias parameter must be empty.
  • Unchecked—The field alias 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