When I set QueryParameters.MaxFeatures execute query then will catch a exception(Unable to complete operation.), but don't set it codes go well
Hi Jennifer
I do have the field "Name", I checked and i did't mistyped either
Thanks for your detail reply
Is `NAME` a field name in the service? If you use a name that does not exist on server you will get the same error:
For example, when if I mistyped with `NAM` for `NAME`: http://sampleserver6.arcgisonline.com/arcgis/rest/services/Notes/FeatureServer/0/query?where=NAM+LIKE+%27%25o%25%27&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&distance=&units=esriSRUnit_Foot&relationParam=&outFields=&returnGeometry=true&maxAllowableOffset=&geometryPrecision=&outSR=&gdbVersion=&returnDistinctValues=false&returnIdsOnly=false&returnCountOnly=false&returnExtentOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&multipatchOption=&resultOffset=&resultRecordCount=&f=html
FeatureTable.Fields should be able to give you the name to use in your query, it includes the same metadata found on server (i.e. FieldType, Name, Alias, IsEditable, etc).
I notice that some featureserver with different Advanced Query Capabilities,some having all the Advanced Query Capabilities true supports can ServiceFeatureTable.QueryFeaturesAsync(QueryParameters parameters, QueryFeatureFields queryFeatureFields) with setting QueryParameters.MaxFeatures , does this Advanced Query Capabilities matters?
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.