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.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.