laptop and a wrench

不具合

The AddJoin function fails to create a join when used in a script tool.

最後に公開された状態: March 27, 2023 ArcGIS Pro
不具合 ID 番号 BUG-000150795
送信されましたJuly 14, 2022
最終更新日October 7, 2024
適用対象ArcGIS Pro
見つかったバージョン2.9.3
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
ステータスAs Designed

参考情報

This is the expected behavior of the Add Join tool. The Add Join tool creates a temporary join that disappears at the end of a session. In a script tool, the join disappears at the conclusion of the script. Refer to, https://pro.arcgis.com/en/pro-app/2.8/tool-reference/data-management/add-join.htm, "The join persists only for the duration of the layer. A layer can be retained by saving the ArcGIS Pro session or by saving it to a layer file using the Save Layer To File tool." To persist the join on a map, set the AddJoin function in the script as a derived output. For example: lyr = arcpy.management.AddJoin(fc, fc_field, joinLayer, joinLayer_field) arcpy.SetParameterAsText(4, lyr) Then, in the script tool properties, in the Parameters section, set Parameter 4 to Type=Derived and Direction=Output to link it to the SetParameterAsText call in the script.

対処法

  • Use the Add Join geoprocessing tool.
  • Run in the Python window.

再現の手順

不具合 ID: BUG-000150795

ソフトウェア:

  • ArcGIS Pro

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

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

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

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

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

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

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