ERROR

ArcGIS Pro: 160145 | The field is not nullable

First Published: June 27, 2023
Last Published: July 16, 2026

Error Message

Performing a calculation that includes null values on a field in an attribute table using the Calculate Field tool fails and returns the following error:

Error:
160145: The field is not nullable.
Error 160145: The field is not nullable

Cause

  • The Calculate Field tool is used to calculate the values of a field in a shapefile. Shapefiles are independent layers inside a folder, and shapefiles are not nullable. Refer to ArcGIS Pro: Geoprocessing considerations for shapefile output for more information.
  • The Allow NULL field setting is not checked. Some fields are also not nullable by default, for example, the OBJECTID or GLOBALID field.

Solution or Workaround

Export the shapefiles into feature classes

To calculate a null field, export the shapefile to a feature class. Refer to ArcGIS Pro: Export a shapefile for instructions.

Run the calculation on a different field or create a new nullable field in the attribute table

  1. Add a new field with the same data type. Refer to ArcGIS Pro: Add Field (Data Management Tools) for instructions. Ensure the Allow NULL check box is checked when creating the new field.
Allow NULL checkbox is checked when creating the new field.
  1. Populate the new field with the same values as the existing field. Refer to How To: Copy field values to another field in ArcGIS Pro for instructions.
  2. Run the Calculate Field tool on the new field. Refer to ArcGIS Pro: Calculate Field (Data Management Tools) for instructions.

Article ID: 000030307

Software:
  • ArcGIS Pro

Get support with AI

Resolve your issue quickly with the Esri Support AI Chatbot.

Start chatting now

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Start chatting now

Go to download options