laptop and a wrench

Bogue

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

Dernière publication: February 3, 2020 ArcGIS Pro
Numéro d’ID de bogue BUG-000126288
EnvoiOctober 25, 2019
Dernière modificationFebruary 14, 2025
S’applique àArcGIS Pro
Version trouvéeN/A
Système d’exploitationWindows OS
Version du système d’exploitation10.0
StatutWill Not Be Addressed

Informations supplémentaires

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

Étapes pour reproduire

ID de bogue: BUG-000126288

Logiciel:

  • ArcGIS Pro

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement