PROBLEM

Layers in a map service full extent display as NaN

Last Published: December 9, 2025

Description

Published map services result in NaN, 'Not a Number' as the FullExtent property. For example, the initial full extent is as follows:

XMin: -1.2517040322409505E7
YMin: 3946983.752765715
XMax: -1.2444192662924586E7
YMax: 3999198.926415506
Spatial Reference: 102100 (3857)
And the resulting full extent after publishing is displayed as follows:
XMin: NaN
YMin: NaN
XMax: NaN
YMax: NaN
Spatial Reference: 102100 (3857)

Cause

The issue is caused by corrupted data or an incomplete publishing process.

Solution or Workaround

Select and apply any of the workarounds provided.

  1. Export the data to a file geodatabase. For more information, refer to ArcGIS Pro: Export data.
  2. In the Catalog pane, expand the exported file geodatabase, and copy the feature classes into the enterprise geodatabase.
  3. Register the enterprise geodatabase with ArcGIS Server. For more information, refer to ArcGIS Server: Register your data with ArcGIS Server using ArcGIS Pro.
  4. Publish a new map service to ArcGIS Server. Refer to ArcGIS Server: Map service for more information.
  • Alternatively, if the map service is consumed through ArcGIS Runtime SDK for .NET, the full extent can be extracted using the following script:
var table = await ShapefileTable.OpenAsync(@"C:\Users\jenn6286\Downloads\states_21basic\states.shp");

var features = await table.QueryAsync(new QueryFilter(){WhereClause= "1=1"});
if (features != null)
{
	Envelope fullExtent = GeometryEngine.Union(from f in features where f.Geometry != null select f.Geometry).Extent;
}

Article ID: 000018637

Software:
  • ArcGIS Runtime SDK for NET 10 2 7
  • ArcGIS Web AppBuilder
  • ArcGIS Server
  • ArcGIS Runtime SDK for NET 100 x

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