Hi,
I am querying the REST API of a hosted feature layer using a Notebook within ArcPro 3.1.0. The query without any pagination returns 200 records.
If I add resultOffset of 0 and resultRecordCount of 25. The resultRecordCount seems to be ignored and all 200 records are returned.
If I set the resultOffset to 25 I get 175 results. Again ignoring the resultRecordCount but returning results from the offset position.
If I use the REST API web page instead and query using resultOffset of 0 and resultRecordCount of 25 it works and returns 25 records as expected.
Has anyone else ran into this issue?
Any suggestions?
Solved! Go to Solution.
I figured it out myself.
an extra parameter is needed
return_all_records
and needs to be set to false or the resultRecordCount will be ignored
Nice one! I read the API Reference page at few times and missed the highlighted line every time!