When a query layer or database view's unique ID column has duplicate values, we get an error when using the attribute table:
“Failed to load data. Error: Failed to retrieve a page of rows.”
Related: Error Opening Table in Pro - "Failed to retrieve a page of rows"
I know the docs clearly state that the ID needs to be unique. But sometimes we don't realize the column isn't unique due to unexpected problems in the data. Or the data changes after the query was created without us knowing. Or ArcGIS Pro automatically chooses a column as a unique ID that we weren't intending.
It's good that we get an error in ArcGIS Pro, rather than silently excluding the duplicate rows like ArcMap did. But it would be better if the error message described the root cause of the problem. For example, add a line that says, "Ensure the IDs are unique." Something like that would have saved me a lot of grief when troubleshooting a query layer problem recently.
There's a saying something like, "The measure of software quality is how good the error messages are." Could that error message be improved?
@Bud - I totally agree the error message needs to be improved to help diagnose the problem with the data.
You can use the Data Reviewer Extension "checks" to validate your data.
ArcGIS Pro:
Duplicate Feature—ArcGIS Pro | Documentation
Unique Field Value—ArcGIS Pro | Documentation
ArcGIS Data Reviewer checks—ArcGIS Pro | Documentation
ArcMap:
Finding duplicate geometry—ArcMap | Documentation (arcgis.com)
Checking for unique IDs—ArcMap | Documentation (arcgis.com)
An overview of running data checks—ArcMap | Documentation (arcgis.com)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.