laptop and a wrench

Error

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
Número de ID del error BUG-000162149
EnviadoOctober 17, 2023
Última modificaciónMarch 19, 2025
Relacionado conArcGIS Online
Versión encontradaOct 2023
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoIn Review

Solución alternativa

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" 

} 

  

] 

} 

Pasos para reproducir

ID del error: BUG-000162149

Software:

  • ArcGIS Online

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga