laptop and a wrench

Error

When using Update Layer Definition on a hosted feature layer view with a definition query (filter), the following error is returned, "Invalid definition for 'DefinitionQuery'. Invalid definition for System.String."

Última publicación: April 23, 2022 ArcGIS Online
Número de ID del error BUG-000146872
EnviadoFebruary 15, 2022
Última modificaciónOctober 2, 2024
Relacionado conArcGIS Online
Versión encontrada9.4
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoWill Not Be Addressed

Información adicional

This is not a bug. When using updateDefinition, select the intended properties to modify, not the full service/layer JSON. Selecting the full service/layer JSON fails as it attempts to modify system level properties on the service that cannot be modified.

Solución alternativa

  1. Remove the filter on the view.
  2. Update the layer definition and make the desired changes.
  3. Reapply the filter. Alternatively, users can keep the filter active, and instead remove it from the layer definition during updating. 

Pasos para reproducir

ID del error: BUG-000146872

Software:

  • ArcGIS Online

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