Using ArcMap 10.6 to load a Python script that will geocode 25,000 addresses. It looks like it fail during the actual gecoding attempt with an error: ERROR 000010: Geocode addresses failed.Failed to execute (GeocodeAddresses). I've tried switching forward slashes to back slashes, removing spaces in my file directories, and tried using a DBF outside of the GDB or tried using the table as a GDB table.

import arcpy
from arcpy import env
env.overwriteOutput = True

arcpy.env.workspace = "C:/Data_Projects/OCHIN_CVS/Scripting/OCHIN_Scripting.gdb" 

address_table   = r"C:/Data_Projects/OCHIN_CVS/Scripting/OCHIN_Geocoding.dbf"
address_locator = "C:/StreetMapPremium/Locators/USA_ZIP4_LocalComposite"
address_fields = "Provider_Prefer_Add_Street Address;Provider_Prefer_Add_City City;Provider_Prefer_Add_State State;Provider_Prefer_Add_Zip Zip"

geocode_result  = "C:/Data_Projects/OCHIN_CVS/Scripting/OCHIN_Scripting.gdb/geocode_result"

arcpy.GeocodeAddresses_geocoding(address_table, address_locator, address_fields, geocode_result, "STATIC")   

del mxd, df, code

print "Success!"

EDIT: I have run this script on a machine that has a Basic license, and on another machine that has an Advanced license. Can anyone shed light on why this might fail?

  • 3
    A Google on "ERROR 000010 arcgis" returned this document as the first response. It seems to offer a number of options that you didn't list, and has links to other documents as well. – Vince Dec 22 '18 at 4:38
  • What is your license level for ArcGIS? – smiller Dec 22 '18 at 5:16
  • My license level is Basic. I conduct geocoding routinely using the right click --> geocode addresses method, so I should be able to run it from Python? – Dave Dec 22 '18 at 12:19
  • As you're using Static, a basic license is enough. This should not be a license issue. – KHibma Jan 3 '19 at 18:31
  • What could be the problem then? Has anyone here confirmed that they can run geocoding from python? – Dave Jan 3 '19 at 18:49

I found a solution by running the Geocode Addresses GP tool and then exporting the model as a Python script. The path to the locator file needs double backslashes as such:

USA_ZIP4_LocalComposite = "C:\\StreetMapPremium\\Locators\\USA_ZIP4_LocalComposite"

I also added double backslashes for all paths in the geocoding step and it ran successfully. With other processes (like the spatial join, the double back slashes are not needed); seems exclusive to geocoding.

  • 1
    Your use of forward slash (/) should have been fine. I cant explain why it's not. but glad you got it working. – KHibma Jan 3 '19 at 19:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.