laptop and a wrench

Bug

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

Zuletzt veröffentlicht: February 3, 2020 ArcGIS Pro
Bug-ID-Nummer BUG-000126288
EingereichtOctober 25, 2019
Zuletzt geändertFebruary 14, 2025
Gilt fürArcGIS Pro
Gefunden in VersionN/A
BetriebssystemWindows OS
Betriebssystemversion10.0
StatusWill Not Be Addressed

Zusätzliche Informationen

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)```

Schritte zur Reproduzierung

Bug-ID: BUG-000126288

Software:

  • ArcGIS Pro

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln