laptop and a wrench

Erro

When Return Distinct Values is set to True for a feature service or map service and a geometry type is specified, a query from ArcGIS REST API fails on ArcGIS Server with PostgreSQL as the underlying database.

Última Publicação: July 5, 2019 ArcGIS GIS Server
Número de ID do Erro BUG-000118572
EnviadoDecember 4, 2018
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS GIS Server
Versão encontrada10.6.1
Sistema OperacionalWindows OS
Versão do Sistema Operacional2016 64 Bit
StatusKnown Limit

Informações Adicionais

This is a known limitation in ArcGIS Server. Our ArcGIS Server REST API states the following: Note: Make sure to set returnGeometry = false when returnDistinctValues = true or results will not be reliable. https://developers.arcgis.com/rest/services-reference/query-feature-service-layer-.htm

Solução Provisória

  1. Run a query with only Return IDs Only set to True, along with an Input Geometry specified.
  2. Take note of the ObjectIDs that are returned and then run another query.
  3. Place the returned ObjectIDs into a second query with the following parameters:
    1. Remove the input geometry.
    2. Return Distinct Values = True.
    3. Return IDs Only = False.
  4. The query should complete successfully.

Etapas para Reproduzir

ID do Erro: BUG-000118572

Software:

  • ArcGIS GIS Server

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download