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 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项