PROBLEM

Error 00037 is returned when attempting to publish a map service from ArcMap to ArcGIS Online

Last Published: April 25, 2020

Description

When attempting to publish a map service from ArcMap to ArcGIS Online, the following warning prompt appears:

"Unable To Save. You must fix the errors in your document before you can preview, publish or save".
Unable to save error message.

After clicking OK, the following error message is returned in the Prepare window even though all the basemap layers are removed from the List By Source tab in the Table Of Contents before attempting to publish a map service.

Error:   
00037: Basemap layers cannot be published directly to a map service
An image showing the 00037 error message.
Note:
To navigate to the Prepare window, click the Analyze button in the Service Editor dialog box.

Cause

This error occurs because the map contains a basemap layer, which cannot be published directly to a service. Removing a basemap layer from the List By Source tab in the Table Of Contents only removes the basemap layer from the data view, but not from the map document. For more information, refer to ArcMap: Using the table of contents.

Note:
For more information on the cause and solutions, refer to ArcMap: 00037: Basemap layers cannot be published directly to a map service.

Solution or Workaround

The following are possible ways to ensure all the basemap layers are removed from the map document:

Remove the basemap layer from the Prepare window
Note:
Do not close the Service Editor dialog box. This is to avoid the Prepare window from closing.
  1. In ArcMap, click the Analyze button in the Service Editor dialog box.
An image showing the Service Editor window and the Analyze button.
 
  1. In the Prepare window, right-click the error message and click Remove Layer.

    An image of the analyzer message in the Prepare window.
     
Remove the basemap layer from the List By Drawing Order tab
  1. In the Table Of Contents, click the List By Drawing Order icon.

    List By Drawing Order icon. 
     
  2. Right-click the basemap layer and click Remove.

    Remove basemap layer
     

Article ID:000020044

Software:
  • ArcMap

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic