<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ERROR 000010: Geocode addresses failed. Failed to execute (GeocodeAddresses) in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/error-000010-geocode-addresses-failed-failed-to/m-p/403968#M23193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your output locations need to be shapefile paths or geodatabase paths, as written you have just filenames.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 May 2013 14:26:13 GMT</pubDate>
    <dc:creator>BruceHarold</dc:creator>
    <dc:date>2013-05-20T14:26:13Z</dc:date>
    <item>
      <title>ERROR 000010: Geocode addresses failed. Failed to execute (GeocodeAddresses)</title>
      <link>https://community.esri.com/t5/data-management-questions/error-000010-geocode-addresses-failed-failed-to/m-p/403965#M23190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to use python to geocode a set of files, but it returns the above error after a few minutes of running the code every time. I've read that I might need to convert my files into a .dbf format, but I'm not sure. I've put my code below. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;#Julian Katz-Samuels
#May 1, 2013
#Geocode addresses

import arcpy

arcpy.env.workplace="X:\ebruch\shared"

parts=range(10)
parts.remove(0)
parts=map(str, parts)

years=["2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009"]

Geocoder = r"GIS Servers\arcgis on tasks.arcgisonline.com\Locators\TA_Address_NA_10.geocodeServer"

for i in years:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for j in parts:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; address_table= r"X:\ebruch\shared\HistoryFile" + i + "_part" + j +".csv"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geocode_result= r"X:\ebruch\shared\GeocodedHistoryFiles\GeocodedHistoryFile" + i + "_part" + j 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.GeocodeAddresses_geocoding(address_table, Geocoder, "Address SRmailSTREETNAME VISIBLE NONE;City SRmailCITY VISIBLE NONE;State SRmailSTATE VISIBLE NONE;Zip SRmailZIP VISIBLE NONE", geocode_result, "STATIC")
print "Done!"

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Julian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:24:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-000010-geocode-addresses-failed-failed-to/m-p/403965#M23190</guid>
      <dc:creator>JulianKatz-Samuels</dc:creator>
      <dc:date>2021-12-11T18:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000010: Geocode addresses failed. Failed to execute (GeocodeAddresses)</title>
      <link>https://community.esri.com/t5/data-management-questions/error-000010-geocode-addresses-failed-failed-to/m-p/403966#M23191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm trying to use python to geocode a set of files, but it returns the above error after a few minutes of running the code every time. I've read that I might need to convert my files into a .dbf format, but I'm not sure. I've put my code below. &lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;#Julian Katz-Samuels
#May 1, 2013
#Geocode addresses

import arcpy

arcpy.env.workplace="X:\ebruch\shared"

parts=range(10)
parts.remove(0)
parts=map(str, parts)

years=["2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009"]

Geocoder = r"GIS Servers\arcgis on tasks.arcgisonline.com\Locators\TA_Address_NA_10.geocodeServer"

for i in years:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for j in parts:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; address_table= r"X:\ebruch\shared\HistoryFile" + i + "_part" + j +".csv"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geocode_result= r"X:\ebruch\shared\GeocodedHistoryFiles\GeocodedHistoryFile" + i + "_part" + j 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.GeocodeAddresses_geocoding(address_table, Geocoder, "Address SRmailSTREETNAME VISIBLE NONE;City SRmailCITY VISIBLE NONE;State SRmailSTATE VISIBLE NONE;Zip SRmailZIP VISIBLE NONE", geocode_result, "STATIC")
print "Done!"

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Julian&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you look that error up to see if it has explanations about potential causes?&amp;nbsp; The text of the error you have written is very generic.&amp;nbsp; That could be the nature of the error, but the help sometimes gives details that narrow down what caused the error better than the error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since the error is so generic, I would add a file exists test to verify a file with the input name you are feeding to the tool actually exists.&amp;nbsp; Not sure how good error messaging is when an input does not actually exist, but even a single character difference in a file name (a leading zero inconsistency for example) or a missing file name in the series would be the first error possibility I would eliminate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You also have not set the geocode process flag that overwrites prior outputs.&amp;nbsp; If you ran this and an output continues to exist from a prior run I would expect a failure.&amp;nbsp; The tool you are using also may not support overwriting a prior output even if that flag is set.&amp;nbsp; In any case, it is possible the tool would only fail when it is nearly complete and actually attempting to overwrite a prior output.&amp;nbsp; Be sure to clean out all prior outputs before rerunning the code (or adjust the code to start at a point that will not impact the prior outputs).&amp;nbsp; Of course if no output has ever been generated by this code ever, that would be an important piece of information to help narrow down the cause of the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other error possibilities exist, but these two are errors that commonly crop up when working through a series of files and attempting to rerun tools after a prior failure.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:24:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-000010-geocode-addresses-failed-failed-to/m-p/403966#M23191</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2021-12-11T18:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000010: Geocode addresses failed. Failed to execute (GeocodeAddresses)</title>
      <link>https://community.esri.com/t5/data-management-questions/error-000010-geocode-addresses-failed-failed-to/m-p/403967#M23192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply. The error is that it can't find the address locator. I don't understand why this is occuring since I checked that I got the correct file path. One odd thing is that it seems to be reading the file in incorrectly. Consider the following code and error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; open(r'GIS Servers\arcgis on tasks.arcgisonline.com\Locators\TA_Address_NA_10.GeocodeServer')
