laptop and a wrench


When publishing from ArcMap to ArcGIS Online with a service name that is contained within the name of an existing service, 'Upload Service Definition' fails with the following error, "Error 0011398: Service name already exists."

Last Published: July 28, 2017 ArcGIS for Desktop
Bug ID Number BUG-000092985
SubmittedDecember 15, 2015
Last ModifiedOctober 20, 2021
Applies toArcGIS for Desktop
Version found10.3.1
Operating SystemWindows
Operating System Version7.0 64 Bit
StatusWill Not Be Addressed


After deleting a service from ArcGIS Online, publishing a new service with the same name as the deleted service fails with the following error:
ERROR 001398: Service name <service_name> already exists. 
image of error


The error occurs when attempting to publish a service with the same partial name of an existing service.


To publish the service, export the service definition file from ArcMap and add as an item to ArcGIS Online. The instructions provided describe how to publish a new service with the same partial name as an existing service.
  1. In ArcMap, click File > Share As > Service.
  2. Select the Save a service definition file option, and click Next.
An image of the 'Share as Service' dialog box.
  1. Select the Choose a connection option, and select an existing connection from the drop-down list.
  2. Enter a service name, and click Next.
An image of selecting a connection and specifying the service name.
  1. Select a location to save the service definition file, and click Continue. The Service Editor dialog box appears.
An image of selecting a location to save the service definition file.
  1. Set the service definition properties, and click Analyze. Warnings and error messages are displayed in the Prepare window.
  2. Fix any errors in the Prepare window, and click Stage. For more information on creating and saving a service definition file, refer to Create a service definition in ArcMap.
An image of the Service Editor.
  1. Sign in to ArcGIS Online.
  2. Navigate to My Content > Add Item > From my computer to add the service definition file.
  3. Select the service definition file, check Publish this file as a layer, and add tags to describe the file.
  4. Click Add Item, and the added file appears in My Content.
An image of adding item from the computer.
An image of a service definition file published as a hosted feature layer.

Steps to Reproduce

Bug ID: BUG-000092985


  • ArcGIS for Desktop

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic