<?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: How to Batch Geocode with ArcGIS Online using Python? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-batch-geocode-with-arcgis-online-using/m-p/106646#M8237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the github code and I am consistently getting errors with the last function which does the actual geocoding. I have tested and retested and it creates output geodatabase and Arcgis online connection fine(see screenshot). The only thing I have&amp;nbsp;added on the code part is adding my arcgis online credentials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the error I am getting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; Traceback (most recent call last):&lt;BR /&gt; File "C:\Python27\ArcGIS10.4\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript&lt;BR /&gt; exec codeObject in __main__.__dict__&lt;BR /&gt; File "C:\GIS_Data\geocode\BatchGeocoding.py", line 56, in &amp;lt;module&amp;gt;&lt;BR /&gt; output_feature_class)&lt;BR /&gt; File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\geocoding.py", line 220, in GeocodeAddresses&lt;BR /&gt; raise e&lt;BR /&gt;ExecuteError: ERROR 000010: Geocode addresses failed.&lt;BR /&gt;Failed to execute (GeocodeAddresses).&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/394675_Geocoding_issues.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jan 2018 18:58:23 GMT</pubDate>
    <dc:creator>Anish_Adhikari</dc:creator>
    <dc:date>2018-01-24T18:58:23Z</dc:date>
    <item>
      <title>How to Batch Geocode with ArcGIS Online using Python?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-batch-geocode-with-arcgis-online-using/m-p/106644#M8235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to figure out how to batch geocode a table of addresses using the ArcGIS Online World Geocoder using Python.&amp;nbsp; I have an enterprise account. I don't get any errors when I run my script. The result is a point FeatureClass with all the input records but they all have a null shape so nothing displays on a map.&amp;nbsp; Here is my python code:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;import arcpy&lt;/SPAN&gt;
&lt;SPAN style="font-family: 'courier new', courier;"&gt;from arcpy import env&lt;/SPAN&gt;

&lt;SPAN style="font-family: 'courier new', courier;"&gt;env.workspace = "C:/TestData/Geocode.gdb" &lt;/SPAN&gt;

&lt;SPAN style="font-family: 'courier new', courier;"&gt;try:&lt;/SPAN&gt;
&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN&gt;&amp;nbsp; arcpy.SignInToPortal_server("&amp;lt;my arcgis online enterprise userid&amp;gt;", "&amp;lt;my password&amp;gt;", "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.arcgis.com/&lt;/A&gt;&lt;SPAN&gt;")&lt;/SPAN&gt;&lt;/SPAN&gt;

&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; in_table = r"MYTABLE"&lt;/SPAN&gt;

&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; # ArcGIS Online Locator found in ArcCatalog&lt;/SPAN&gt;
&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; locator = r"Ready-To-Use Services/Geocoding/World.GeocodeServer"&lt;/SPAN&gt;

&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; out_table = r"GEOCODE_RESULTS"&lt;/SPAN&gt;

&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; fields = r"Address Address;City City;Region State;Postal Zip"&lt;/SPAN&gt;

&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; arcpy.GeocodeAddresses_geocoding(in_table, locator, fields, out_table, "STATIC")&lt;/SPAN&gt;
&lt;SPAN style="font-family: 'courier new', courier;"&gt;except Exception as e: &lt;/SPAN&gt;
&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; print e.message&lt;/SPAN&gt;
&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; arcpy.AddError(e.message)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:01:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-batch-geocode-with-arcgis-online-using/m-p/106644#M8235</guid>
      <dc:creator>TimothyJohnston</dc:creator>
      <dc:date>2021-12-12T16:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to Batch Geocode with ArcGIS Online using Python?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-batch-geocode-with-arcgis-online-using/m-p/106645#M8236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I discovered the answer on github.&amp;nbsp; Hopefully this will help someone else with the same question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://github.com/deelesh/batch-geocoding-python" rel="nofollow" target="_blank"&gt;https://github.com/deelesh/batch-geocoding-python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://proceedings.esri.com/library/userconf/devsummit13/papers/devsummit-183.pdf" rel="nofollow" target="_blank"&gt;http://proceedings.esri.com/library/userconf/devsummit13/papers/devsummit-183.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 21:47:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-batch-geocode-with-arcgis-online-using/m-p/106645#M8236</guid>
      <dc:creator>TimothyJohnston</dc:creator>
      <dc:date>2015-04-21T21:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Batch Geocode with ArcGIS Online using Python?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-batch-geocode-with-arcgis-online-using/m-p/106646#M8237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the github code and I am consistently getting errors with the last function which does the actual geocoding. I have tested and retested and it creates output geodatabase and Arcgis online connection fine(see screenshot). The only thing I have&amp;nbsp;added on the code part is adding my arcgis online credentials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the error I am getting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; Traceback (most recent call last):&lt;BR /&gt; File "C:\Python27\ArcGIS10.4\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript&lt;BR /&gt; exec codeObject in __main__.__dict__&lt;BR /&gt; File "C:\GIS_Data\geocode\BatchGeocoding.py", line 56, in &amp;lt;module&amp;gt;&lt;BR /&gt; output_feature_class)&lt;BR /&gt; File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\geocoding.py", line 220, in GeocodeAddresses&lt;BR /&gt; raise e&lt;BR /&gt;ExecuteError: ERROR 000010: Geocode addresses failed.&lt;BR /&gt;Failed to execute (GeocodeAddresses).&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/394675_Geocoding_issues.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 18:58:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-batch-geocode-with-arcgis-online-using/m-p/106646#M8237</guid>
      <dc:creator>Anish_Adhikari</dc:creator>
      <dc:date>2018-01-24T18:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to Batch Geocode with ArcGIS Online using Python?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-batch-geocode-with-arcgis-online-using/m-p/106647#M8238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try &lt;A href="http://pm.maps.arcgis.com/home/item.html?id=dc116a889c86465f9ead0be98d82c8bc"&gt;this tool &lt;/A&gt;in ArcGIS Pro, there is also the arcgis Python API you can use in a Jupyter notebook, for example &lt;A href="https://developers.arcgis.com/python/guide/batch-geocoding/"&gt;this example&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 19:19:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-batch-geocode-with-arcgis-online-using/m-p/106647#M8238</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2018-01-24T19:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Batch Geocode with ArcGIS Online using Python?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-batch-geocode-with-arcgis-online-using/m-p/106648#M8239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Bruce,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ended up creating a model in Arcmap and exported it as a Python script and it is working so far.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 19:35:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-batch-geocode-with-arcgis-online-using/m-p/106648#M8239</guid>
      <dc:creator>Anish_Adhikari</dc:creator>
      <dc:date>2018-01-24T19:35:07Z</dc:date>
    </item>
  </channel>
</rss>

