ERROR

ArcGIS Enterprise portal and ArcGIS Online: Test execution error. Cannot access property of null object. Verify test data

Last Published: March 28, 2025

Error Message

When running an Arcade expression in a Map Viewer pop-up, the following error is returned:

Error:
Test execution error: Execution error - Cannot access property of null object. Verify test data.
The error message

Cause

The layers are empty and do not contain any features. The function cannot be executed on an empty dataset. When a layer contains no feature, the attributes are considered missing because there are no values, not even null values.

Solution or Workaround

Add features to the affected layer. Refer to Portal for ArcGIS: Add features or ArcGIS Online: Add features for instructions. The error message can also be addressed by running an in statement within the script to isolate empty attributes. The following is a sample script:

If (IsEmpty(first(fs)) == false){
    Return firstFeature[“Shape_Length”];
}

else{
    return “No value found”;
}

Article ID: 000034988

Software:
  • ArcGIS Online
  • Portal for ArcGIS
  • ArcGIS Enterprise

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