Using Feature Service URL in Arcpy

260
3
03-19-2020 01:00 PM
AbdulahadMalik2
New Contributor III

Hi guys whats the best way to process a Feature services url in arcpy?

I have number of feature services (here's and example of one layer: https://services1.arcgis.com/d0ZCwU7eGKVeNiEE/ArcGIS/rest/services/MVT_Trails/FeatureServer/0 )

I am trying to process these layers, clip them to my jurisdiction and then save them in a GDB. However, arcpy does not recognize a feature service and I am getting an error.

Does anyone know what I need to do?

0 Kudos
3 Replies
JoeBorgione
MVP Esteemed Contributor

see this post of mine:  

https://community.esri.com/thread/246363-using-arcpy-to-copy-a-portal-feature-service-to-a-fgdb-feat... 

you'll need to venture into the arcpy api....

can't wait to retire....
AbdulahadMalik2
New Contributor III

would it be easier to use model builder instead. I've never used Arcpy API. 

0 Kudos
JoeBorgione
MVP Esteemed Contributor

I'm not a model builder guy; if you follow what Joshua Bixby‌ instructs me to do, you should be fine.  That was my first time into the api myself...

can't wait to retire....