English

Error: An error occurred fetching data

Error Message

In ArcGIS Open Data, viewing the table of a dataset from the Table tab returns the following error:

Error:   
An error occurred fetching data.
 
 Screen shot of error message
Note:
This error is known to occur in legacy Open Data sites. Migrate to a more recent version, such as ArcGIS Open Data 2.0 or later.

Cause

In some instances, the map administrator(s) of an ArcGIS Open Data site may opt to remove the standard map displayed on the site's page when customizing the layout of the site.

This error occurs when the map on the Open Data site's page is disabled using the following code in the Open Data site's cascading style sheet (CSS):

#map-bar-region{
    display: none;
}
When the map bar region is hidden, fetching the records from the table results in the error message. The error does not affect the accuracy of the data returned in the table but is misleading to users attempting to access the data.

Solution or Workaround

If removing the map in the Open Data site is absolutely necessary, the error can be prevented by reducing the size of the map bar region instead of completely disabling the map. To do so, add the following code to the CSS:

#map-bar-region{
    height: 1px;
    width: 1px;
}
The code above makes the map invisible, but it is not completely hidden. Therefore, other layout elements, such as the map locator and controls, within the map bar region must also be hidden. Add the following codes to hide elements within the map:
#locator-region{
    visibility: hidden;
}
#controls{
    visibility: hidden;
}

Related Information