>>> arcpy.ExtractData_production("'C:\\Temp\\Python\\GRSM_20140326075058.gdb\\Boundaries_And_AOIs\\grsm_bndry_polygon'","C:\\Temp\\Python\\GRSM_20140326075333.gdb","DO_NOT_REUSE","NO_FILTER_BY_GEOMETRY","INTERSECTS","") <Result 'C:\\Temp\\Python\\GRSM_20140326075333.gdb'>
>>> import arcpy >>> arcpy.CheckOutExtension("Foundation") u'CheckedOut' >>> arcpy.ExtractData_production("C:/Temp/Python/GRSM_20140326075058.gdb/Boundaries_And_AOIs/grsm_bndry_polygon","C:/Temp/Python/GRSM_20140326075333.gdb","DO_NOT_REUSE","NO_FILTER_BY_GEOMETRY","INTERSECTS","")
Traceback (most recent call last): File "<pyshell#26>", line 1, in <module> arcpy.ExtractData_production("C:/Temp/Python/GRSM_20140326075058.gdb/Boundaries_And_AOIs/grsm_bndry_polygon","C:/Temp/Python/GRSM_20140326075333.gdb","DO_NOT_REUSE","NO_FILTER_BY_GEOMETRY","INTERSECTS","") AttributeError: 'module' object has no attribute 'ExtractData_production'
in_ds = r'C:\Temp\Python\GRSM_20140326075058.gdb\Boundaries_And_AOIs\grsm_bndry_polygon' target_db = r'C:\Temp\Python\GRSM_20140326075333.gdb' ### see if spatial analyst extension is available for use availability = arcpy.CheckExtension("Foundation") if availability == "Available": arcpy.CheckOutExtension("Foundation") arcpy.AddMessage("Foundation Ext checked out") else: arcpy.AddError("%s extension is not available (%s)"%("Foundation Extension",availability)) arcpy.AddError("Please ask someone who has it checked out but not using to turn off the extension") return arcpy.ExtractData_production(in_ds,target_db,"DO_NOT_REUSE","NO_FILTER_BY_GEOMETRY","INTERSECTS","") #return the extension arcpy.CheckInExtension("Foundation")
availability = arcpy.CheckExtension("Foundation") if availability == "Available": arcpy.CheckOutExtension("Foundation") arcpy.AddMessage("Foundation Ext checked out") else: arcpy.AddError("%s extension is not available (%s)"%("Foundation Extension",availability)) arcpy.AddError("Please ask someone who has it checked out but not using to turn off the extension") return
>>> arcpy.CheckOutExtension("Foundation") u'CheckedOut' >>> arcpy.CheckInExtension("Foundation") u'CheckedIn'
Trans = r'C:\Temp\Python\GRSM_20140326075058.gdb\Boundaries_And_AOIs\grsm_bndry_polygon' TarGDB = r'C:\Temp\Python\GRSM_20140326075333.gdb' arcpy.ExtractData_production(Trans,TarGDB,"DO_NOT_REUSE","NO_FILTER_BY_GEOMETRY","INTERSECTS","")
Traceback (most recent call last): File "C:\Temp\Python\GRSM.PY", line 17, in <module> arcpy.ExtractData_production(Trans,TarGDB,"DO_NOT_REUSE","NO_FILTER_BY_GEOMETRY","INTERSECTS","") AttributeError: 'module' object has no attribute 'ExtractData_production'
>>> Trans = r'C:\Temp\Python\GRSM_20140326075058.gdb\Boundaries_And_AOIs\grsm_bndry_polygon' >>> Trans 'C:\\Temp\\Python\\GRSM_20140326075058.gdb\\Boundaries_And_AOIs\\grsm_bndry_polygon' >>> TarGDB = r'C:\Temp\Python\GRSM_20140326075333.gdb' >>> TarGDB 'C:\\Temp\\Python\\GRSM_20140326075333.gdb' >>> arcpy.ExtractData_production(Trans,TarGDB,"DO_NOT_REUSE","NO_FILTER_BY_GEOMETRY","INTERSECTS","") Traceback (most recent call last): File "<pyshell#7>", line 1, in <module> arcpy.ExtractData_production(Trans,TarGDB,"DO_NOT_REUSE","NO_FILTER_BY_GEOMETRY","INTERSECTS","") AttributeError: 'module' object has no attribute 'ExtractData_production'
And now with the installation of Mapping and Charting Solutions 10.2.2 Patch 2 | Samples and Utilities the same error is produced once again with ArcMap 10.2.2. Really frustrated with how every version and patch from ESRI continually breaks things that reasonably would be stable through releases.....
Traceback (most recent call last): File "X:\GIS_Final\data\basedata\basemap\Data\Working\Python_Automated_Scripts\GRSMHYDRO.py", line 39, in <module> arcpy.ExtractData_production("X:\\GIS_Final\\data\\basedata\\basemap\\Data\\Working\\Python_Automated_Scripts\\GRSM.sde\\GRSM.DBO.Boundaries_And_AOIs","USE_FILTERS", GDB,"DO_NOT_REUSE","NO_FILTER_BY_GEOMETRY","INTERSECTS","") AttributeError: 'module' object has no attribute 'ExtractData_production'
Does anyone know if there's been any movement on this? We're using 10.2.1 and getting the same problems. Even when I point the script to the proper toolbox, I get the error:
ERROR 000617: Error accessing tool Extract Data
Failing an actual fix for this, does anyone know of a decent way to replicate the speed of Extract Data in the ArcPy environment? Clip works, but it's far slower than Extract Data.
No, as of 10.5.1 this is still not working.
Maybe a path issue? Try,
outputWS = r'X:\GIS_Final\data\basedata\basemap\Data\Working\Python_Automated_Scripts\GRSM.sde'
outputName = r'GRSM.DBO.Boundaries_And_AOIs'
inputFC = os.path.join(outputWS, outputName)
arcpy.ExtractData_production(inputFC,"USE_FILTERS", GDB,"DO_NOT_REUSE","NO_FILTER_BY_GEOMETRY","INTERSECTS","")