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.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.