If a provider denotes an idField in its metadata, the FeatureServers layer info service returns a fields array that contains both an OBJECTID field object as well as a separate object representing the provider's idField. For example, if the provider's metadata has idField: 'featureId' the the layer services field array will contain:
The upshot is that the layer and query services have fields arrays of different lengths, and the query service doesn't have a field with name OBJECTID which causes client errors.
If a provider denotes an
idField
in its metadata, the FeatureServers layer info service returns afields
array that contains both an OBJECTID field object as well as a separate object representing the provider'sidField
. For example, if the provider's metadata hasidField: 'featureId'
the the layer services field array will contain:However, the query service squashes the two above field objects together into one object in the
fields
array.The upshot is that the layer and query services have
fields
arrays of different lengths, and the query service doesn't have a field with nameOBJECTID
which causes client errors.