|
POST
|
Certainly run the test in Pro GUI or get and print print the actual error. This could be many different things from switching versions.
... View more
05-28-2025
12:44 PM
|
0
|
0
|
3364
|
|
POST
|
I think what might actually be happening is that the if is always evaluating to True, probably because the feature set relies on a template/schema (I think). The Try Except you've got as a workaround isn't recommended and a bit hacky. I'd do an AddMessage to see the value of your parameter(0) each time, and if it is always True, you could just switch the logic to evaluate against the Lat Long params instead.
... View more
05-28-2025
12:40 PM
|
1
|
0
|
2839
|
|
POST
|
The first things I'd check would be: 1. A Spatial index created/existing on both layers to the highest level possible first. 2. Attribute indexes on your date fields you're matching against. 3. Data location - ensure this is done locally, if you're doing this over VPN, sde, database, OneDrive, Fileshare etc etc. this is the problem. Process it locally. 4. Parallel Processing Factor (Environment setting)—ArcGIS Pro | Documentation Check if you can use it with your tool, and use it to the highest level if so.
... View more
05-27-2025
02:53 PM
|
0
|
3
|
848
|
|
POST
|
The code looks fine at first glance. I think the validation might be throwing things off and setting param 1 and 2 existence to True. If it were me - I'd just set all the params to optional and use the messaging function in the validation. I'd also throw in some AddMessage() s to figure out what might be going on if still not working as expected. class ToolValidator:
# Class to add custom behavior and properties to the tool and tool parameters.
def __init__(self):
# Set self.params for use in other validation methods.
self.params = arcpy.GetParameterInfo()
def initializeParameters(self):
# Customize parameter properties. This method gets called when the
# tool is opened.
return
def updateParameters(self):
# Modify the values and properties of parameters before internal
# validation is performed.
def updateMessages(self):
# Modify the messages created by internal validation for each tool
# parameter. This method is called after internal validation.
return
feature_set_input = self.params[0].value
x_coord_input = self.params[1].value
y_coord_input = self.params[2].value
if not feature_set_input and (x_coord_input is not None or y_coord_input is not None) :
self.params[0].setErrorMessage("Warning - enter interactive feature or X and Y, not both. Interactive feature input will take precedence if both supplied")
self.params[1].setErrorMessage("Warning - enter interactive feature or X and Y, not both. Interactive feature input will take precedence if both supplied")
self.params[2].setErrorMessage("Warning - enter interactive feature or X and Y, not both. Interactive feature input will take precedence if both supplied")
# def isLicensed(self):
# # Set whether the tool is licensed to execute.
# return True
# def postExecute(self):
# # This method takes place after outputs are processed and
# # added to the display.
# return
... View more
05-27-2025
02:43 PM
|
1
|
2
|
2908
|
|
POST
|
I've experienced similar strangeness. From what I can remember, the workaround (for whatever reason) was to use the Portal root admin account and/or login to the portal from the server or server url i.e. hostname:port\arcgis\home
... View more
05-26-2025
11:35 AM
|
1
|
0
|
1412
|
|
POST
|
It's been a while since I've needing to publish any GP tasks but I do remember it being very trial-and-error when it comes to validation. My thinking/wisdom (right or wrong) essentially ended up as: I'm guessing any validation is really limited and static, probably as it's only enacted when the tool is first opened, rather than dynamically after each argument input. If the validation has to actually do/retrieve something from somewhere outside of the validator code - it's not going to work.
... View more
05-23-2025
11:43 AM
|
0
|
0
|
1372
|
|
POST
|
All excellent points from Ryan. I'll just add that if you're using traditional versioning - ensure you're compressing the DB at least weekly. If there's specific layers which are slow, check the spatial indexes also.
... View more
05-22-2025
12:27 PM
|
1
|
0
|
1092
|
|
POST
|
What's the data source/location and data type for these features? Any topologies? Can you share any screenshots or more info? There could be licensing issues e.g. some examples could be that a Basic Pro license user couldn't edit SDE database data, or a Geometric Network wouldn't be editable in Pro in any situation.
... View more
05-21-2025
12:51 PM
|
1
|
0
|
3816
|
|
POST
|
I'd open up developer tools in the browser and check the nework traffic for any errors, 404/401 etc. I would ask the colleague to open up the data view of one of the hosted feature layers and see what might be occurring. It's possible that you may have something such as 'editors can only see their own features' applied in the feature layer settings, or from Survey123 if it's survey submitted data. Also you could be using the parent layer farther than _form or _results etc. and it's showing the data for you, but not others.
... View more
05-20-2025
01:00 PM
|
0
|
0
|
1270
|
|
POST
|
I think the logic is sound, and the Esri recommended approach. So I think manual post-processing is not necessary - and onoly mfixing the original survey geopoint calculation is required. Solved: Create GeoPoint From Lat & Long Numeric Field Coll... - Esri Community has an example XLS geopoint calculation formatting which may be of use, and I'd recommend sharing your Survey XLS and any screenshots/code you currently have so that someone can assist you.
... View more
05-19-2025
11:44 AM
|
0
|
1
|
1782
|
|
POST
|
Yes, I think it is the recommended best and easiest solution in my mind so kudos to Nick. But I'd say the last part is unfortunately factually incorrect. For posterity: Selection layers—ArcGIS Pro | Documentation Caution: The selection layer is only useful as a temporary working dataset, for example, as an input into a geoprocessing model. It lists the FeatureIDs (FIDs) or ObjectIDs (OIDs) of the selected features. These are invalidated when the original data source is updated or changed.
... View more
05-17-2025
12:04 PM
|
1
|
1
|
6045
|
|
POST
|
If practical, I'd try a clean installation. How To: Perform a Clean Uninstall and Reinstall of ArcGIS Pro I'd also recommending sharing a screengrab/info your current version and licensing info from the Pro license page. I'd gather other details such as OS versions, specs, .NET version etc. as this will be helpful if an Esri support case is raised. Screenshots or GIFs of the issue would also be useful to help others understand what may be causing this.
... View more
05-17-2025
11:55 AM
|
1
|
2
|
1356
|
|
POST
|
I still think we're stuck with the Geometry functions being limited by "any of these functions must match the spatial reference of the profile's context, which controls the execution of the expression." Geometry functions | ArcGIS Arcade | Esri Developer There is an Idea here - Arcade projectAs Geometry Function I think you'd need to roll your own with something like the Helmert transformation - Wikipedia or GenAI some formula for your coordinate system.
... View more
05-15-2025
12:42 PM
|
0
|
1
|
1452
|
|
POST
|
I'd probably just run Closest facility for each Origin and set of Destinations How To: Create Routes from One Location to Multiple Locations or vice Versa in ArcGIS Pro Or you might be able to set I field to only connect Destinations (Incidents) to specific Origins (Facilities). I can't recall if that's the case however. You might also simply be able to do the same with the basic Route Solver.
... View more
05-15-2025
10:47 AM
|
0
|
0
|
1853
|
|
POST
|
I've put a simple code example in. NB it's arcpy.GetParameter(0) rather than arcpy.GetParameterAsText(0) Within the code, just treat it as if it were a feature class point layer thereafter.
... View more
05-14-2025
01:34 PM
|
1
|
1
|
1921
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-13-2025 01:08 PM | |
| 1 | 09-25-2025 03:19 PM | |
| 1 | 09-24-2025 02:35 PM | |
| 1 | 09-17-2025 02:42 PM | |
| 1 | 09-10-2025 02:35 PM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|