<?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: export hosted feature layer using python in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/export-hosted-feature-layer-using-python/m-p/141690#M6959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give this thread a try:&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/oevans/6992139" title="https://gist.github.com/oevans/6992139"&gt;Python script to pull hosted features with attachments into a local file geodatabase. See ReadMe below. · GitHub&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jul 2016 16:49:35 GMT</pubDate>
    <dc:creator>DarrylKlassen1</dc:creator>
    <dc:date>2016-07-12T16:49:35Z</dc:date>
    <item>
      <title>export hosted feature layer using python</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/export-hosted-feature-layer-using-python/m-p/141686#M6955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to create a fgdb from a hosted feature layer automatically via a schedule or script and download that fgdb so I have a local copy, as a backup but also to update my local data.&lt;/P&gt;&lt;P&gt;Manually it's no problem to export to fgdb and download that file that but how can I automate it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preferrably using python. I suspect this might be possible using REST but I find/understand no leads to do this, help is appreciated, (you will be mentioned in the credits and we might send cookies :-))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 10:03:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/export-hosted-feature-layer-using-python/m-p/141686#M6955</guid>
      <dc:creator>Gisbert61</dc:creator>
      <dc:date>2016-07-12T10:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: export hosted feature layer using python</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/export-hosted-feature-layer-using-python/m-p/141687#M6956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following tool may help you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/docs/DOC-6496"&gt;Download ArcGIS Online Feature Service or ArcGIS Server Feature/Map Service&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 12:03:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/export-hosted-feature-layer-using-python/m-p/141687#M6956</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2016-07-12T12:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: export hosted feature layer using python</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/export-hosted-feature-layer-using-python/m-p/141688#M6957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jake,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I've seen and used your service before (and I am grateful you wrote it) but unfortunately it doesn't download the attachments in the database like it is on the online site. If I remember correct the attachments are send to a separate folder but this morning I could not even get any attachments to download using the toolbox (arcmap 10.3.1 for desktop, 10.3.1.4959, basic license). I retried after a fresh download of your tool but still no attachments ... The toolbox returns a message about 'no attachments found'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems really strange to me that I am capable of manually exporting and downloading a filegeodatabase (in which I find all photo's with their relations) but that it is impossible to script that workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing I've tried is opening the hosted feature service in arcmap for desktop and 'create a local copy for editing' which took quite a while but also lacked the photo's/attachments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 13:58:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/export-hosted-feature-layer-using-python/m-p/141688#M6957</guid>
      <dc:creator>Gisbert61</dc:creator>
      <dc:date>2016-07-12T13:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: export hosted feature layer using python</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/export-hosted-feature-layer-using-python/m-p/141689#M6958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The tool will store the attachments in the geodatabase.&amp;nbsp; It does download the attachments to a folder, but then creates them as geodatabase attachments afterwards.&amp;nbsp; Not sure why this tool isn't downloading the attachments, but after you stated that creating a local copy for editing didn't bring the attachments across either, it leads me to believe something is wrong with the service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option you could do is download the data as a zip file.&amp;nbsp; Take a look at the following blog for more details:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migration-blogpost/1279"&gt;How to Access Item Data Stored in ArcGIS Online or Portal with ArcGIS REST API&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tested this, but you could use python to post the URL to create a zipped geodatabase, and then download this zip file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 14:29:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/export-hosted-feature-layer-using-python/m-p/141689#M6958</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2016-07-12T14:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: export hosted feature layer using python</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/export-hosted-feature-layer-using-python/m-p/141690#M6959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give this thread a try:&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/oevans/6992139" title="https://gist.github.com/oevans/6992139"&gt;Python script to pull hosted features with attachments into a local file geodatabase. See ReadMe below. · GitHub&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 16:49:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/export-hosted-feature-layer-using-python/m-p/141690#M6959</guid>
      <dc:creator>DarrylKlassen1</dc:creator>
      <dc:date>2016-07-12T16:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: export hosted feature layer using python</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/export-hosted-feature-layer-using-python/m-p/141691#M6960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible this tools doesn't download the attachments when used from a basic (arcview) license?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ask because I've published a brand new feature layer using my basic licensed arcmap for desktop and after that I've enabled attachments in that layer in the agol desktop.&lt;/P&gt;&lt;P&gt;I am now able to add pictures in collector on my ipad and I see those pictures/attachments in the agol desktop.&lt;/P&gt;&lt;P&gt;I can also see them after dragging the feature service from "My Hosted Services" in the Catalog window to the toc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But after 'create local copy for editing' I've got everything but the attachments so I wonder if technology is required for which i'm not licensed. No error message was seen, only:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/212116_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be usefull to know whether or not we need to upgrade our license or investigate other tips shared in this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance for your time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bert &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 12:15:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/export-hosted-feature-layer-using-python/m-p/141691#M6960</guid>
      <dc:creator>Gisbert61</dc:creator>
      <dc:date>2016-07-18T12:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: export hosted feature layer using python</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/export-hosted-feature-layer-using-python/m-p/141692#M6961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you will need at least a ArcGIS Desktop Standard license to create attachments.&amp;nbsp; I will have to update the tool so that is first checks if the user is using a Standard license and then report an error is they are not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 12:26:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/export-hosted-feature-layer-using-python/m-p/141692#M6961</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2016-07-18T12:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: export hosted feature layer using python</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/export-hosted-feature-layer-using-python/m-p/141693#M6962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I 've found a solution for my problem using the create_replica_portal_item.py from &lt;A href="https://github.com/Esri/ArcREST" title="https://github.com/Esri/ArcREST"&gt;GitHub - Esri/ArcREST: python package for REST API (AGS, AGOL, webmap JSON, etc..) &lt;/A&gt;​.&lt;/P&gt;&lt;P&gt;Had to modify the script slightly (see comment at github) but now I can download what I want. When there are attachments they are downloaded too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 08:56:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/export-hosted-feature-layer-using-python/m-p/141693#M6962</guid>
      <dc:creator>Gisbert61</dc:creator>
      <dc:date>2016-07-20T08:56:50Z</dc:date>
    </item>
  </channel>
</rss>

