Error while parsing the response when adding a WFS service to Map Viewer

Last Published: September 7, 2023

Error Message

When adding a WFS service to Map Viewer via service URL, you may receive the error message "Error while parsing the response". Map Viewer makes GetFeature requests to the WFS service endpoint to return the geometry and attributes for all the features in the service.


If the response to these requests is improperly formatted, an error message occurs.

Solution or Workaround

If this issue occurs, a good next step is to collect network traffic while reproducing the issue. In the Console tab, there may be an error about "malformed JSON". Check the responses from the requests to the WFS service that contain the parameter "OUTPUTFORMAT=GEOJSON". Copy the JSON from the responses and analyze them using JSONLint. This determines if the JSON returned by the WFS service is valid or not.

In some cases, the JSON may be improperly formatted due to null, missing, or incorrect geometry.

Article ID:000031061

  • 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

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options