<?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: Download Item Data in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872126#M4748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is by the API design. When you create a replica, you need replica's ID needs to be unique so the system assigns global ID to each replica. If you leave naming to the humans, it's likely there will be errors and duplicate values will be generated. So the API doesn't want to expose that option. &amp;nbsp;These are &amp;nbsp;just my thoughts, you probably want to ask Esri staff &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The replica_name parameter will only define the replica name on the server.&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/353946_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 May 2017 20:59:31 GMT</pubDate>
    <dc:creator>AhjungKim4</dc:creator>
    <dc:date>2017-05-24T20:59:31Z</dc:date>
    <item>
      <title>Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872105#M4727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to use the item's download method to download the data associated with a map image layer on &lt;STRONG&gt;Portal&lt;/STRONG&gt;.&amp;nbsp;But it doesn't seem to be able to download the data and I got b' ' as the output. I also tried the get_data method, which returns an error message saying "the JSON object must be str, not 'bytes'".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a similar workflow on a hosted feature layer on&amp;nbsp;&lt;STRONG&gt;ArcGIS Online&lt;/STRONG&gt;. And this time, it was able to download the item. But it only returns the data schema in a dictionary. Is there way to download the actual data behind a hosted feature service? Can the download method work with map image layers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or did I miss something here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 19:57:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872105#M4727</guid>
      <dc:creator>LesiMai3</dc:creator>
      <dc:date>2016-12-28T19:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872106#M4728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;You can download the data for file based item types. File based items include CSV, Service Definition, Shapefile, File Geodatabase, Powerpoint, etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Hosted feature layers and map image layers are not file based items, so you cannot use the item.download() method to download their data.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;For hosted feature layers, you can&amp;nbsp;use one of the following ways to get the data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;1) Use extract_data tool from the features.manage_data module (doc:&amp;nbsp;&lt;A class="link-titled" href="http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.features.manage_data.html#extract-data" title="http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.features.manage_data.html#extract-data" rel="nofollow noopener noreferrer" target="_blank"&gt;arcgis.features.manage_data module — arcgis 1.0 documentation&lt;/A&gt;). It's easy to use, couple examples:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class=""&gt;from arcgis.features.manage_data import extract_data
