laptop and a wrench

Erro

Custom data feeds provider fails to return count when returnCountOnly is set to True.

Portal for ArcGIS
Número de ID do Erro BUG-000178907
EnviadoAugust 21, 2025
Última ModificaçãoSeptember 11, 2025
Aplica-se àPortal for ArcGIS
Versão encontrada11.5
Sistema OperacionalWindows Server
Versão do Sistema Operacional2025
StatusNon-Reproducible

Informações Adicionais

BUG-000178907 - returnCountOnly Thanks for taking the time to submit an issue and for the interest in custom data feeds. This issue that is being brought up here does not expose a bug in custom data feeds (CDF). One of the initial queries sent by ArcGIS clients to feature services usually contains the returnCountOnly parameter. This is required so that proper pagination occurs. CDF providers generally follow one of two data loading patterns: full-fetch or pass-through. In a full-fetch pattern provider, all the data is returned at once (no pagination), so there is no need to independently handle returnCountOnly. The CDF framework counts the number of features returned in the GeoJSON from the getData() method and generates the count for the response. In a pass-through pattern provider, the developer needs to handle this. The client needs to make multiple requests until all the data are loaded. The developer must intercept the request that contains the returnCountOnly parameter and return an appropriate value so that proper pagination can occur. In the sample provider given, the count is being returned along with GeoJSON metadata, which is incorrect, and the CDF framework is interpreting it as improperly formatted GeoJSON. The proper way is to return count JSON immediately, not with metadata at the end of the getData() method. The way to do this is shown in the CDF documentation here: https://developers.arcgis.com/enterprise-sdk/guide/custom-data-feeds/pass-through-custom-data-providers/ Also, see the ArcGIS REST specification on returnCountOnly and returnExtentOnly here: https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer/ Adding 'return output;' on line 37 in the 'if statement' in the provided code would fix the problem. Hope this helps.

Etapas para Reproduzir

ID do Erro: BUG-000178907

Software:

  • Portal for ArcGIS

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