Select to view content in your preferred language

ArcGIS Server API Identify null value

639
1
05-07-2014 05:17 AM
SchoppMatthieu
New Contributor III
I noticed something inconsistent with "null" value handling in ArcGIS Server.

While doing "Queries", null values are retrieved as null (see attachment). While doing Identifies, null values are retrieves as string : "Null" (see attachment)

These are examples of "Query" and "Identify" for the same data so you can notice the difference also illustrated in the attachment :

Identify :

http://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/MapServer/identify?geometr...

Query :


http://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/MapServer/0/query?where=OB...


[ATTACH=CONFIG]33643[/ATTACH]


I couldn't find anything about this on the forum and documentation.
Please, can anyone provide explanations ? Thanks


Also "Identify" return field aliases instead of field names, which is not handy at all.
Tags (2)
0 Kudos
1 Reply
TanuHoque
Esri Regular Contributor
Schopp,
that is expected behavior.


  • Query operation returns the value in the original data type.

  • Whereas Find and Identify operations return formatted string e.g. depending on the format assigned to the field, the return string may look like $123,345.90 or 9.054% etc.


Hope this helps.
0 Kudos