csv_lyr&lt;/SPAN&gt; &lt;SPAN class="" style="color: #666666;"&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;gis&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666;"&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;content&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666;"&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;get&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #ba2121;"&gt;'c8bc7d3c3b60415e9845bc00dcd777ed'&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="margin: 0px;"&gt;outputgdb&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666; margin: 0px;"&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px;"&gt;extract_data&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px;"&gt;([&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px;"&gt;csv_lyr&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="" style="margin: 0px;"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class=""&gt;outputgdb&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666;"&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;download&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #ba2121;"&gt;'C:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #bb6622; font-weight: bold;"&gt;\\&lt;/SPAN&gt;&lt;SPAN class="" style="color: #ba2121;"&gt;xc'&lt;/SPAN&gt;&lt;SPAN class=""&gt;)
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;DIV class="" style="color: #8b0000; background-color: #ffffff; padding: 0.4em;"&gt;Out[]: 'C:\\xc\\extract_data_20161025204926.zip'&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class=""&gt;# you can also specify the format:
outputcsv&lt;/SPAN&gt; &lt;SPAN class="" style="color: #666666;"&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;extract_data&lt;/SPAN&gt;&lt;SPAN class=""&gt;([&lt;/SPAN&gt;&lt;SPAN class=""&gt;csv_lyr&lt;/SPAN&gt;&lt;SPAN class=""&gt;],&lt;/SPAN&gt; &lt;SPAN class=""&gt;data_format&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #ba2121;"&gt;'CSV'&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;2) You can get the related data item for the layer, and download the data item used to publish the layer:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;relitems &lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&amp;nbsp;layer_item.related_items(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #183691; background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #183691;"&gt;"&lt;/SPAN&gt;Service2Data&lt;SPAN class="" style="color: #183691;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;relitems[0].download()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Rohit&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:54:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872106#M4728</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2021-12-12T10:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872107#M4729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the detailed clarification!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the your sample code on a hosted feature layer but got the following error message --&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/292488_pastedImage_7.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Lesi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 16:15:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872107#M4729</guid>
      <dc:creator>LesiMai3</dc:creator>
      <dc:date>2016-12-29T16:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872108#M4730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lesi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure why extracting data to a file geodatabase isn't working and the error message isn't very informative.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try specifying a different data_format such as Shapefile:&lt;/P&gt;&lt;P&gt;res = extract_data([lyr], data_format='Shapefile')&lt;/P&gt;&lt;P&gt;res.download('C:\\Test')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 18:00:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872108#M4730</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2016-12-29T18:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872109#M4731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're right! Changing to a data format other than file geodatabase works. Not sure why though...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lesi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 18:41:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872109#M4731</guid>
      <dc:creator>LesiMai3</dc:creator>
      <dc:date>2016-12-29T18:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872110#M4732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a follow-up question. After I downloaded the data using extract_data, I noticed that file item was added to AGOL. Is that the intended result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lesi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 18:04:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872110#M4732</guid>
      <dc:creator>LesiMai3</dc:creator>
      <dc:date>2017-01-04T18:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872111#M4733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lesi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is the intended result. You can then get the data downloaded to your computer using:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;res.download('C:\\Test')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Rohit&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 18:59:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872111#M4733</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2017-01-04T18:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872112#M4734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea whey when i use&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;from arcgis.features.manage_data import extract_data&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;I get No module name 'arcgis.features'&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 08:00:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872112#M4734</guid>
      <dc:creator>AlistairFox</dc:creator>
      <dc:date>2017-01-27T08:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872113#M4735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/63040"&gt;Alistair Fox&lt;/A&gt;‌ Can you check if you have upgraded to version 1.0 of the API? The `features` module is new in v1.0 and not found in v0.3 or earlier.&lt;/P&gt;&lt;P&gt;To check, open your terminal (or Python command prompt if you installed using Pro) and type&lt;/P&gt;&lt;PRE&gt;conda list&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and check the version next to `arcgis` package.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 18:20:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872113#M4735</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-01-31T18:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872114#M4736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes that was it. all sorted now that i am actually on the 1.0 release&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;apart from the fact the export_data seems to ignore the output_name attribute? anyone got that to work?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;outputgdb&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666; border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;extract_data([csv_lyr],output_name="fred")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;layer exported is still the default one esri use when you supply nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;I've tracked through the code and the ExtractData task is definitely getting passed the output name. When i switch to CSV it seems to use the service name (more usable) so I think it seems to be some hard coding inside the extract data task in online that for zipped file gdb outputs it forces to a set name structure. Can anyone confirm?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 02:58:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872114#M4736</guid>
      <dc:creator>AlistairFox</dc:creator>
      <dc:date>2017-02-01T02:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872115#M4737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can also confirm I'm getting the same problem. Won't export as a file geodatabase, but it will as a shapefile. When i try to specify output as FileGeodatabase, i get "Item does not exist or is inaccessible" which is obviously not the case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 09:19:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872115#M4737</guid>
      <dc:creator>BlakeGardiner2</dc:creator>
      <dc:date>2017-02-02T09:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872116#M4738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/rsingh-esristaff"&gt;rsingh-esristaff&lt;/A&gt;‌ I am also getting the "Item does not exist or is inaccessible" error when I try to download as file geodataabse. Is this a bug?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 20:45:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872116#M4738</guid>
      <dc:creator>AhjungKim4</dc:creator>
      <dc:date>2017-02-06T20:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872117#M4739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we have been able to download file geodatabase, but some do fail .At the moment we have a support call in with ESRI. we seem to think it is related to our Survey123 created and published feature classes only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have also note that extract_data call also consumes credits ,where as manual export data does not. Anyone know if there is an equivalent that does not consume credits&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 08:12:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872117#M4739</guid>
      <dc:creator>AlistairFox</dc:creator>
      <dc:date>2017-02-07T08:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872118#M4740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked our AGOL credit after reading this and it did, in fact, use credit! &amp;nbsp;Glad you mentioned it otherwise I would have continued to test. Thank you!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 14:13:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872118#M4740</guid>
      <dc:creator>AhjungKim4</dc:creator>
      <dc:date>2017-02-07T14:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872119#M4741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/63040" target="_blank"&gt;Alistair Fox&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You could query the service for the JSON. This doesn't consume credits. The method works best if your feature count is below the return limit of the service.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;from &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;arcgis.gis &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;GIS
&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;from &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;arcgis.features &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;FeatureLayer
&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;arcpy
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="background-color: #ffe4ff;"&gt;gis&lt;/SPAN&gt; = GIS(&lt;SPAN style="color: #008080; font-weight: bold;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2FyourROOT.maps.arcgis.com%2F" style="color: #2989c5; padding-right: calc(12px + 0.35ex);" target="_blank"&gt;http://yourROOT.maps.arcgis.com/&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;SPAN style="color: #008080; font-weight: bold;"&gt;"User"&lt;/SPAN&gt;,&lt;SPAN style="color: #008080; font-weight: bold;"&gt;"Pw"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;layer = FeatureLayer(&lt;SPAN style="color: #008080; font-weight: bold;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservices1.arcgis.com%2Foz19jk1209j09j39j%2FArcGIS%2Frest%2Fservices%2FServiceName%2FFeatureServer%2F0" style="color: #2989c5; padding-right: calc(12px + 0.35ex);" target="_blank"&gt;https://services1.arcgis.com/oz19jk1209j09j39j/ArcGIS/rest/services/ServiceName/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;,gis)&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="background-color: #ffe4ff;"&gt;featureSet&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt; = layer.query(&lt;/SPAN&gt;&lt;SPAN style="color: #660099;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-weight: bold;"&gt;'1=1'&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #660099;"&gt;out_fields&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-weight: bold;"&gt;'*'&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;)

&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffe4ff;"&gt;rawJSON&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt; = featureSet.to_json

jsonFile = 'c:\\somelocalpath\example.json'&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;localFC = &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;'c:\\somelocalpath\\Example.gdb\\data'&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;
&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;with &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;open&lt;/SPAN&gt;(jsonFile, &lt;SPAN style="color: #008080; font-weight: bold;"&gt;"w"&lt;/SPAN&gt;) &lt;SPAN style="color: #000080; font-weight: bold;"&gt;as &lt;/SPAN&gt;file:
&amp;nbsp;&amp;nbsp;&amp;nbsp; file.write(rawJSON)&lt;/PRE&gt;&lt;/PRE&gt;&lt;SPAN style="background-color: #e4e4ff;"&gt;arcpy&lt;/SPAN&gt;.JSONToFeatures_conversion(jsonFile,localFc&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:54:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872119#M4741</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2021-12-12T10:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872120#M4742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this looks like a really good solution if i can get it to work. 1st issue was it said arcpy didn't contain function&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;JSONToFeatures_conversion

I was running 10.3 Pro on the machine so I copied across a 10.4 arcpy module and now it complains i'm not running arcpy in a conda environment. 

Which i am, even when i run from the pro python interactive terminal it still complains about the environment

any ideas?

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:54:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872120#M4742</guid>
      <dc:creator>AlistairFox</dc:creator>
      <dc:date>2021-12-12T10:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872121#M4743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds as if you have multiple&amp;nbsp;python environments, neither of which have &lt;STRONG&gt;both&lt;/STRONG&gt; arcpy &lt;STRONG&gt;and&lt;/STRONG&gt; arcgis packages available.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I did to run these together:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)Install Pro 1.4&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)Added arcgis using Pro's package manager&lt;/P&gt;&lt;P&gt;3)Run script from Pro's python installation. In my case: C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please post a new question if this does not work for you.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;See screenshot of the package manager:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/328280_Capture.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 00:46:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872121#M4743</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2017-02-23T00:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872122#M4744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for posting this. I have written this as a back-up solution, but it is not ideal for feature services that have related records and attachment photos. Also, &amp;nbsp;it does not preserve the original OID. Exporting feature service to file geodatabase and downloading it is a workflow supported in ArcGIS Online. &amp;nbsp;But the Python API, which supposed to promote automating ArcGIS tasks did not include this in the API. But the "extract" workflow which is a premium service that cost a credit for 1,000 data points is somehow included in the API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's worse is now that I know this method consumes credit, I selectively chose a feature service that only has two data points. &amp;nbsp;But it consumed 15.71 credits per day every time I run the script. It does not reflect the credit consumption rate Esri documented.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an Esri Support ticket open for this but have not received a&amp;nbsp;satisfying answer yet. &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 15:09:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872122#M4744</guid>
      <dc:creator>AhjungKim4</dc:creator>
      <dc:date>2017-02-23T15:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872123#M4745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/150055"&gt;Ahjung Kim&lt;/A&gt;‌&lt;BR /&gt;You might want to consider creating a replica. However, this might be a&amp;nbsp;premium service.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The arcgis package appears to support this functionality:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.features.managers.html?highlight=replica#syncmanager" title="http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.features.managers.html?highlight=replica#syncmanager"&gt;arcgis.features.managers module — arcgis 1.0.1 documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 16:39:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872123#M4745</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2017-02-23T16:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Download Item Data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872124#M4746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was the&amp;nbsp;answer I got from the Esri Support: create a replica. &amp;nbsp;Below is the answer I got from the Esri Support. &amp;nbsp;I tried it and was able to download with attachments. Thank you. Phil.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;In terms of another way to download the data to file geodatabase, without consuming credits, you could &lt;A href="https://developers.arcgis.com/python/guide/checking-out-data-from-feature-layers-using-replicas/"&gt;create a replica using the Python API&lt;/A&gt;&amp;nbsp;and then download.&amp;nbsp;This is the programmatic equivalent of exporting to a file geodatabase from the Item Details page of a service, or creating a replica and manually entering paramters at the REST endpoint. &amp;nbsp;You may want to test manually from the Item Details page first and ensure that it works there; if it doesn't it won't work programmatically either, and confirms our suspicion that there could be a data-specific problem.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 15:55:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/download-item-data/m-p/872124#M4746</guid>
      <dc:creator>AhjungKim4</dc:creator>
      <dc:date>2017-02-24T15:55:25Z</dc:date>
    </item>
  </channel>
</rss>

