Select to view content in your preferred language

How to query based on historic moment?

100
1
Jump to solution
Wednesday
Yogesh_Chavan
Frequent Contributor

I am trying to query a service using the supportsQueryWithHistoricMoment property.

https://developers.arcgis.com/rest/services-reference/enterprise/query-map-service-layer/#:~:text=Th....

It does not follows the given time and returns all the records.

Is there any pre-requisites of updates needed to get the desired records?

It shows as set to true in service JSON. But not sure what else is needed. This service is Archiving and Versioning(Traditional) enabled, and we're on Ent 11.3.

Yogesh_Chavan_0-1736346972849.png

Any help on this would be highly appreciated:)

 

0 Kudos
1 Solution

Accepted Solutions
Yogesh_Chavan
Frequent Contributor

The service was configured correctly, its just that it had more than 2000 records to display all the time and by default the max count is 2000. So, wherever we queried using the historic moment inputs it showed correct values and count besides they all were more that 2000, which server has limited to 2000. Increasing the default Max Record Count showed correct counts.

View solution in original post

0 Kudos
1 Reply
Yogesh_Chavan
Frequent Contributor

The service was configured correctly, its just that it had more than 2000 records to display all the time and by default the max count is 2000. So, wherever we queried using the historic moment inputs it showed correct values and count besides they all were more that 2000, which server has limited to 2000. Increasing the default Max Record Count showed correct counts.

0 Kudos