AnsweredAssumed Answered

What is ERROR 999998?

Question asked by cinclan on Jun 4, 2015
Latest reply on Dec 18, 2017 by jwingate

I am using a Python script to do geocoding of several files. Some times it fails at the second call to the   arcpy.GeocodeAddresses_geocoding  function

 

Here is the function call. I define the local variables used as actual parameter values earlier in the program

arcpy.GeocodeAddresses_geocoding(in_table=infile_step1,

                                 address_locator=myaddr_locator,

                                 in_address_fields=address_fields,

                                 out_feature_class=outfile_step1,

                                 out_relationship_type="STATIC")

 

It works for the first file, and when I redefine infile_step1 and outfile_step1 and call it again, I get the following error:

 

File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\geocoding.py", line 212, in GeocodeAddresses

    raise e

ExecuteError: ERROR 999998: Unexpected Error.

Failed to execute (GeocodeAddresses).

 

What is in line 212 of the geocoding.py file?

 

Thanks

 

Carla

Outcomes