Error when running extract_data on 1.3.0 API

2419
12
04-25-2018 04:15 PM
PhilLarkin1
Occasional Contributor III

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 

12 Replies
PhilLarkin1
Occasional Contributor III

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 

0 Kudos
Zach_Robinson
New Contributor III

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. 

0 Kudos
PhilLarkin1
Occasional Contributor III

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 

0 Kudos