laptop and a wrench

漏洞

The sample JSON provided on the ArcGIS REST APIs: Add To Definition (Feature Layer) for adding new fields contains errors, resulting in failure to add fields through the admin API.

ArcGIS Online
漏洞 ID 编号 BUG-000162149
已提交October 17, 2023
上次修改时间March 19, 2025
适用范围ArcGIS Online
找到的版本Oct 2023
操作系统Windows OS
操作系统版本10.0 64 Bit
状态In Review

解决办法

Modify the JSON by removing 50/1 after the GlobalID field and removing single quotes from 'A' in the default value of the "str2" field.

  

{ 

"fields": [ 

{ 

"name": "GlobalID", 50/1 

"type": "esriFieldTypeGlobalID", 

"alias": "GlobalID", 

"nullable": false, 

"editable": false 

}, 

{ 

"name": "date1", 

"type": "esriFieldTypeDate", 

"alias": "date1", 

"nullable": true, 

"editable": false, 

"domain": null, 

"defaultValue": "GetDate() WITH VALUES" 

}, 

{ 

"name": "str2", 

"type": "esriFieldTypeString", 

"alias": "str2", 

"nullable": true, 

"editable": true, 

"domain": null, 

"defaultValue": "'A' WITH VALUES" 

} 

  

] 

} 

重现步骤

漏洞 ID: BUG-000162149

软件:

  • ArcGIS Online

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项