laptop and a wrench

Bug

When updating the definition at a layer level (Update Layer Definition) of a view layer configured with a filter, it returns the error code: 400, "Unable to update feature service layer definition.", "Invalid definition for 'DefinitionQuery'.", " Invalid definition for System.String."

ArcGIS Online
Bug ID Number BUG-000155365
SubmittedJanuary 25, 2023
Last ModifiedJune 5, 2024
Applies toArcGIS Online
Version foundNovember 2022
Operating SystemWindows OS
Operating System Version11.0 64 bit
StatusAs Designed

Additional Information

When updating a layer definition from REST, it is recommended to only include the part of the definition that is being updated. Including the entire definition may cause the update definition to fail. The "definitionQuery" cannot be updated by updating the layer definition. However, you can update the "viewDefinitionQuery" without including the rest of the layer definition including the "definitionQuery".

Steps to Reproduce

Bug ID: BUG-000155365

Software:

  • ArcGIS Online

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options