This code was previously running successfully, for months. It now fails with this error:
{"messageCode": "AO_100026", "message": "ExtractData failed."}
import arcpy
from arcgis.gis import GIS
from arcgis.features.manage_data import extract_data
gis = GIS("http://spokanecounty.maps.arcgis.com/","<usr>","<pw>")
agolItem = gis.content.get('76d5d453ed374160ab20cd61bf97b056')
outputGDB = extract_data([agolItem])
I have attempted to: define the data_format as shapefile and filegeodatabase, run this on a cloned copy of the data, run this on a different machine on a different Pro licence (named user vs concurrent), run this as a different user, run this with access to 'Everyone', changed the Export Data setting of the agol item to 'Allow others to export to different formats'. Has this occurred for anyone on the 1.3.0 api?
Test Dataset: http://spokanecounty.maps.arcgis.com/home/item.html?id=76d5d453ed374160ab20cd61bf97b056
Thanks for sharing.
You are using arcpy's ExtractData_server function. You shouldn't need to import arcgis as this is a different library.
Extract Data—Help | ArcGIS Desktop
Ah, of course. I guess I didn't even realize that I had changed the python library while trying to solve this. I guess my solution is not a solution, but instead just a possible workaround for now.
ArcGIS Python API 1.5.0 is out now. I see no reference to extract_data in the What's New section. Have yet to try this version.
What's new in version 1.5 | ArcGIS for Developers