laptop and a wrench

不具合

Updating the item data with the BytesIO object returns the error message "Error 409: Item with file already exists".

ArcGIS API for Python
不具合 ID 番号 BUG-000161855
送信されましたOctober 4, 2023
最終更新日June 5, 2024
適用対象ArcGIS API for Python
見つかったバージョンN/A
オペレーティング システムWindows Server
オペレーティング システムのバージョンN/A
ステータスNon-Reproducible

参考情報

This issue is not reproducible.

対処法

Currently, the fileName is resolved as follows in src/arcgis/gis/__init__.py:14909

           if data is not None and isinstance(data, (io.StringIO, io.BytesIO)):

               if item_properties is None:

                   item_properties =

               if not "type" in item_properties:

                   item_properties["type"] = self.type

               if not "fileName" in item_properties:

                   fileName = self.name

                   item_properties["fileName"] = fileName

Consider using a random filename, or appending a timestamp to the end of the itemId as a filename.

           if data is not None and isinstance(data, (io.StringIO, io.BytesIO)):

               if item_properties is None:

                   item_properties =

               if not "type" in item_properties:

                   item_properties["type"] = self.type

               if not "fileName" in item_properties:

                   fileName = f"self.name_str(round((datetime.now()).timestamp()))"

                   item_properties["fileName"] = fileName

再現の手順

不具合 ID: BUG-000161855

ソフトウェア:

  • ArcGIS API for Python

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動