PROBLEM

Using the ArcGIS Server Administrator Directory to rename a hosted feature service corrupts the corresponding item in the ArcGIS Enterprise portal

Last Published: March 20, 2026

Description

Renaming service name via ArcGIS Enterprise portal item details page only updates the title, leaving the original service name and REST URL intact. Howver renaming via the ArcGIS Server Admin endpoint (using renameService at Server admin home > services > Hosted) successfully changes the service's name and URL, but it corrupts the connection to the original item in the ArcGIS Enterprise portal, and the following error is received in Map Viewer:

"Unable to add layer States."  

Changing a hosted feature service's URL requires using the renameService operation from ArcGIS Server Administrator endpoint (Home > services > Hosted) generates a new URL, but the corresponding service item in the ArcGIS Enterprise portal becomes corrupted and fails to load in the Map Viewer.

In this example, the original URL  is:

https://.../server/rest/services/Hosted/States/FeatureServer

After using the renameService operation  shown in the image below,

 

the renamed service URL is as follows:

https://.../server/rest/services/Hosted/StatesRenamed/FeatureServer

Solution or Workaround

  1. Take a complete snapshot of your deployment and stop the Windows Services for Portal for ArcGIS, ArcGIS Server, and ArcGIS Datastore.  
  2. Navigate to Portal installation machine, on the C drive: arcgisportal > content > items > item id > esriinfo  
  3. We have the files listed below present in a hosted service published using ArcGIS Pro. (For a hosted service created in portal directly, only the item.pkinfo and iteminfo.xml files are present.)
    • item.pkinfo
    • iteminfo.json
    • iteminfo.xml
    • publishResults.json
    • serviceconfiguration.json
    • tilingservice.xml

  

  1. Open each of these files and update the original Service name with the New service name, and save it in a different folder.
  2. Copy the files from this folder and replace the original files present in the esriinfo folder.  
  3. Restart the services for Portal for ArcGIS, ArcGIS Server, and ArcGIS Datastore.  
  4. Access the ArcGIS Enterprise portal again after clearing browser cache, and item name and URL should reflect the updates. The hosted feature service then no longer appears corrupted in the Map Viewer.

Article ID: 000039067

Software:
  • ArcGIS Pro
  • Portal for ArcGIS
  • ArcGIS Enterprise

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