laptop and a wrench

Bogue

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

Dernière publication: July 23, 2020 ArcGIS API for Python
Numéro d’ID de bogue BUG-000132126
EnvoiJuly 8, 2020
Dernière modificationJune 29, 2025
S’applique àArcGIS API for Python
Version trouvée1.8.1
Système d’exploitationWindows OS
Version du système d’exploitation2019 64 Bit
Version de correction1.8.3
StatutFixed

Solution de contournement

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

Étapes pour reproduire

ID de bogue: BUG-000132126

Logiciel:

  • ArcGIS API for Python

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement