|
POST
|
If you hop in the ArcGIS Online Assistant are you able to extract the dashboard's data? Worst case this'll make it easier to rebuild it.
... View more
01-07-2025
04:43 PM
|
0
|
0
|
1618
|
|
POST
|
Graphics are stored as a layer in the map they belong to. Well, specifically they're stored in a separate file inside the project file that the layer refers to, but that's just for performance reasons. If you right-click on the layer you can use Sharing -> Save As Layer File to keep a copy stashed away, hopefully that's enough to save what you need.
... View more
01-07-2025
02:58 PM
|
2
|
0
|
836
|
|
POST
|
Using an expression in the "relevant" column will show the question if the expression is true, and hide the question (and wipe any data inside) if false. The Form Expressions page is a good starting point on how to use this column. For most fields, the "string-length" function is a good test for empty questions, if the length is 0 then the field is empty, otherwise it isn't. Put two and two together and you should have a solution.
... View more
01-03-2025
10:38 AM
|
3
|
0
|
1237
|
|
POST
|
Gave replicating this a try and my 10.9.1 portal is giving a better error: import arcgis
import uuid
src=arcgis.GIS("https://myorg.maps.arcgis.com/", "username", "password")
dest = arcgis.GIS("pro")
my_gdb = src.content.search("TestData", item_type=arcgis.gis.ItemTypeEnum.FILE_GEODATABASE.value)[0]
download = my_gdb.download()
props = arcgis.gis.ItemProperties(title=my_gdb.title,
item_type=my_gdb.type,
description=my_gdb.description,
access_information=my_gdb.accessInformation,
license_info=my_gdb.licenseInfo)
new_folder = dest.content.folders.create(f"_testing_{my_gdb.title}_{str(uuid.uuid4())[:4]}")
new_gdb = new_folder.add(item_properties=props, file=download).result()
new_service = new_gdb.publish(overwrite=True) I get this error on line 14: Exception: Analyze Service error: Server tool execution failed : ERROR 000800: The value is not a member of SHAPEFILE | CSV | EXCEL. Failed. (Error Code: 0). If I drop the overwrite parameter then there are no issues. I assume overwriting isn't supported for File GDBs, guess you'll have to add a check for the existing items and delete them yourself.
... View more
01-02-2025
12:09 PM
|
1
|
0
|
1279
|
|
POST
|
Combining the previous answers should get you a working solution, but if you can field calculate using Python this will also work: last_shp = None
last_dt = None
def run(shp, dt):
global last_shp
global last_dt
retval = None
if last_shp is not None and last_dt is not None:
dist = last_shp.angleAndDistanceTo(shp, "GEODESIC")[1] / 1000 # Kilometres
diff = (dt - last_dt).seconds / 3600 # Hours
retval = dist / diff
last_shp = arcpy.PointGeometry(shp.firstPoint, shp.spatialReference)
last_dt = dt
return retval This assumes your data is pre-sorted but it should run faster than an Arcade equivalent due to the massive reduction in database hits. This assumes your data is stored in Web Mercator or another CRS that's meters based, you'll have to convert the CRS units to your desired ones as needed (e.g. multiply by 0.0001893936 if your data is in a US State Plane and you want MPH).
... View more
01-02-2025
09:23 AM
|
0
|
0
|
1804
|
|
POST
|
If your derived output is being created by the tool, you can set the value by doing this at the end of your execute method: parameters[5].value = Patches Note that you might need to adjust the parameter's data type, you picked "GPLayer" but you probably want "GPFeatureLayer" or "DEFeatureClass".
... View more
12-20-2024
02:46 PM
|
0
|
0
|
2188
|
|
IDEA
|
Pro uses Conda instead of pip/pypi for package handling and I doubt this will change in the near future. I think the Conda version of what you're doing is called a "private channel", the official docs might help here. This has the added bonus of letting you grab a package and all its dependencies from pypi and hosting it, avoiding the usual issues with outdated packages.
... View more
12-19-2024
09:10 AM
|
0
|
0
|
1070
|
|
POST
|
Attribute rules do not perform any updates if you return with no value, so if you throw this at the top: if (!IsEmpty($feature.FullStreetName)) {
return // Do not replace existing data
} Then the rest of your code can run below. As an added bonus, you've guaranteed "FullStreetName" is an empty value which can simplify your logic a bit.
... View more
12-19-2024
09:04 AM
|
1
|
1
|
1014
|
|
POST
|
You're also using the assignment operator "=" when you should be using the equality operator "==" in a bunch of places, that'll usually lead to bugs if it also isn't causing a syntax error.
... View more
12-12-2024
03:55 PM
|
0
|
1
|
1675
|
|
POST
|
Line 16 uses "or" instead of "||", that might be leading to the error message.
... View more
12-12-2024
03:42 PM
|
0
|
2
|
1679
|
|
POST
|
To expand on this, if you have access to attribute rules you can use that as well. You'll want to run some tests to see if the cost of calculating the value on feature insert/update is less than just calculating it through arcade.
... View more
12-04-2024
09:08 AM
|
0
|
1
|
1252
|
|
POST
|
Trying to override React's layout system with the useEffect hook is a very bad idea, React has no idea you're moving the widget around the DOM so it'll constantly try to snap it back to its stored position. It seems like you're trying to pet the dog backwards here, if you create a custom widget controller that has position overrides you'll get something that works for any widget and allows your widget to be used outside of a controller. If you absolutely must do this through the widget itself, try looking into the useRef hook to capture the appropriate chunk of the DOM, then override any events that can reposition the widget.
... View more
12-04-2024
08:45 AM
|
0
|
1
|
1553
|
|
IDEA
|
Breaking arcpy backwards compatibility to fix ill-defined logic issues is at the bottom of ESRI's priority list. You'd be better off posting the actual problem you're trying to solve in one of the communities, chances are there's a fix for whatever the root issue is.
... View more
12-02-2024
02:44 PM
|
0
|
0
|
4012
|
|
POST
|
You can check this section of the Survey123 docs for more info. Note that layer queries are flaky at best (and unusable at worst) if your users are working offline, if you need offline support then you'll have to regularly update a hosted CSV file that you link to the survey form.
... View more
11-21-2024
10:16 AM
|
0
|
0
|
980
|
|
IDEA
|
Normally this is our workflow, but in this case we do want users to make geometry edits from time to time. The issue is the vertex editor being active by default in all cases, when we'd prefer an "opt-in" workflow for some maps where these edits are infrequent.
... View more
11-14-2024
08:44 AM
|
0
|
0
|
3480
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-24-2023 11:47 AM | |
| 2 | 04-09-2026 11:36 AM | |
| 1 | 09-08-2023 10:07 AM | |
| 3 | 03-26-2026 08:11 AM | |
| 2 | 03-12-2026 01:41 PM |
| Online Status |
Offline
|
| Date Last Visited |
Friday
|