Skip to main content

Query Layer Returns No Result, Network Tab Shows Successful Responses

Comments

3 comments

  • Nico Burgerhart

    Which parameters did you configure, what are the values?

    How is the Output Fields parameter configured.

    Is the underlying layer/table in the service a feature class/table, or is it based on a view?

    0
  • Pward

    Query Layer parameters (some values obfuscated):
    url: https://***.***.com/arcgis/rest/services/***/***/MapServer

    layer: 0
    Return Geometry: =true
    Output Fields: POLEID (this is the display field, I have also tried *, and leaving the field blank)

    I receive no errors on the query, and in the network tabs, the parameters are set correctly, and the responses are good. As a matter of fact, if I copy the request URL from the network tab and paste it into a REST client, the data is returned successfully as well. 

    It is a feature class, and I have tried using both the FeatureServer endpoint and MapServer endpoint to the same results. Earlier in the workflow, I have added the layer to the map with the map.add-layer command, and the map is added successfully as well. 

    0
  • Nico Burgerhart

    Try https://***.***.com/arcgis/rest/services/***/***/MapServer/0 as Url with Layer empty. You should configure or Url or Layer. (And Layer is not an ID but a Layer object).

    Add a where clause for the Where parameter, if you want to return everything use 1=1.

    0

Please sign in to leave a comment.