AnsweredAssumed Answered

Geocoding in python - workk with Composite Locators?

Question asked by recurvata on Sep 2, 2016
Latest reply on Sep 6, 2016 by recurvata

I've been trying to geocode a file geodatabase table against a composite locator in a python script. When I run it in PyScripter, it gives an EAccessViolation error, which according to Google is a memory error in the program (PyScripter).

But I also get an error when running it in IDLE, although the error message is far less detailed.

The composite locator is in a folder on another server. It has both point and road centerline locators. Is it possible to use a composite locator in python, or am I looking in the wrong direction?


    childcare_table = os.path.join(table_locations, "Childcare")
    geocoded_fc = os.path.join(table_locations, "LARA", "LARA_CDC")
    geocoder = r"\\gisfile\gis\Static\Geocoders\Composite_Locator"
    address_fields = "Street Fac_Addr;City City;Zip Zip"
    global ok

        print("\nRunning geocoding...")
        arcpy.GeocodeAddresses_geocoding(childcare_table, geocoder, address_fields, geocoded_fc)

         print("Unexpected error {0}\n\t{1}".format(sys.exc_info()[0], sys.exc_info()[1]))
         ok = False