Is This Content Helpful?
We're glad to know this article was helpful.
When making a GET_FEATURES request on an ArcMap Service and requesting the envelope (envelope = "true") the envelope is not returned for the target layer.
ArcMap Server is looking for the #SHAPE# field in the list of subfields of target layer in order to return the envelope.
Include the #SHAPE# field in the subfields of target layer in the GET_FEATURES request.
<BUFFER distance="0.1" bufferunits="miles">
<TARGETLAYER id="1" />
<SPATIALQUERY subfields="#SHAPE# NAME" />