AnsweredAssumed Answered

Geocoding - Error - Address Locator does not exist or is not supported

Question asked by nikb999 on Jul 27, 2018
Latest reply on Aug 5, 2018 by nikb999

Hello, I am trying to automate geocoding a table of addresses. When I do it in ArcGIS/ArcMap via the geocoding toolbox, I have no problems. When I try to run the same using the python window, I get this error:

ERROR 000732: Input Address Locator: Dataset Ready-To-Use Services\Geocoding\ArcGIS World Geocoding Service.GeocodeServer does not exist or is not supported

I am not sure what's going on. Any help will be appreciated.

Thanks.

PS - I have also posted this question on StackOverflow.

Code that I tried. System: ArcMap 10.5.1 on Windows 10 machine.    

import arcpy
address_test_txt = "C:\\temp\\address_test.txt"
address_locator = "Ready-To-Use Services\\Geocoding\\ArcGIS World Geocoding Service.GeocodeServer"
arc_test_0719_shp = "C:\\temp\\arc_test_0719_2.shp"
add_fields = "'Address or Place' Field5 VISIBLE NONE; City Field6 VISIBLE NONE; State Field7 VISIBLE NONE;ZIP Field8 VISIBLE NONE"
# Process: Geocode Addresses
arcpy.GeocodeAddresses_geocoding(address_test_txt, address_locator, add_fields, arc_test_0719_shp, "STATIC")

 

Full listing of the error message:

Traceback (most recent call last):  File "", line 1, in 
    arcpy.GeocodeAddresses_geocoding(address_test_txt, address_locator, add_fields, arc_test_0719_shp, "STATIC")
  File "C:\Program Files (x86)\ArcGIS\Desktop10.5\ArcPy\arcpy\geocoding.py", line 295, in GeocodeAddresses   
raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Address Locator: Dataset Ready-To-Use Services\Geocoding\ArcGIS World Geocoding Service.GeocodeServer does not exist or is not supported
Failed to execute (GeocodeAddresses).

Outcomes