laptop and a wrench

Error

The Extract_Changes method in ArcGIS API for Python fails to return any changes.

Última publicación: July 23, 2020 ArcGIS API for Python
Número de ID del error BUG-000132126
EnviadoJuly 8, 2020
Última modificaciónJune 29, 2025
Relacionado conArcGIS API for Python
Versión encontrada1.8.1
Sistema operativoWindows OS
Versión de sistema operativo2019 64 Bit
Versión corregida1.8.3
EstadoFixed

Solución alternativa

It seems to be an issue with the Python method not actually returning anything, despite the changes being identified correctly.

  1. Save a copy of the file C:\path\to\conda\envs\arcgispro-py3-clone\Lib\site-packages\arcgis\features\layer.py
  2. Open up the original file for editing with IDLE in ArcGIS Pro.
  3. Go to Line 2241 of the layer.py file, which is where the extract_changes method comes from.
  4. Instead of "return None", replace it with "return res".
  5. Save the .py file as "layer".
  6. Restart your IDE, and run the exact same code. The changes are now returned as desired.

Alternatively, use the extract_changes ArcGIS REST API method instead: https://developers.arcgis.com/rest/services-reference/extract-changes-feature-service-.htm

Pasos para reproducir

ID del error: BUG-000132126

Software:

  • ArcGIS API for Python

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