|
POST
|
click in the link in my post... Also, depending on what you are using, you will be presented the same Arcade edit window, which allows you, test, access global variables and functions.
... View more
04-07-2021
01:27 PM
|
0
|
1
|
6495
|
|
POST
|
In this post I provide an arcade attribute rule: is that what you are asking for?
... View more
04-07-2021
12:45 PM
|
0
|
0
|
2550
|
|
POST
|
Check out the logic page for arcade Also, you can use the Arcade Playground to do just that: play with Arcade. I played around with this statement there until I got it right... var field1 = 12
var field2 = 250
if (field1 == 12 && field2 < 300 && field2 > 200){
Console("yay")} The playground is the only place I know where the Console() function works. It's the same as the print() function in python.
... View more
04-07-2021
09:43 AM
|
0
|
3
|
6502
|
|
POST
|
ArcGIS Pro 2.4.1 is being used. BUG000127016... ArcGIS Pro 2.4.2 and fixed in ArcGIS Pro 2.6.x. Good detective work @Robert_LeClair
... View more
04-07-2021
09:10 AM
|
1
|
0
|
7107
|
|
POST
|
Perhaps you could use the 'Insert/Edit Code Sample' tool in the expanded tool bar and copy and past your code up to an including the line that fails. (choose python)
... View more
04-06-2021
03:05 PM
|
0
|
1
|
7117
|
|
POST
|
The parameters are what the create locator tool uses. If you go to your geoprocessing history you can grab the parameters and copy and paste them into a text file. I do that all the time so I can paste that text in a python script. See gif below. At sometime I thought I read about the same problem that I had or someone else had and posted it here. But I couldn't find anything. Sending a shout out to a couple of ESRI Geocoding SMEs: Shana or Brad, is there an issue with zone/no zone once you publish a locator? @ShanaBritt @BradNiemand
... View more
04-06-2021
02:48 PM
|
0
|
0
|
4810
|
|
POST
|
You make a list of all the fields you want to concatenate; then step through that list, and if a given field is empty or null, you do not concatenate that into the returned output.
... View more
04-06-2021
01:17 PM
|
1
|
0
|
3362
|
|
POST
|
here's an example of one that I use: // Specify the fields to concatenate
var values = [$feature.PreDir, $feature.StreetName, $feature.SufType, $feature.SufDir]
var combined_value = [];
// Loop through the field values and test if they are null or empty strings
// If they are not null or empty add them to an array
for (var i in values) {
var value = values[i];
if (IsEmpty(value)) continue;
combined_value[Count(combined_value)] = value
}
// Return the field values concatenated with a space between
return Concatenate(combined_value, " ");
... View more
04-06-2021
12:38 PM
|
2
|
1
|
3373
|
|
POST
|
Can you post the parameters from the tool history that show how it was set up? What type of locator is it: A single or multiple role. Did it work as expected before you published it?
... View more
04-05-2021
03:12 PM
|
0
|
1
|
4880
|
|
POST
|
Google that error and you'll come across this from ESRI. It looks like a fairly generic, non-specific error so I really don't know what the problem is. You may want to consult ESRI tech support.
... View more
04-05-2021
03:01 PM
|
1
|
1
|
1739
|
|
POST
|
Here's another vote for a data issue; I won't even go into my usual tirade of special characters in free text fields. You've already discovered one of the reasons I don't like them....
... View more
04-05-2021
12:22 PM
|
0
|
0
|
2301
|
|
POST
|
The only thing I can think of is perhaps make your edit calls outside of the try/except block: def calcNorthing():
edit.StartEditing(False,True)
edit.startOperation()
try:
do your thing
except:
trap the exception
edit.stopOperation()
edit.stopEditing(True) You could also check the edit status in main() to be sure if it's stopped or not before making the call to your function. Take a look at this too..
... View more
04-05-2021
07:21 AM
|
1
|
0
|
6038
|
|
POST
|
I'm not familiar with importing the cursors module. Instead I suggest you use the da.UpdateCursor. When editing an enterprise geodatabase (aka SDE), you need to start an edit session and close it it as well: ws = r'X:\some\path\to\your\enterprise.gdb'
edit = arcpy.da.Editor(ws)
edit.startEditing(False,False) #see the documentation on the parameters
edit.startOperation()
with arcpy.da.UpdateCursor(blah, blah bla) as cursor:
for row in cursor:
blah blah blah
cursor.updateRow(row)
edit.stopOperation()
edit.stopEditing(True) @DavidPike , using 'with' in any da cursor is traditionally the way to go; I've used that approach hundreds of times without an issue...
... View more
04-02-2021
02:55 PM
|
0
|
1
|
6854
|
|
POST
|
You said you are sure that no one else is on the db and yet you get a schema lock. Okay, then something else must be wrong. All I'm saying is it's easier to learn how to craft attribute rules without the overhead of an enterprise gdb getting in your way. Your call...
... View more
04-02-2021
01:15 PM
|
1
|
0
|
3317
|
|
POST
|
I suggest you copy your data to a file geodatabase and do your development there.
... View more
04-02-2021
12:49 PM
|
0
|
2
|
3322
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-11-2018 07:12 AM | |
| 1 | 05-17-2021 11:18 AM | |
| 1 | 06-29-2021 11:42 AM | |
| 1 | 07-05-2012 07:49 AM | |
| 1 | 09-03-2016 06:16 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-19-2026
11:56 AM
|