laptop and a wrench

不具合

The addDataFromPath() function fails to add a feature class to the map in ArcGIS Pro if the project path is hardcoded and the referenced project is open.

ArcGIS Pro
不具合 ID 番号 BUG-000159274
送信されましたJune 21, 2023
最終更新日June 5, 2024
適用対象ArcGIS Pro
見つかったバージョン3.1.2
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
ステータスAs Designed

参考情報

This is as designed. In ArcGIS Pro 2.9 the capability to open already open projects as read-only. They same behavior changed in the UI as well. In this case, if you already have the referenced project open and you try to reference it again with arcpy.mp, you can NOT save changes to it. You would need to call saveACopy(). Also added an isReadOnly property to the ArcGISProject object.

対処法

Use the CURRENT keyword rather than the project path if the code is being run within the desired project. Alternatively, make sure the referenced project is closed when running the addDataFromPath() function with a specified project path.

再現の手順

不具合 ID: BUG-000159274

ソフトウェア:

  • ArcGIS Pro

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

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

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

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

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

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

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