laptop and a wrench

漏洞

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

上次发布: July 23, 2020 ArcGIS API for Python
漏洞 ID 编号 BUG-000132126
已提交July 8, 2020
上次修改时间June 29, 2025
适用范围ArcGIS API for Python
找到的版本1.8.1
操作系统Windows OS
操作系统版本2019 64 Bit
修正版本1.8.3
状态Fixed

解决办法

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

重现步骤

漏洞 ID: BUG-000132126

软件:

  • ArcGIS API for Python

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项