laptop and a wrench

Bogue

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."

Dernière publication: April 23, 2022 ArcGIS Online
Numéro d’ID de bogue BUG-000146872
EnvoiFebruary 15, 2022
Dernière modificationOctober 2, 2024
S’applique àArcGIS Online
Version trouvée9.4
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
StatutWill Not Be Addressed

Informations supplémentaires

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.

Solution de contournement

  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. 

Étapes pour reproduire

ID de bogue: BUG-000146872

Logiciel:

  • ArcGIS Online

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement