<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: AttachmentManager download fails with Attribute Error in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/attachmentmanager-download-fails-with-attribute/m-p/864344#M4340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good news. I got this to work and it was evidently my fault...&amp;nbsp; 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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/473267_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Nov 2019 00:08:02 GMT</pubDate>
    <dc:creator>DonMorrison1</dc:creator>
    <dc:date>2019-11-13T00:08:02Z</dc:date>
    <item>
      <title>AttachmentManager download fails with Attribute Error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/attachmentmanager-download-fails-with-attribute/m-p/864343#M4339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting an error&amp;nbsp;&lt;EM&gt;*** AttributeError: 'list' object has no attribute 'to_dict'&lt;/EM&gt; when I call&amp;nbsp;&lt;CODE class="" style="color: #000000; background: transparent; border: none; font-weight: bold;"&gt;arcgis.features.managers.&lt;/CODE&gt;&lt;CODE class="" style="color: #000000; background: transparent; border: none; font-weight: bold;"&gt;&lt;SPAN class="" style="background: #f1c40f; font-weight: bold; padding: 0px 6px;"&gt;Attachment&lt;/SPAN&gt;Manager.download.&amp;nbsp;&lt;/CODE&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 13px;"&gt;import arcgis.features&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 13px;"&gt;tb_url = 'https://utility.arcgis.com/usrsvcs/servers/af1446382d3f441f859c305d15601085/rest/services/ROW_testing/UIC/FeatureServer/6'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 13px;"&gt;tb = arcgis.features.Table(tb_url, gis=None)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 13px;"&gt;att_mgr = tb.attachments&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 13px;"&gt;att_mgr.download()&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2019 06:37:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/attachmentmanager-download-fails-with-attribute/m-p/864343#M4339</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2019-11-12T06:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: AttachmentManager download fails with Attribute Error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/attachmentmanager-download-fails-with-attribute/m-p/864344#M4340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good news. I got this to work and it was evidently my fault...&amp;nbsp; 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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/473267_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2019 00:08:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/attachmentmanager-download-fails-with-attribute/m-p/864344#M4340</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2019-11-13T00:08:02Z</dc:date>
    </item>
  </channel>
</rss>

