AnsweredAssumed Answered

How can I download a Feature Layer from my AGO account using the Python API

Question asked by FloreR2@dcfs.lacounty.gov_lacounty on Aug 29, 2018
Latest reply on Aug 30, 2018 by simo

Hello everyone,


I am trying to download a feature layer from my AGO enterprise account as a shapefile or CSV. I have the following code:


item_id =

agolItem = gis.content.get(item_id)

outputGDB = extract_data([agolItem], data_format='Shapefile')


this code gives me the following error:

{"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