laptop and a wrench

漏洞

Using the ArcGIS API for Python insert_layer() function to insert a file geodatabase with attachments fails in ArcGIS Online.

ArcGIS API for Python
漏洞 ID 编号 BUG-000167632
已提交May 20, 2024
上次修改时间August 15, 2024
适用范围ArcGIS API for Python
找到的版本2.2.0
操作系统Windows OS
操作系统版本10.0 64 Bit
状态As Designed

附加信息

The user need to pre-upload the attachments. The sample shows them trying to passing in the file path, which will not work. Refer to the documentation called Attachments to be added or updated can use either pre-uploaded data or base 64encoded data. There is also a link that describes how the attachments must be pre-uploaded.

解决办法

Create a blank feature service (feature layer), add a blank layer, and add features or attachments with the edit_features() function.

For example: new_feature_layer.layers[0].edit_features(

adds=[features],

use_global_ids=True,

attachments={"adds": sm_item2_attach})

重现步骤

漏洞 ID: BUG-000167632

软件:

  • ArcGIS API for Python

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项