Hi John Byrne,
It looks like the datasource attribute is not a property of that element. I would recommend looking at the following documentation (ListLayoutElements (arcpy.mapping)) which can provide some insight into what each elements properties are. The traceback error, which has the message: AttributeError: 'TextElement' object has no attribute 'datasource', lets us know that it is an issue with an attribute associated with a TextElement. So we can look at our TextElement page and see that datasource is not an attribute of the textelements. Text Element (arcpy.mapping)
Does this help?
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.