laptop and a wrench

Bug

Adding an OGC feature layer to the Map Viewer from the portal's content page returns the error message, "Unable to add layer. Unexpected token '<', "html lang"… is not valid JSON."

Portal for ArcGIS
Bug ID Number BUG-000162905
SubmittedNovember 13, 2023
Last ModifiedOctober 16, 2024
Applies toPortal for ArcGIS
Version found11.1
Operating SystemWindows Server
Operating System VersionN/A
StatusIn Review

Workaround

Use the Add layer from URL option and append '?f=JSON' or '?f=PJSON' to the rest URL. Refer to the following example: https://FQDN/server/rest/services/SampleWorldCities/OGCFeatureServer?f=pjson.

Steps to Reproduce

Bug ID: BUG-000162905

Software:

  • Portal for ArcGIS

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options