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.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.