laptop and a wrench

Bug

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
Bug-ID-Nummer BUG-000162149
EingereichtOctober 17, 2023
Zuletzt geändertMarch 19, 2025
Gilt fürArcGIS Online
Gefunden in VersionOct 2023
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
StatusIn Review

Workaround

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" 

} 

  

] 

} 

Schritte zur Reproduzierung

Bug-ID: BUG-000162149

Software:

  • ArcGIS Online

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln