ERROR

There was an error publishing the service

Last Published: April 19, 2023

Error Message

In ArcGIS Online, attempting to publish items or view a hosted item detail page for an Excel workbook (.xsls) or a comma-separated values (CSV) file returns the following error message:

Error: 
There was an error publishing the service
The error message.

Cause

  • ArcGIS Online is blocked on the organization's network for security reasons. This causes connectivity failures when publishing services to ArcGIS Online through the organization's network.
  • Two or more fields in a file share the same name or are duplicates.
  • The data in the file cannot be read accurately by ArcGIS Online in the Excel workbook (.xsls) file format. Refer to Problem: Unable to publish a hosted feature layer using an Excel file to ArcGIS Online for more information.

Solution or Workaround

Depending on the cause, follow one of the workarounds below to resolve the error.

Unblock ArcGIS Online

Unblock arcgis.com, on the organization's network. Contact the organization's IT operations team for further assistance.

Rename or delete the duplicate field

Note:
Field naming in ArcGIS Online is not case sensitive. ArcGIS Online recognizes data as duplicates when two or more fields share the same spelling despite distinctive upper case and lower case letters.
The Excel workbook with a duplicate field renamed.

Convert the Excel workbook file to a CSV file

  1. Open the Excel workbook (.xsls) in Microsoft Excel.
  2. Click File > Save As.
  3. On the Save As page, click the file format drop-down menu and select CSV (Comma delimited) (*.csv). Click Save.
The Save As page in Microsoft Excel.
  1. Upload the CSV file to ArcGIS Online to publish it as a layer. Refer to ArcGIS Online: Add files as items for instructions.

Article ID:000030070

Software:
  • ArcGIS Online

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