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:
Full listing of the error message:
Thanks Dan. We have an organization account, and the ArcGIS Online World Geocoding Service shows up automatically. I tried replacing the locator address with "https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer " but still get the same error. The locator that I used in my code is same as the one that I get if I use a model builder and export the model to a python script. Thanks.
I would suggest using an ArcGIS Server Connection file in your python script to geocode using the ArcGIS World Geocoding Service, which is described in the following script.
@ShanaBrittHello, in this script they use arcpy.mapping.CreateGISServerConnectionFile(). This is apparently an Arcpy Mapping function used in ArcMap. I'm using Pro and the script errors on that function:
AttributeError: module 'arcpy' has no attribute 'mapping'
There's since been an idea posted about getting this to work in Pro. Just checking if there was any news on this. https://community.esri.com/t5/arcgis-pro-ideas/add-creategisserverconnectionfile-to-arcpy-for/idi-p/...
@JaredPilbeam2 I'm not aware of any movement on the idea for CreateGISServerConnection for arcpy in Pro. I did reach out to the team that would be considering this, so hopefully they will respond in that idea post.