I'm getting an error *** AttributeError: 'list' object has no attribute 'to_dict' when I call arcgis.features.managers.<SPAN class="" style="background: #f1c40f; font-weight: bold; padding: 0px 6px;">Attachment</SPAN>Manager.download. I'm quite sure I have a valid attach manager object because I can list the attachments and add new attachments with no problem. I've tried all the combinations of input parameters I can think of with the same results, but no parameters as shown below should be valid.
arcgis.features.managers.
<SPAN class="" style="background: #f1c40f; font-weight: bold; padding: 0px 6px;">Attachment</SPAN>Manager.download.
import arcgis.featurestb_url = 'https://utility.arcgis.com/usrsvcs/servers/af1446382d3f441f859c305d15601085/rest/services/ROW_testing/UIC/FeatureServer/6'tb = arcgis.features.Table(tb_url, gis=None)att_mgr = tb.attachmentsatt_mgr.download()
Good news. I got this to work and it was evidently my fault... I removed all the attachments and re-uploaded them using the AGOL UI instead of however I attached them before. The AGOL feature layer is a proxy and sends all requests to a REST endpoint on our ArcGIS server which is where the database lives. I think I did the previous uploads on the ArcGIS server and must have done something wrong - the Python API could see them but was generating a bad URL to download them.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.