J'ai rencontré de nombreux utilisateurs qui ont demandé la possibilité de télécharger les services de fonctionnalités hébergés ArcGIS Online et les services de fonctionnalités/cartes ArcGIS Server. Voir l'outil ci-joint pour faire exactement cela. L'outil vous permettra également de télécharger les pièces jointes des services de fonctionnalités hébergés ArcGIS Online. J'espère que les utilisateurs trouveront cela utile et pratique.<\/P>
<\/P>
Mise à jour 10\/08\/17:<\/STRONG> L'outil téléchargera désormais les domaines de valeurs codées dans la géodatabase. De plus, consolidation des versions 2x et 3x en un seul outil. L'outil peut être exécuté depuis ArcGIS Pro ou ArcGIS Desktop.<\/P>Mise à jour 13\/11\/17: <\/STRONG>L'outil prend désormais en charge l'utilisation d'une clause where pour interroger le service.<\/P>Mise à jour 14\/03\/17:<\/STRONG> Mise à jour vers un script unique pour ArcMap\/Pro utilisant le module requests<\/P>Mise à jour 17\/01\/19:<\/STRONG> Merci à Adam Eversole<\/A> d'avoir signalé que la fonctionnalité de cet outil peut désormais être prise en charge par l'outil Feature Class to Feature Class<\/A> d'ArcGIS Pro :<\/P><\/P><\/BODY><\/HTML>
<\/P><\/BODY><\/HTML>
Generating Token
URL is incorrect. Or, Service is secure, please enter username and password.
Completed script DownloadService...Failed to execute (DownloadService).Failed at Wed Dec 07 14:15:53 2016 (Elapsed Time: 4.24 seconds)
im not really sure why its saying the URL is incorrect, the service is secure and i provided the appropriate un/pw.
dave
RawansSaleh this tool will only work with map/feature services.
jskinner-esristaff
it appears to be a public vs secure service issue.
i briefly made my service public and the tool ran great. the minute i returned it back to private the tool fails...any thooughts?
im am sure that i am giving the correct un/pw
Dave Tenney how do you have the service secured, using Active Directory or ArcGIS Server Built-In? If you are using Active Directory, do you know if the authentication tier is at the Web Server or GIS Server? It may be helpful to include a screen shot of ArcGIS Server Manager > Security tab. Ex:
we are using the server built-in security...
dtenney I would need to take a look at the service URL. If you would like, you can send me a personal message with the URL and a username/password I could use.
sure thing
I encountered an issue where the tool doesn't appear to work on Map Services from ArcGIS Server with over 100,000 records. The tool copied features up to 100,000, but then failed. I'm using a version of the tool I downloaded on July 20, 2015 (not sure if there have been changes since).
Error message:
Traceback (most recent call last): File "F:\Scripts\ArcGIS Desktop\Export Feature Service\Download Service with Attachments.py", line 170, in <module> fs.load(fsURL) File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\arcobjects\arcobjects.py", line 175, in load return convertArcObjectToPythonObject(self._arc_object.Load(*gp_fixargs(args)))RuntimeError: RecordSetObject: Cannot open table for Load
Failed to execute (DownloadService).Failed at Fri Dec 16 13:53:27 2016 (Elapsed Time: 17 minutes 39 seconds)
Hi Jake,
Thanks for this tool. I was able to use this tool but I am not able to download the Subtypes from the feature services. I have 6 subtypes (Taxon- Herp, Bird, Plant, Invert, Mammals, Fish) in GDB but after using this tool I got integer instead of Taxon names as shown below.
Any help would be highly appreciated.
pmckinneyccpa can you share the service to a AGOL Group and invite me to the group to take a look. My AGOL username is jskinner_CountySandbox.
pankajjamwal does not currently support downloading domains or subtypes. You will need to recreate the subtypes for the feature class.
I sent you an invite. To provide some background, our regional public safety Task Force is looking into updating our regional datasets from each county using web services. This tool is very promising if we can get all records from services.
Thanks for looking into it,
Patrick
Patrick McKinney I believe this may be something specific with the service. I tested your service and the features stop downloading after 100,000, but I don't receive an error. I tested with a service (100,635 features) I published to ArcGIS Server and was able to successfully download it. I am also using ArcGIS Server 10.5, and I noticed you are using 10.3.1. If you would like to try the data I used, you can download it from here.
Thanks for looking into it jskinner-esristaff. I'll test with some other services. I believe we will be upgrading to 10.5 after the first service pack is released.
FYI on this script from the Survey123 guys. It syncs to SQL.
https://community.esri.com/groups/survey123/blog/2016/12/14/migrating-data-from-the-survey-feature-service-to-an-enterprise-geodatabase
Hi Louis - If it helps I started testing a bare-bones method below (ArcGIS Pro 1.4) to download simple AGS FS records. I was anxious to see the process work with Pro/Python 3.4 because this is how we update many of our regional base layers from partnering agencies. As our test case was simple, the code below accounts for none of the error checking, case types, or number-of-records-handling that Jake's tool provides (which we use in production).
*Note: Even when the source AGS services' max record count is set above 1k I found that the process can bomb depending upon the combination of number of features, number of fields, etc. In my case the largest number of features I downloaded in one go was 10k parcels. Its likely that you'll have to account for a > 1k record set somehow (Jakes' tool accounts for this). But in one test I simply split the records: One url for the 1st half, One url for the 2nd half of the records...merged after.
I tried it on the service below and it appears to work. Click supported operations:'query' at bottom of page to ui-build json query (url).
https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/0
In Pro python window (below):
localfc = r'C:\LocalFolder\Local.gdb\wwctrees' url = 'Insert your resulting url from json format Query (GET) here'fs = arcpy.FeatureSet() fs.load(url) arcpy.CopyFeatures_management(fs, localfc)
HTH
-Nick
Hi Jake, I appear to be having the exact same issue as Dave Tenney. The tool works if I turn off security using ArcGIS Server security. Once I use security I get the message: URL is incorrect. Or, Service is secure, please enter username and password. Were you able to resolve the issue that Dave Tenney had??
Thanks,
Eric
EA1, if you are using Web Tier authentication you will need to bypass your web adaptor to download the service. Ex:
https://ags1.esri.com:6443/arcgis/rest/services/Parcels/MapServer/0
Hi Jake
I've just tried to using this awesome tool, how can I handle proxy connexion issue. Kindly help
Wesley
Wesley Koros you may want to take a look at the following:
Using an HTTP PROXY - Python - Stack Overflow
Thanks Jake, will have a look at it tomorrow and let you know if outcome. Cheers!
Sent from my iPhone
I tried fixing the proxy but getting the following attached error:
Kindly advise here:
Awesome! The tool works fine when i use a desktop with version 10.3
installed , but for version 10.4 it does not work, i get the following
error:
Is the tool constrained to version 10.3 and below?
Wesley Koros I have successfully run this tool at 10.2, 10.3, 10.4, and 10.5. Were you on a different server when you ran it from 10.3? May want to compare the LAN settings for each server by going to Start > Internet Options > Connections tab > LAN settings.
Hi Jake, this is what I get when I try to run the tool! I am new to GIS and I have no idea what that means, also I had my GIS teacher take a look at it, and he didn't know what the case was either. It doesn't say what the error is.
sabbahmona I would recommend writing the output to a File Geodatabase rather than a shapefile. With the number of features this service has, it may exceed the shapefile 2 GB limit. I was able to get this tool to execute, here is how I had it setup:
Unfortunately I still have the same problem, and I also have that red mark on top! even before I insert anything I still have that red error mark on top.
The only thing I can think of is to try and re-download the tool. Also, can you try executing the tool on another server?
Jake Skinner
Hi there Jake,
I have used your tool successfully on several different projects and to say that it is handy is an understatement! I am trying to run it on a new data set and I keep getting the following error. I literally publish in the same way and follow the same work flow as my other data but this one errors out. Would you be able to shine some light as to why? Thank you!
amandaopp can you share the service to an AGOL Group and invite my username to it: jskinner_CountySandbox
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.