POST
|
Just realized this is a duplicate of this thread: https://community.esri.com/t5/arcgis-online-questions/arcade-generate-new-unique-id-for-new-record-but/td-p/1234258
... View more
03-22-2024
10:24 AM
|
0
|
0
|
76
|
POST
|
This issue was occurring in ArcGIS Online using Firefox. I just checked this again and it is working as it should. So perhaps it was an issue with an older Firefox version.
... View more
03-22-2024
10:05 AM
|
0
|
0
|
73
|
POST
|
I have arcade set up in a smart form to auto-generate the next unique ID when a new feature is created. When updating an existing feature, the script should use the existing unique ID. This works great in Field Maps and when the arcade script is tested. However, when editing through Experience Builder, the arcade script always generates the next unique ID and replaces the existing unique ID. Arcade Script: Arcade Test (the next unique ID based on my features would be PSPT-00089. PSPT-00071 already exists, and the arcade script is working correctly) Map Viewer pop-up (this point shows that unique ID is already set to PSPT-00049) Experience Builder edit pop-up after selecting the same point as above (PSPT-00049 shows up briefly and then is overwritten with PSPT-00089)
... View more
03-21-2024
06:34 AM
|
0
|
1
|
173
|
POST
|
Just looked up that bug (#BUG-000149669) and the status is "Under Consideration". I don't know how this isn't a higher priority for Esri. The bug literally breaks the database on download and recreating the relationship classes isn't a viable workaround when I have 140 relationships in my GDB. My workflow involves periodic exporting of the FGDB, adding new feature classes or tables and new relationship classes, and then overwriting the existing hosted feature layer. I realize these new layers can be added using the REST API and "Add to Definition", but this workflow would be a much easier/safer option for us.
... View more
03-21-2024
06:12 AM
|
2
|
0
|
231
|
POST
|
I have three FeatureSets: a grid (red lines below), planned treatments (based on the grid, green areas below), and completed treatments (not based on the grid, black lines below). I need to determine total acreage for three categories: Planned but not completed (6 of the grid cells below), Planned and completed (6 of the grid cells below), and Completed but not planned (3 of the grid cells below). This would be really easy using Intersects() to create a new FeatureSet() for all grid cells that intersect with completed treatments, but I only want to count a cell as completed if it overlaps with a completed treatment by 25%. I know I can use Intersects() to get all grid cells with completed treatments and then use Intersections() to check the overlap percentage, but is there a faster more optimized way of doing this? This method works okay for the example pictured below (not many grid cells), but my actual dataset has 116,000 grid cells and many planned/completed treatments. The above method times out at around 36 minutes in. I've streamlined the process by performing a Union() on all of the planned treatments and another Union() for all of the completed treatments, but it still takes too long for staff to use. Does anyone know of a faster way to go about this? My current thought is to use the ArcGIS API for Python and host it on PythonAnywhere. I'm still learning Arcade and would love to know if there's an optimized solution that would keep this live in a Dashboard.
... View more
01-28-2024
02:24 PM
|
0
|
0
|
253
|
POST
|
Just posting this in case others have the same issue. Issue: When trying to "Predict to Raster" using the Forest-based and Boosted Classification And Regression tool, as soon as the message for "Cell Size" is printed, the tool ends as "Completed" without creating the model or predicting to a raster. Settings: Model Type = Forest-based Input Training Features = Polygon Treat Variable as Categorical= Checked Only using explanatory training rasters Convert Polygons to Raster Resolution for Training = checked Polygon and rasters are all in the same projection Match Explanatory Rasters are all matched correctly Comments: Everything works as intended if "Train Only" is selected. After switching to "Predict to Raster" the tool fails as mentioned above. If I uncheck "Convert Polygons to Raster Resolution for Training", the tool will predict to raster as expected. While using "Train Only", I can convert my training polygons to points using the "Output Trained Features" setting. If I use these points as the "Input Training Features", the tool will predict to raster without any issues (however, it should be noted that for some reason out-of-bag errors are worse when using these points vs the original polygons, which seems odd if the "Convert Polygons to Raster Resolution for Training" setting works as described). Tool Settings Tool Messages Note: I get the above warnings even when the tool runs successfully.
... View more
12-27-2023
08:36 AM
|
0
|
0
|
348
|
POST
|
I'm definitely interested in this as well. There's already "AllowAdds". It doesn't seem like it would be difficult to include "AllowDeletes".
... View more
08-07-2023
04:17 AM
|
0
|
0
|
183
|
IDEA
|
@jcarlson Thanks for the tips here. It's nice that there's kind of a work around for this, but still annoying seeing as how varying symbology by zoom level is so common in other map services like MapBox.
... View more
05-10-2023
04:45 AM
|
0
|
0
|
933
|
POST
|
Replying to this in case others are searching for help and find this thread. It seems like Experience Builder REALLY doesn't like it if you change anything about the hosted feature layer schema for a layer used within the experience. After creating an experience we decided we didn't need one of the fields. I deleted it in AGO, went to the map and made sure it didn't show up in the pop-up/form, went to the edit widget in Experience Builder to make sure it wasn't listed there, but I was no longer able to create any new features with the edit widget tool. When I tried, I got a similar error as OP's that stated, "Edits could not be saved: Invalid column name 'Other'". I even checked the hosted feature layers definition file in AGO and the deleted field was no where to be found, yet Experience Builder was remembering it somehow. Lesson here: Determine your needed fields prior to adding a layer to Experience Builder. You can't change anything once you've added it.
... View more
04-28-2023
11:19 AM
|
1
|
0
|
1734
|
POST
|
In Experience Builder, when I use the Edit widget to create a new feature I must also fill in misc attributes about that feature. When I open dropdown menus, the dropdown opens above the field, and this pushes the top options out of the viewable window. In the below image, you can see that the top months (January and February) are obscured, and both of the scroll bars are at the top most point. I can get around this by starting to type in the obscured month or by expanding the Edit window until the vertical scroll bar disappears. This makes the dropdown open beneath the field, but these options aren't the preferred solutions to this bug.
... View more
04-27-2023
05:05 AM
|
3
|
3
|
357
|
POST
|
An example of some of the suggestions here. You can update the map scale by a small amount, so that it's not noticeable on screen but causes the map view to refresh. # Set the active project to the current aprx open (used in the Refresh() function to refresh the map view).
aprx = arcpy.mp.ArcGISProject('current')
# Function to refresh the map view.
def refresh():
# Refresh the map view by changing the map scale.
# The map view changes by such a small amount that it isn't
# noticeable, but still causes the map view to refresh.
mv = aprx.activeView
mv.camera.scale = mv.camera.scale + 0.1
... View more
07-05-2022
05:35 AM
|
2
|
1
|
2853
|
POST
|
In college I knew it as AGOL and when I started my job I switched over to AGO. Using the google search "agol" site:esri.com -site:community.esri.com it looks like the only reference to "AGOL" is in partner documentation and user comments. If we switch up the google search to "ago" site:esri.com -site:community.esri.com we find Esri's ArcGIS Online Assistant whose URL is https://ago-assistant.esri.com/. This does appear to be the only place that Esri actually used an abbreviation for it though. Going back to google, if we search "agol" site:esri.com we get 20,400 results and "ago" site:esri.com gets 24,500. So while pretty evenly split, it looks AGO might be slightly preferred.
... View more
05-09-2022
04:05 AM
|
4
|
0
|
1685
|
IDEA
|
@NaicongLi, what's the current status of this? Is it still being actively discussed? The default settings for "Save As" should always have been a single aprx file.
... View more
04-03-2022
06:00 AM
|
0
|
0
|
726
|
POST
|
I have the arcade pop-up expression written (see below). The pop-up displays correctly in ArcGIS Online and in Field Maps. However, Collector returns a dash ("-"). I've reviewed a number of tutorials and Esri Community posts, but none seem to apply here. Expression 1 //Access 'Hydrant Inspections' table as a FeaureSet
var inspections = (FeatureSetByName($datastore,"Inspections"))
//Filter related features by using a common attribute
var UID = $feature.UID
var filterStatement = 'UID = @UID'
//Related features as a variable
var relatedData = Filter(inspections, filterStatement)
//Sort related features from oldest to newest
var relatedDataSorted = OrderBy(relatedData, 'InspectionDate ASC')
//Build the pop-up string by iterating through all related features
var popupString = ''
for (var f in relatedDataSorted){
popupString +=
Text(f.InspectionDate, 'MMMM D, Y')
+ TextFormatting.NewLine +
'Box Condition: ' +
f.Condition + TextFormatting.NewLine +
'Notes: ' +
f.Notes + TextFormatting.NewLine +
TextFormatting.NewLine
}
return popupString I've also tried simpler expressions and get the same result. The bellow expression works in AGO and Field Maps, but not in Collector. Expression 2 //Related features as a variable
var relatedData = FeatureSetByName($map,"Inspections")
var popupString = ''
//Add all inspection dates to a pop-up string
for (var row in relatedData){
if ($feature.UID == row.UID) {
popupString += Text(row.InspectionDate, 'MMMM D, Y')
}
}
return popupString EDIT Some additional info. The above was all edited in the new Map Viewer. I tried authoring a new map in Map Viewer Classic and copied both of the above expressions. Expression 1 works in AGO and Field Maps, but not in Collector. However, Expression 2 only works in Field Maps. AGO returns a blank (" ") and Collector returns a dash ("-").
... View more
03-22-2022
08:45 AM
|
1
|
1
|
635
|
POST
|
I realize this thread is old and marked as solved, but it should be noted that the original question does point out two completely separate workflows with different tool inputs. Workflow one is Create Signatures and then run Maximum Likelihood Classification. Workflow two is Train Maximum Likelihood Classification and then Classify Raster. Workflow two is the basic classification which gives the user little control over the output, while workflow one allows the user to set a reject fraction and account for a priori knowledge. Workflow one also allows the user to output a confidence raster. As is noted in the approved solution, the classification method is identical, it is only the output which is different.
... View more
01-19-2022
06:13 AM
|
0
|
0
|
761
|
Title | Kudos | Posted |
---|---|---|
2 | 03-21-2024 06:12 AM | |
1 | 04-28-2023 11:19 AM | |
3 | 04-27-2023 05:05 AM | |
2 | 07-05-2022 05:35 AM | |
1 | 03-22-2022 08:45 AM |
Online Status |
Offline
|
Date Last Visited |
03-22-2024
06:26 PM
|