laptop and a wrench

Error

TypeError: Unable to read properties of undefined (reading 'forEach') when accessing features from an interceptor's query result array.

ArcGIS Maps SDK for JavaScript
Número de ID del error BUG-000168429
EnviadoJune 18, 2024
Última modificaciónDecember 6, 2024
Relacionado conArcGIS Maps SDK for JavaScript
Versión encontrada4.29
Sistema operativoWindows OS
Versión de sistema operativoN/A
EstadoAs Designed

Información adicional

The interceptor after must handle all types of results returned by /query. In this case there is a query call to get the feature count, so there are no features in the results, as expected. The solution is to first check if there are features in the response.

Solución alternativa

Verify if an array is returned from the interceptor's query result prior to accessing each feature from the response.

Pasos para reproducir

ID del error: BUG-000168429

Software:

  • ArcGIS Maps SDK for JavaScript

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga