I need to perform a pagination query with distinct values. But when I enable returnDistinctValues and set resultOffSet and resultRecordCount, the query would fail with error messages
- Unable to complete operation
- Unable to perform query operation
The query parameters are
- WHERE: <FIELD1> = 'value'
- OUTFIELD: <FIELD2>
- returnDistinctValues: true
- resultOffset: 1
- resultRecordCount: 20
There is nothing in the Feature Service REST API documentation that says you can't use distinct when doing pagination query.
So is it possible to do pagination query on distinct results? Am I doing something wrong?