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."
上次发布: April 23, 2022ArcGIS Online
漏洞 ID 编号
BUG-000146872
已提交
February 15, 2022
上次修改时间
October 2, 2024
适用范围
ArcGIS Online
找到的版本
9.4
操作系统
Windows OS
操作系统版本
10.0 64 Bit
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
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.
解决办法
Remove the filter on the view.
Update the layer definition and make the desired changes.
Reapply the filter. Alternatively, users can keep the filter active, and instead remove it from the layer definition during updating.