|
POST
|
Ah, looks like I was beaten to the punch! As Josh pointed out, names with more than 1 space in them will lead to issues. My code dumps everything but the last token in the first name slot, with some tweaking you can get everything but the first token in the last name slot.
... View more
11-01-2023
08:33 AM
|
1
|
1
|
8755
|
|
POST
|
The output is an array of strings. Here's how to safely extract that data assuming arbitrary input: var tokens = Split("Your Data", " ");
var count = Count(tokens);
var first = null;
var last = null;
if (count == 1) {
first = tokens[0];
} else if (count == 2) {
first = tokens[0];
last = tokens[1];
} else if (count > 2) {
var first_array = [];
for (var i in tokens) {
if (i == count - 1) {
break;
}
Push(first_array, tokens[i]);
}
first = Concatenate(first_array, " ");
last = tokens[-1];
}
// Do what you need with first and last
... View more
11-01-2023
08:29 AM
|
1
|
2
|
8762
|
|
POST
|
If pyscripter doesn't pick up on an import (pretty common with complex libraries like arcgis) you'll have to tweak the hidden imports for your build. Start with something high up in the import path (e.g. "arcgis.gis") and then get more specific until it works.
... View more
10-31-2023
04:21 PM
|
1
|
0
|
2406
|
|
POST
|
The traditional archiving method? Nope, you're out of luck with the data table alone, you might be able to correlate the GDB_TO_DATE with other database or server logs but no guarantees. Branch Versioned tables have their own schema that includes the GDB_DELETED BY field which should list the culprit, if you can work out a migration plan I'd recommend switching.
... View more
10-30-2023
11:42 AM
|
0
|
0
|
1826
|
|
POST
|
SQL Expression parameters require a "Dependency" on the parameter you want to filter so it can populate the dialog, set that up and your parameter should work
... View more
10-30-2023
08:49 AM
|
0
|
1
|
1103
|
|
POST
|
If you have access to these Vector Tile options, give them a try. You'll get a reasonably performant Vector Tile layer along with a service that supports popups.
... View more
10-30-2023
08:40 AM
|
0
|
0
|
1554
|
|
POST
|
GIS is primarily concerned with the locations of object relative to a fixed reference. Or "the earth" to be specific. As such, the grid options are all pinned to the origin of your map's coordinate system, in the units of said system. That said, an option to center the grid relative to the start of a sketch seems like a handy function, hit up the Ideas area and it might get implemented down the road.
... View more
10-27-2023
01:01 PM
|
0
|
2
|
7154
|
|
POST
|
Officially, there's no way to change a MapService without going through the usual publishing routes. Unofficially, if you can get your script to access your ArcGIS Server's directory folder, you can navigate through the "arcgissystem\arcgisinput" tree to find the definition for your service. Buried somewhere in each service folder is the mapx and/or msd files used to render each service, as well as the service-level metadata files. If you edit every relevant files' minScale and maxScale properties then you should be good! Or you'll corrupt the service. Oh, don't forget mapx and msd files have no public interface so nothing's stopping your process from breaking after an errant update.
... View more
10-27-2023
08:30 AM
|
1
|
0
|
1532
|
|
POST
|
Oh wow, I had no idea ESRI was uploading the arcpy package to Anaconda, this makes things much easier. Thank you!
... View more
10-27-2023
08:09 AM
|
0
|
0
|
6187
|
|
POST
|
parent_key = "GlobalID"
child_key = "ParentID"
parent_fields = [parent_key, "fields", "to", "copy"]
child_fields = [child_key, "into", "the", "child"]
# Start an edit session if needed
with arcpy.da.UpdateCursor("parent_table", parent_fields) as update, arcpy.da.InsertCursor("child_table", child_fields) as insert:
for row in update:
insert.insertRow(row)
update.updateRow([row[0]] + [None] * (len(row) - 1))
# Close the edit session if needed Untested, but this should simultaneously create related records with the relevant fields while nulling out the old data to avoid confusion.
... View more
10-26-2023
04:53 PM
|
0
|
0
|
3289
|
|
POST
|
Is there a list of which Python version (e.g. 3.7, 3.9 etc.) is included with each version of Pro? My team has had to keep an old version of Pro around to maintain version compatibility with our Enterprise Python environment and a table like this would've saved a few hours of trial and error installing different versions. This table already exists for Enterprise so I'm not sure why I can't find the same resource for Pro.
... View more
10-26-2023
04:42 PM
|
0
|
5
|
6299
|
|
POST
|
I'm not sure where this ms level noise is coming from (especially with strptime) but this StackOverflow answer looks like a valid solution when combined with a good old Field Calculation run.
... View more
10-26-2023
04:35 PM
|
0
|
0
|
4842
|
|
POST
|
Here's a (untested) Field Calculator code block: def reclass(value):
lookup = {
"Coniferous": "Tree",
"Deciduous": "Tree",
"Igneous": "Rock"
}
return lookup.get(value, value) You write something like "reclass(!my_field!)" and it'll map the inputs to the outputs as defined in the "lookup" dictionary, but leave them unchanged if it's not in the list. Alternatively, you can load the old and new values into a table, join the tables on the common key field, then field calculate over the data. This'll let you maintain a lookup table as standard ArcGIS data instead of Python code if that works better.
... View more
10-26-2023
08:39 AM
|
1
|
1
|
1906
|
|
IDEA
|
When Power Automate is connected to Survey 123 using this method for Enterprise the only surveys available are those owned by the account embedded in the workflow. I propose expanding this to any survey shared with the embedded account so they can run workflows for surveys other organization members own. Our team needs to grant access to an external user solely for working with existing surveys, which is impossible to control if the embedded user also owns the survey. Expanding what the workflow can access without changing the user's scope would fix this issue.
... View more
10-24-2023
01:26 PM
|
2
|
0
|
871
|
|
POST
|
To keep things simple: we can't give the Power Automate users the ability to alter the surveys in any way, their only ability should be to pull completed surveys through the webhook. Unless there's a way to get that working I'll have to take this to the Idea Zone. Thanks for the clarification.
... View more
10-24-2023
10:01 AM
|
0
|
0
|
1270
|
| 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 |
yesterday
|