PROBLEM

Unable to configure fields to ensure null values are not allowed in ArcGIS Field Maps

Last Published: March 11, 2022

Description

In ArcGIS Field Maps, administrators are unable to configure fields so that null values are not allowed. Fields with null values pose a problem because in some instances, data are collected and submitted successfully even though they contain null values.

The image below demonstrates an instance wherein data are submitted successfully although a null value is included in the Test field.

The Test field showing a null value included and data submitted successfully.

Cause

This is by design. In ArcGIS Desktop, the Allow Null option cannot be modified for layers containing existing data, or if the table or feature class is registered as versioned. Therefore, the fields in Field Maps are automatically set to include null values.

Solution or Workaround

Use one of the methods below to resolve the issue.

Duplicate the existing features in ArcGIS Pro

  1. In ArcGIS Pro, click the Analysis tab on the top ribbon and click Tools.
  2. In the Geoprocessing pane, search for and select Copy Features (Data Management Tools).
  3. In the Copy Features pane, click the Parameters tab.
  4. Select the original feature layer for Input Features, and fill in a new feature layer name for Output Feature Class. Click Run. The new feature layer is added to the map.
  5. Open the attribute fields from the original feature layer, and delete all the features.
  6. Open the fields view to uncheck the Allow NULL check box. Click Save.
The fields view with the option to uncheck the Allow NULL check box.
  1. In the Contents pane, click the newly created feature layer from Step 4. Copy the features from the new feature layer and paste them in the original feature layer. Refer to ArcGIS Pro: Copy selected features for instructions to copy the features and use Paste Special to paste the features in the original layer.
  2. Remove the new feature layer and save the project before republishing it to ArcGIS Online.

Duplicate the existing features in ArcMap

  1. In ArcMap, navigate to the Catalog pane and right-click the geodatabase. Click Import > Feature Class (single).
  2. In the Feature Class To Feature Class window, select the original feature layer for Input Features and fill in a new feature layer name for Output Feature Class. Change Output Location, if necessary. Click OK.
The Feature Class To Feature Class window with the option to select the original feature layer and fill in a new name.
  1. Click the Edit tool on the Editor toolbar and click Start Editing.
  2. In the Table Of Contents pane, right-click the newly created feature layer and click Selection > Select All.
  3. Right-click the selected features and select Delete. Click Stop Editing > Yes.
  4. In the Catalog pane, right-click the new feature layer and select Properties.
  5. In the Feature Class Properties window, click the Fields tab and select the desired field.
  6. Under Field Properties, change Allow NULL values to No. Click Apply > OK.
The Field Properties window with the Allow NULL values option.
  1. Repeat Steps 3 through 4 on the original feature layer.
  2. Copy the selected features and paste them in the new feature layer. Refer to ArcMap: Copying and pasting features for instructions. Click Stop Editing > Yes.
  3. Remove the original feature layer and republish the map to ArcGIS Online.

The image below demonstrates a failed submission when a field has a null value in ArcGIS Field Maps.

The Field Maps window showing the failed submission when the field includes a null value.

Article ID:000027341

Software:
  • ArcGIS Pro 2 8 x
  • ArcGIS Field Maps iOS
  • ArcGIS Pro 2 7 x
  • ArcMap 10 7
  • ArcGIS Pro 2 x
  • ArcMap 10 8

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options