Runtime error &amp;lt;type 'exceptions.IOError'&amp;gt;: [Errno 2] No such file or directory: 'GIS Servers\\arcgis on tasks.arcgisonline.com\\Locators\\TA_Address_NA_10.GeocodeServer'&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems to read in too many back slashes. I have also tried to open other files on my computer in python in arcgis and it doesn't work. Could there be a problem with python in arcgis where it doesn't allow me to open other files?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Julian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:24:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-000010-geocode-addresses-failed-failed-to/m-p/403967#M23192</guid>
      <dc:creator>JulianKatz-Samuels</dc:creator>
      <dc:date>2021-12-11T18:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000010: Geocode addresses failed. Failed to execute (GeocodeAddresses)</title>
      <link>https://community.esri.com/t5/data-management-questions/error-000010-geocode-addresses-failed-failed-to/m-p/403968#M23193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your output locations need to be shapefile paths or geodatabase paths, as written you have just filenames.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 14:26:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-000010-geocode-addresses-failed-failed-to/m-p/403968#M23193</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2013-05-20T14:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000010: Geocode addresses failed. Failed to execute (GeocodeAddresses)</title>
      <link>https://community.esri.com/t5/data-management-questions/error-000010-geocode-addresses-failed-failed-to/m-p/403969#M23194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Hi,&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Thanks for the reply. The error is that it can't find the address locator. I don't understand why this is occuring since I checked that I got the correct file path. One odd thing is that it seems to be reading the file in incorrectly. Consider the following code and error:&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; &lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; open(r'GIS Servers\arcgis on tasks.arcgisonline.com\Locators\TA_Address_NA_10.GeocodeServer')
Runtime error &amp;lt;type 'exceptions.IOError'&amp;gt;: [Errno 2] No such file or directory: 'GIS Servers\\arcgis on tasks.arcgisonline.com\\Locators\\TA_Address_NA_10.GeocodeServer'&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;It seems to read in too many back slashes. I have also tried to open other files on my computer in python in arcgis and it doesn't work. Could there be a problem with python in arcgis where it doesn't allow me to open other files?&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Thanks,&amp;nbsp; &lt;BR /&gt;Julian&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The number of backslashes shown is correct, since backslash is an escape character to python and in order for python to resolve it as an actual character it either must be preceeded with the raw qualifier (the r in front of the quoted string) or each literal backslash character must be preceeded by an escape backslash character.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know how your servers are set up, but in my system I would have expected two backslashes would preceed the server name if this is a dfs setup, i.e., &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;open(r'&lt;/SPAN&gt;&lt;STRONG style="color: &amp;quot;#FF0000&amp;quot;;"&gt;\\&lt;/STRONG&gt;&lt;SPAN&gt;GIS Servers\arcgis on tasks.arcgisonline.com\Locators\TA_Address_NA_10.GeocodeServer')&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:24:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-000010-geocode-addresses-failed-failed-to/m-p/403969#M23194</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2021-12-11T18:24:35Z</dc:date>
    </item>
  </channel>
</rss>

