PROBLEM
When creating a new field for a shapefile in ArcGIS Desktop, it is recommended to choose the data type which consumes the least storage space to improve performance. In some instances, when creating a field, the field's data type changes to long integer despite specifying the data type as short integer.
Note: In ArcGIS Pro, the field's data type is displayed as 'Short' or 'Long' instead of 'Short Integer' or 'Long Integer.'
For example, the Add Field dialog box in ArcMap below displays the ‘Rank’ field created with the Short Integer data type and a Precision of ‘0’.
After the field is created, the data type changes to ‘Long’ and the Precision is ‘5’ when viewing the field properties in ArcMap, as shown in the image below.
This is by design for ArcGIS 10.6.1 and later. A long integer field is created with a precision of five by default, if the precision is unspecified, zero, or has a value from five to ten.
Once created, a field’s data type in a shapefile or a database table cannot be modified. Depending on the software, follow either of the workarounds below to create a short integer field, set the precision, and populate the new field with the values from the existing field.
Note: When creating a new field, input a precision of 1, 2, 3, or 4. The precision determines the field length. Negative numbers require additional precision to store the negative sign.
ArcMap
ArcGIS Pro
Article ID: 000024717
Get help from ArcGIS experts
Download the Esri Support App