laptop and a wrench

不具合

Deleting multiple feature classes using the ArcPy Delete function fails with the error message, "RuntimeError: Object: Error in executing tool."

最後に公開された状態: January 14, 2020 ArcGIS Pro
不具合 ID 番号 BUG-000121616
送信されましたApril 10, 2019
最終更新日June 5, 2024
適用対象ArcGIS Pro
見つかったバージョン2.3
オペレーティング システムN/A
オペレーティング システムのバージョンN/A
修正されたバージョン2.6
ステータスFixed

対処法

The Delete tool fails with ["a", "b", "c"] but succeeds with ["a;b;c"]. As a workaround follow the steps below:

 

## Use ListFeatureClasses with wildcard to obtain a list of feature classes to be deleted

fclist = arcpy.ListFeatureClasses(...)

arcpy.management.Delete(";".join(fclist))

This works in Python IDLE and standalone script, but does not work in the Python window of ArcGIS Pro.

再現の手順

不具合 ID: BUG-000121616

ソフトウェア:

  • ArcGIS Pro

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

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

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

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

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

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

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