laptop and a wrench

不具合

Unable to list data sources using the workspace factory object if the layer contains a join.

最後に公開された状態: February 3, 2020 ArcGIS Pro
不具合 ID 番号 BUG-000126288
送信されましたOctober 25, 2019
最終更新日February 14, 2025
適用対象ArcGIS Pro
見つかったバージョンN/A
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0
ステータスWill Not Be Addressed

参考情報

When joins are present on a layer, the connection properties dictionary includes the join information. The dictionary is different for layers with joins vs layers without joins. The difference in dictionary structure needs to be accounted for in the script. Layers can have zero, one or many joins. Use a recursive function to accomplish this: ```import arcpydef ConPropsWithJoins(cp): if 'source' in cp: return ConPropsWithJoins(cp['source']) else: print(' ', '- database:', cp['connection_info']['database']) print(' ', '- dataset:', cp['dataset']) print(' ', '- workspace_factory:', cp['workspace_factory'])aprx = arcpy.mp.ArcGISProject(r"C:\temp\fgdb_012joins.aprx")m = aprx.listMaps()[0]for lyr in m.listLayers(): print(f"LAYER: {lyr.name}") if lyr.supports("dataSource"): cp = lyr.connectionProperties if cp is not None: ConPropsWithJoins(cp)```

再現の手順

不具合 ID: BUG-000126288

ソフトウェア:

  • ArcGIS Pro

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

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

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

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

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

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

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