I have a Webapp (WAB 1.2 Developer's Edition on my own computer with the layers hosted through ArcGIS Online) that uses the Attribute Table.
It won't load attribute table data, giving me an "Error performing query operation" error after about 30 seconds or so as well as occasionally being slow to load the data itself. Is there a way to get this error to not come up when using the Attribute Table?
It seems like the spatial data itself is having a problem loading - the data is published as a service on in-house servers. The web map loads fairly quickly on ArcGIS Online (including viewing the Attribute Table in the AGOL map).
Solved! Go to Solution.
I have found a few reasons for the error. Primarily it has to do with the fact the feature class is too large and complex.
When you open the attribute table for the layer from the Layer List widget, the Attribute Table widget calls the 'Shape' field, calling all the vertices' coordinates (even though you cannot see that data in the table). I confirmed this when going to the feature's REST endpoint in a browser and performing a simple query operation there - it bogged down because it was calling the feature's geometry (e.g.: its Shape field). If 'feature geometry' was disabled during the query, the query results would show up almost instantly.
The reason the Attribute Table calls the Shape field is so that it can use the 'Zoom To' functionality. If you turn off the Shape field in your mxd and then publish the feature, the spatial features still show up and the Attribute Table widget works fine, but you will not have the 'Zoom To' functionality.
I found some work arounds:
I have found a few reasons for the error. Primarily it has to do with the fact the feature class is too large and complex.
When you open the attribute table for the layer from the Layer List widget, the Attribute Table widget calls the 'Shape' field, calling all the vertices' coordinates (even though you cannot see that data in the table). I confirmed this when going to the feature's REST endpoint in a browser and performing a simple query operation there - it bogged down because it was calling the feature's geometry (e.g.: its Shape field). If 'feature geometry' was disabled during the query, the query results would show up almost instantly.
The reason the Attribute Table calls the Shape field is so that it can use the 'Zoom To' functionality. If you turn off the Shape field in your mxd and then publish the feature, the spatial features still show up and the Attribute Table widget works fine, but you will not have the 'Zoom To' functionality.
I found some work arounds: