PROBLEM

Field aliases of shapefiles are not preserved in ArcGIS Online or Portal for ArcGIS

Last Published: March 27, 2024

Description

In ArcGIS Online or Portal for ArcGIS, shapefiles can be added as an item to create a hosted feature layer. However, the resulting feature layer does not have field aliases preserved, and both the field and display names are identical.

In this example, the shapefile is created in ArcGIS Pro with different field names and field aliases. However, when the shapefile is added to ArcGIS Online, the feature layer’s display names follow the field names instead of the field aliases.

The field alias names in ArcGIS Pro
The display names in ArcGIS Online following the field names instead of the alias names

Cause

This behavior is a known limitation for shapefiles. They make use of the dBASE file format (.dbf file) to store attributes, which does not include field aliases, unlike geodatabases. Shapefiles can have aliases when referenced within a map document or layer file, but not as a stand-alone file or when shared without a layer file. Refer to ArcGIS Pro: Geoprocessing considerations for shapefile output for more information.

Solution or Workaround

Configure the shapefile’s layer pop-ups in ArcGIS Pro

  1. Open ArcGIS Pro and add the shapefile to the project.
  2. Modify the shapefile layer's field aliases using the Configure Pop-ups pane.
    1. In the Contents pane, right-click the shapefile layer and click Configure Pop-ups.
    2. In the Configure Pop-ups pane, click Edit pop-up element The Edit pop up element icon.
The Edit pop up element icon in the Configure pop ups pane
  1. In the Fields Options pane, uncheck Only use visible fields and Arcade expressions.
  2. Hover over a field in the table and click Format the field to modify the field alias.
The field aliases in the table
  1. In the Pop-up Field Formatting pane, specify the field alias for Display Label and click Back The Back icon.
Specifying the field alias name in the Pop up Field Formatting page
  1. Modify the remaining field aliases as required.
  1. In the Contents pane, right-click the shapefile layer and click Sharing > Share As Web Layer to share the shapefile layer as a web layer in ArcGIS Online or Portal for ArcGIS. Refer to ArcGIS Pro: Share a web feature layer for instructions.
Sharing the shapefile as a web layer from the Contents pane
Note:
If the Share As Web Layer option is unavailable, close the shapefile layer's fields view.

The image below shows the field aliases of the hosted feature layer preserved in ArcGIS Online.

The field display names in ArcGIS Online reflecting the field alias names set in ArcGIS Pro

Modify the shapefile layer's field aliases using the fields view in ArcGIS Pro

  1. Open ArcGIS Pro.
  2. Add the shapefile to the project and open the fields view.
  3. In the fields view table, double-click the field under the Alias column and edit the alias.
Editing the field alias name in the fields view
  1. Repeat Step 3 to modify the remaining aliases as required and click Save on the top ribbon.
  2. In the fields view, click Close The Close icon.
  3. In the Contents pane, right-click the shapefile layer and click Sharing > Share As Web Layer to share the shapefile layer as a web layer in ArcGIS Online or Portal for ArcGIS. Refer to ArcGIS Pro: Share a web feature layer for instructions.
Sharing the shapefile as a web layer from the Contents pane

The image below shows the field aliases of the hosted feature layer preserved in ArcGIS Online.

The field display names in ArcGIS Online reflecting the field alias names set in ArcGIS Pro

Article ID: 000032057

Software:
  • ArcGIS Online
  • Portal for ArcGIS
  • ArcGIS Pro 3 1
  • ArcGIS Pro 3 0
  • ArcGIS Pro 3 2

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