<?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 How can I download a Feature Layer from my AGO account using the Python API in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-i-download-a-feature-layer-from-my-ago/m-p/869713#M4594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to download a feature layer from my AGO enterprise account as a shapefile or CSV. I have the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;item_id = select_item.id&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;agolItem = gis.content.get(item_id)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;outputGDB = extract_data([agolItem], data_format='Shapefile')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this code gives me the following error:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{"messageCode": "AO_100026", "message": "ExtractData failed."} Failed to execute (ExtractData). Failed.

I read a few other post just like mine but I couldn't figure out why I keep getting an error. 

Thank you &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 10:50:09 GMT</pubDate>
    <dc:creator>deleted-user-4LjGx0CueIPn</dc:creator>
    <dc:date>2021-12-12T10:50:09Z</dc:date>
    <item>
      <title>How can I download a Feature Layer from my AGO account using the Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-i-download-a-feature-layer-from-my-ago/m-p/869713#M4594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to download a feature layer from my AGO enterprise account as a shapefile or CSV. I have the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;item_id = select_item.id&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;agolItem = gis.content.get(item_id)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;outputGDB = extract_data([agolItem], data_format='Shapefile')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this code gives me the following error:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{"messageCode": "AO_100026", "message": "ExtractData failed."} Failed to execute (ExtractData). Failed.

I read a few other post just like mine but I couldn't figure out why I keep getting an error. 

Thank you &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:50:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-i-download-a-feature-layer-from-my-ago/m-p/869713#M4594</guid>
      <dc:creator>deleted-user-4LjGx0CueIPn</dc:creator>
      <dc:date>2021-12-12T10:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I download a Feature Layer from my AGO account using the Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-i-download-a-feature-layer-from-my-ago/m-p/869714#M4595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following code works for me, and my environment is Python API version 1.5.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; GIS
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; extract_data

gis&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;profile&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"agol_simoprofile"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# test_item is a feature service item&lt;/SPAN&gt;
test_item&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"&amp;lt;my item id&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

result&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;extract_data&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;test_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layers&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;output_name&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"test_extract_data"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;data_format&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"SHAPEFILE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
result&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:50:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-i-download-a-feature-layer-from-my-ago/m-p/869714#M4595</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2021-12-12T10:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I download a Feature Layer from my AGO account using the Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-i-download-a-feature-layer-from-my-ago/m-p/869715#M4596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the code you provided me and it works perfectly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 14:38:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-i-download-a-feature-layer-from-my-ago/m-p/869715#M4596</guid>
      <dc:creator>deleted-user-4LjGx0CueIPn</dc:creator>
      <dc:date>2018-08-30T14:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I download a Feature Layer from my AGO account using the Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-i-download-a-feature-layer-from-my-ago/m-p/869716#M4597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not problem &amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 23:44:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-i-download-a-feature-layer-from-my-ago/m-p/869716#M4597</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2018-08-30T23:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I download a Feature Layer from my AGO account using the Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-i-download-a-feature-layer-from-my-ago/m-p/1213572#M7765</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12731"&gt;@simoxu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;exports_data() exports data in AGO not on local disk. Do you know any way that I can download the secured feature layer directly to the disk?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 20:23:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-can-i-download-a-feature-layer-from-my-ago/m-p/1213572#M7765</guid>
      <dc:creator>AzinSharaf</dc:creator>
      <dc:date>2022-09-16T20:23:36Z</dc:date>
    </item>
  </channel>
</rss>

