laptop and a wrench

Erro

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

Última Publicação: July 23, 2020 ArcGIS API for Python
Número de ID do Erro BUG-000132126
EnviadoJuly 8, 2020
Última ModificaçãoJune 29, 2025
Aplica-se àArcGIS API for Python
Versão encontrada1.8.1
Sistema OperacionalWindows OS
Versão do Sistema Operacional2019 64 Bit
Versão Fixa1.8.3
StatusFixed

Solução Provisória

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

Etapas para Reproduzir

ID do Erro: BUG-000132126

Software:

  • ArcGIS API for Python

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download