|
POST
|
@Robert_LeClair This locator originated in ArcMap 10.8.1. It's based on a field from our county-wide Address Points layer. It's updated weekly.
... View more
4 hours ago
|
0
|
1
|
18
|
|
POST
|
Your suspicion was correct. I simply removed the field parameter and hardcoded what the Geocode File tool accepts and the tool ran without any error. def execute(self, parameters, messages):
"""The source code of the tool."""
import arcpy
import os
outfile = parameters[2].valueAsText
outloc = os.path.dirname(outfile)
outname = os.path.basename(outfile)
arcpy.geocoding.GeocodeFile(
in_table=parameters[0].valueAsText,
locator=parameters[1].valueAsText,
#Geocode File tool Address Field Mapping parameter
address_fields="'Single Line Input' ADDRESS VISIBLE NONE",
output_type="CSV",
output_location=outloc,
output_name=outname,
)
... View more
4 hours ago
|
0
|
0
|
11
|
|
POST
|
Thanks for the reply @Robert_LeClair , I can say that all of the locators but one can be added using that method. The one I have highlighted loads for five minutes, appears in the catalog for two seconds and then disappears. But, this locator does work as I've used it outside of Pro in a script. So, I'm not sure what the problem is.
... View more
7 hours ago
|
1
|
1
|
48
|
|
POST
|
Thanks @AlfredBaldenweck , 1.) Yes, I have only been testing CSVs. Added a filter anyway. 2.) I should've had this filled out completely to begin with. It's a lot clearer now. 3) Added a filter here too. Seems to be fine now. All in all those were good fixes. It's narrowed down to two errors tied to the GeocodeFile() function which have pretty unhelpful pages. Error 003346 and Error 002617 arcgisscripting.ExecuteError: ERROR 003346: Geocode File failed.
ERROR 002617: Batch Geocoding stopped with status esriJobFailed.
Failed to execute (GeocodeFile). Things I've looked into regarding the geocoding errors: 1. Our locators are hosted on Enterprise Portal v. 11.3 which allows batch geocoding up to 1000 rows. 2. I've tested with different CSVs, different addresses and different field value formats. 3. The locator coordinate system is set for NAD_83. 4. I've been trying different locators and the tool has not ran with any of them while every time it has produced at least one of the two errors above. Error 002618 was also produced once too.
... View more
7 hours ago
|
0
|
1
|
26
|
|
POST
|
Is BUG-000103046 really fixed? I'm in Pro v. 3.5.2 and I can not add a locator to a project from an Enterprise Portal using the Catalog. I can navigate to the locator I want but when I click it it never loads. The one time I got it to show up in Catalog it was broke.
... View more
8 hours ago
|
0
|
5
|
104
|
|
POST
|
Thanks @DanPatterson , I'm using a Python Toolbox because the end product not mentioned here requires it. Value table got me a step closer it appears. Now I'm able to get param1 Address Field to populate with fields from the input CSV. I also gave it an out file param. But, all the params still don't seem to be functioning as a whole. def getParameterInfo(self):
"""Define the tool parameters."""
# 1st param
param0 = arcpy.Parameter(
displayName="Your CSV",
name="your_csv",
datatype="DEFile",
parameterType='Required',
direction='Input'
)
param1 = arcpy.Parameter(
displayName='Address Field',
name='ADDRESS',
datatype='GPValueTable',
parameterType='Required',
direction='Input'
)
param1.parameterDependencies = [param0.name]
param1.columns = [['Field', 'Field']]
# 2nd param
param2 = arcpy.Parameter(
displayName="Geocoder",
name='geocoder',
datatype="DEAddressLocator",
parameterType='Required',
direction='Input'
)
# 3rd param
param3 = arcpy.Parameter(
displayName="Out File",
name='out_file',
datatype="DEFile",
parameterType='Required',
direction='Output',
)
params = [param0,param1,param2,param3]
return params
def execute(self, parameters, messages):
"""The source code of the tool."""
import arcpy
arcpy.geocoding.GeocodeFile(
in_table=parameters[0].valueAsText,
locator=parameters[2].valueAsText,
address_fields=parameters[1].valueAsText,
output_type=parameters[0].valueAsText,
# output_location=r"C:\Users\me\test",
# output_name="geocodedfile",
# country=None,
# location_type="ROUTING_LOCATION",
# category=None,
# output_fields="ALL"
)
... View more
Thursday
|
0
|
3
|
140
|
|
POST
|
I'm attempting to create a python toolbox script that geocodes a CSV. It will be my version of the Geocode Addresses tool. What do I need to do to get the Field parameter to accept the 'ADDRESS' field of my CSV? Right now, the 3rd param accepts a Field datatype. I didn't see a good option in parameter controls either. If i run this tool as is I receive errors. Two of the errors mention needing an output parameter, which I'll get to. I'm assuming Error 000800 is referring to the Field parameter, but beyond that I don't really know. Maybe it's in the script itself. class GeocodeFile:
def __init__(self):
"""Define the tool (tool name is the name of the class)."""
self.label = "Geocode File"
self.description = "Geocodes a local file and saves it back to the same directory."
self.params = arcpy.GetParameterInfo()
def getParameterInfo(self):
"""Define the tool parameters."""
# 1st param
param0 = arcpy.Parameter(
displayName="Your CSV",
name="your_csv",
datatype="DEFile",
parameterType='Required',
direction='Input'
)
# 2nd param
param1 = arcpy.Parameter(
displayName="Geocoder",
name='geocoder',
datatype="DEAddressLocator",
parameterType='Required',
direction='Input'
)
# 3rd param
param2 = arcpy.Parameter(
displayName="Field",
name='fields',
datatype="Field",
parameterType='Required',
direction='Input',
)
# param2.controlCLSID = '{172840BF-D385-4F83-80E8-2AC3B79EB0E0}'
# param2.value="ADDRESS"
params = [param0,param1,param2]
return params
def isLicensed(self):
"""Set whether the tool is licensed to execute."""
return True
def updateParameters(self, parameters):
"""Modify the values and properties of parameters before internal
validation is performed. This method is called whenever a parameter
has been changed."""
return
def updateMessages(self, parameters):
"""Modify the messages created by internal validation for each tool
parameter. This method is called after internal validation."""
return
def execute(self, parameters, messages):
"""The source code of the tool."""
import arcpy
arcpy.geocoding.GeocodeFile(
in_table=parameters[0].valueAsText,
locator=parameters[1].valueAsText,
address_fields=parameters[2].valueAsText,
output_type=parameters[0].valueAsText,
# output_location=r"C:\Users\test",
# output_name="geocodedfile",
# country=None,
# location_type="ROUTING_LOCATION",
# category=None,
# output_fields="ALL"
)
return
def postExecute(self, parameters):
"""This method takes place after outputs are processed and
added to the display."""
return
... View more
Wednesday
|
0
|
6
|
225
|
|
POST
|
Hi @xlt208 @PatricePineaultWSP @MarcHoogerwerf_EsriNL, Any update? Trying to get a script tool imported into ExB to upload a locally stored table (xlsx, csv) seems impossible. The Add Data Tool was the only thing that allowed what seems like such a simple task and that is currently suffering from a BUG that errors on a CSV with an 'Address' field.
... View more
|
0
|
0
|
179
|
|
POST
|
Thanks @DanPatterson , I did notice the different tiers of Notebooks when creating a new one albeit never bothered to try the Advanced one. So, i recreated the tool in an Advanced Notebook and I'm no longer getting the error.
... View more
2 weeks ago
|
0
|
0
|
119
|
|
POST
|
Where do I go to install modules to run in AGOL Notebooks? I've read you can import them by running in a cell, for ex: !pip install geopandas But, why isn't arcpy accessible?
... View more
2 weeks ago
|
0
|
2
|
170
|
|
POST
|
No info on script tool parameters to be found here: https://doc.arcgis.com/en/arcgis-online/get-started/get-started-with-notebooks.htm Generally speaking, how does a parameter work? Is it like a Pro script tool parameter? How do I fill it out? For example, for Pro you just put arcpy.GetParameterAsText(0) in place of the variable in the script. And then based on the 0 index you fill out the parameters for the tool. I have a short script I'd like to make into a tool to ultimately be used in ExB. It geocodes a CSV file. There should only be two variables concerning the user: the CSV in file and the CSV out file. Once you fill out the Add parameter pane and enter something in the Default value (?) box you can save. It then gives you the option to insert the variable. Not sure where to insert it? '''
csv file > df > gdf > shp
'''
import pandas as pd
import geopandas as gpd
# read csv file
f = r'C:\pathto\infile.csv'
file = pd.read_csv(f)
# convert to dataframe
df = pd.DataFrame(file)
# geocode
gdf = gpd.tools.geocode(df['ADDRESS'])
# extract lat long from geometry and put into dataframe
df['latitude'],df['longitude'],df['geometry'] = gdf.geometry.y, gdf.geometry.x, gdf.geometry
# generate GeometryArray of shapely Point geometries from x, y(, z) coordinates.
gdf = gpd.GeoDataFrame(df, geometry=gpd.points_from_xy(df.longitude, df.latitude), crs="EPSG:4326") #crs is optional
# write to shapefile
gdf.to_csv(r'C:\pathto\outfile.csv')
... View more
2 weeks ago
|
0
|
0
|
150
|
|
POST
|
Sorry to put you through that. Your first response worked. I swore I tried that.
... View more
2 weeks ago
|
1
|
1
|
213
|
|
POST
|
I can't seem to disable the popup on the search component for a feature layer. Here is a simple sample. To recreate my problem search "man". Click MANHATTAN under town. There's a popup on this feature I can't get rid of. I've been looking and trying all the relevant properties I can find for both the arcgis-search and arcgis-features to disable the popup. Nothing worked sofar. I've included popup-disabled in the arcgis-map component too. Is there a way to stop the popup in the code and not on the feature itself in AGOL? EDIT: I should add in my actual app I have other feature layers that I want popups enabled so I can't really disable them in the arcgis-map component.
... View more
2 weeks ago
|
0
|
4
|
339
|
|
POST
|
Thanks for that. I'm forced to find an alternative to the Add Data Tool in ExB. It has a BUG which stopped it from uploading a csv with a field labeled Address.
... View more
3 weeks ago
|
0
|
0
|
205
|
|
POST
|
Ok, thanks, useful info. It doesn't sound like this will work for what I'm trying to do. Ultimately, there will be non-GIS users uploading csv files in the ExB app from who knows what directories.
... View more
3 weeks ago
|
0
|
1
|
228
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 7 hours ago | |
| 1 | 2 weeks ago | |
| 1 | 07-24-2025 01:27 PM | |
| 1 | 11-13-2025 08:22 AM | |
| 1 | 11-12-2025 08:37 AM |
| Online Status |
Online
|
| Date Last Visited |
2 hours ago
|