<?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 resources.export no longer working in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/resources-export-no-longer-working/m-p/1388904#M10610</link>
    <description>&lt;P&gt;I am trying to export the resources associated with AGOL items, using Jupyter Notebooks from desktop. This was previously working (over a year ago, just looking at it again now) but I'm now getting an error message:&amp;nbsp;&lt;SPAN class=""&gt;AttributeError&lt;/SPAN&gt;: 'ResourceManager' object has no attribute 'export'&lt;/P&gt;&lt;P&gt;I used the guidance here for my script:&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/guide/accessing-item-resources/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/guide/accessing-item-resources/&lt;/A&gt;&amp;nbsp;but whatever item I try I get that same error. I have tried items in my AGOL that I own and that definitely has resources associated with it.&lt;/P&gt;&lt;P&gt;Here is the code and error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sm_id = 'removedforprivacy'
sm_item = gis.content.get(sm_id)
print(sm_item)

sm_resources = sm_item.resources.list()
print(len(sm_resources), 'resources found for selected item')
sm_resources

folder_name = r"C:\\Documents\\ArcGIS Online Backups - JSON\\JSON_Backups_240229"

zip_name = "test_resources.zip"
sm_item.resources.export(save_path=folder_name, file_name=zip_name)

# Check that the current directory now has that zip output
os.path.isfile(zip_name)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&amp;lt;Item title:"Scottish Forestry GIS" type:StoryMap owner:deborah.hide_sf&amp;gt;
17 resources found for selected item&lt;BR /&gt;-------------------------------------------------------------------------&lt;BR /&gt;AttributeError&lt;SPAN&gt;                            Traceback (most recent call last)&lt;BR /&gt;&lt;/SPAN&gt;&amp;lt;ipython-input-36-da62d89d44cd&amp;gt;&lt;SPAN&gt; in &lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;BR /&gt;&lt;/SPAN&gt;     30&lt;SPAN class=""&gt; &lt;BR /&gt;     31&lt;/SPAN&gt; zip_name &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;"test_resources.zip"&lt;/SPAN&gt; &lt;BR /&gt;&lt;SPAN class=""&gt;---&amp;gt; 32&lt;/SPAN&gt; sm_item&lt;SPAN class=""&gt;.&lt;/SPAN&gt;resources&lt;SPAN class=""&gt;.&lt;/SPAN&gt;export&lt;SPAN class=""&gt;(&lt;/SPAN&gt;save_path&lt;SPAN class=""&gt;=&lt;/SPAN&gt;folder_name&lt;SPAN class=""&gt;,&lt;/SPAN&gt; file_name&lt;SPAN class=""&gt;=&lt;/SPAN&gt;zip_name&lt;SPAN class=""&gt;)&lt;/SPAN&gt; &lt;SPAN class=""&gt; &lt;BR /&gt;     33&lt;/SPAN&gt; &lt;SPAN class=""&gt; &lt;BR /&gt;     34&lt;/SPAN&gt; &lt;SPAN class=""&gt;# Check that the current directory now has that zip output&lt;/SPAN&gt; &lt;BR /&gt;&lt;SPAN class=""&gt;AttributeError&lt;/SPAN&gt;: 'ResourceManager' object has no attribute 'export'&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the same error if I try it via an AGOL Notebook.&lt;/P&gt;&lt;P&gt;Does anyone know why this might be happening?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 29 Feb 2024 16:28:26 GMT</pubDate>
    <dc:creator>DebHSF</dc:creator>
    <dc:date>2024-02-29T16:28:26Z</dc:date>
    <item>
      <title>resources.export no longer working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/resources-export-no-longer-working/m-p/1388904#M10610</link>
      <description>&lt;P&gt;I am trying to export the resources associated with AGOL items, using Jupyter Notebooks from desktop. This was previously working (over a year ago, just looking at it again now) but I'm now getting an error message:&amp;nbsp;&lt;SPAN class=""&gt;AttributeError&lt;/SPAN&gt;: 'ResourceManager' object has no attribute 'export'&lt;/P&gt;&lt;P&gt;I used the guidance here for my script:&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/guide/accessing-item-resources/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/guide/accessing-item-resources/&lt;/A&gt;&amp;nbsp;but whatever item I try I get that same error. I have tried items in my AGOL that I own and that definitely has resources associated with it.&lt;/P&gt;&lt;P&gt;Here is the code and error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sm_id = 'removedforprivacy'
sm_item = gis.content.get(sm_id)
print(sm_item)

sm_resources = sm_item.resources.list()
print(len(sm_resources), 'resources found for selected item')
sm_resources

folder_name = r"C:\\Documents\\ArcGIS Online Backups - JSON\\JSON_Backups_240229"

zip_name = "test_resources.zip"
sm_item.resources.export(save_path=folder_name, file_name=zip_name)

# Check that the current directory now has that zip output
os.path.isfile(zip_name)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&amp;lt;Item title:"Scottish Forestry GIS" type:StoryMap owner:deborah.hide_sf&amp;gt;
17 resources found for selected item&lt;BR /&gt;-------------------------------------------------------------------------&lt;BR /&gt;AttributeError&lt;SPAN&gt;                            Traceback (most recent call last)&lt;BR /&gt;&lt;/SPAN&gt;&amp;lt;ipython-input-36-da62d89d44cd&amp;gt;&lt;SPAN&gt; in &lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;BR /&gt;&lt;/SPAN&gt;     30&lt;SPAN class=""&gt; &lt;BR /&gt;     31&lt;/SPAN&gt; zip_name &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;"test_resources.zip"&lt;/SPAN&gt; &lt;BR /&gt;&lt;SPAN class=""&gt;---&amp;gt; 32&lt;/SPAN&gt; sm_item&lt;SPAN class=""&gt;.&lt;/SPAN&gt;resources&lt;SPAN class=""&gt;.&lt;/SPAN&gt;export&lt;SPAN class=""&gt;(&lt;/SPAN&gt;save_path&lt;SPAN class=""&gt;=&lt;/SPAN&gt;folder_name&lt;SPAN class=""&gt;,&lt;/SPAN&gt; file_name&lt;SPAN class=""&gt;=&lt;/SPAN&gt;zip_name&lt;SPAN class=""&gt;)&lt;/SPAN&gt; &lt;SPAN class=""&gt; &lt;BR /&gt;     33&lt;/SPAN&gt; &lt;SPAN class=""&gt; &lt;BR /&gt;     34&lt;/SPAN&gt; &lt;SPAN class=""&gt;# Check that the current directory now has that zip output&lt;/SPAN&gt; &lt;BR /&gt;&lt;SPAN class=""&gt;AttributeError&lt;/SPAN&gt;: 'ResourceManager' object has no attribute 'export'&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the same error if I try it via an AGOL Notebook.&lt;/P&gt;&lt;P&gt;Does anyone know why this might be happening?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Feb 2024 16:28:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/resources-export-no-longer-working/m-p/1388904#M10610</guid>
      <dc:creator>DebHSF</dc:creator>
      <dc:date>2024-02-29T16:28:26Z</dc:date>
    </item>
  </channel>
</rss>

