Adding to Geonet Admin's answer, I used hasattr(class, 'prop') to check each incoming layer had the datasource property.
for df in arcpy.mapping.ListDataFrames(mxd): brknList = arcpy.mapping.ListBrokenDataSources(mxd) for bk in brknList: if hasattr(bk, "dataSource"): bk_list.append(bk.dataSource)
Yes. Good catch. Thanks.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.