|
POST
|
@Robert_LeClair You aren't kidding; that's pretty clunky. Seems like such a simple setting like 'Use Field Alias' should be there somewhere, but I haven't found it. You can do that with a table...
... View more
04-09-2021
08:12 AM
|
0
|
1
|
5446
|
|
POST
|
@KatieGodding - I don't see anything that jumps out as a problem with your code as posted. (But you knew that already...) Just as test, can you copy your data to a file geodatabase, make the appropriate adjustments to your code and try it there? I'm not an Oracle guy so I'm just trying the eliminate or identify the database as the root issue. I notice you are using an input() and it's not complete in you posted code, but I suspect that's just a copy and paste error. But can you comment that out and hard-code the three different options one at a time? Just one other thing that I see is the optional overlap type: what if you give it the actual 'INTERSECT' key word and see if that makes a difference? Admittedly, I'm grasping at straws here, but these are the things I would do to trouble shoot.
... View more
04-09-2021
07:22 AM
|
0
|
2
|
7094
|
|
POST
|
(fc, ['OBJECTID_1', week_a, hours_a, week_b, hours_b], "week_a LIKE '%Planned%'") Then it must be the reference to week_a in your selection statement that's bombing it. (I didn't notice that). If you are using python 3.x I suggest using an f string like this: (fc, ['OBJECTID_1', week_a, hours_a, week_b, hours_b], f'{week_a} LIKE "%Planned%"') of if you are using python 2.x you'll need to use the format() method: (fc, ['OBJECTID_1', week_a, hours_a, week_b, hours_b], '{} LIKE "%Planned%"'.format(week_a) (Of course these are untested, but I think that'll get you going...)
... View more
04-08-2021
03:58 PM
|
1
|
0
|
5004
|
|
POST
|
def weekly_update(week_a, hours_a, week_b, hours_b):
with arcpy.da.UpdateCursor (fc, ['OBJECTID_1', 'week_a','hours_a', 'week_b','hours_b'] Try removing the quotes around your parameter-variable names. When you enclose them like that the cursor is looking for a field of those names instead of the value of the variables.
... View more
04-08-2021
03:25 PM
|
3
|
1
|
5016
|
|
POST
|
Hmm. I just upgraded from 2.7.1 to 2.7.2 and grabbed a feature layer from my agol account; it all works for me. What I meant was if the feature you are editing is the source data for a published feature layer, like an enterprise gdb feature class that you published to a portal (including agol)
... View more
04-08-2021
02:21 PM
|
0
|
0
|
4613
|
|
POST
|
@JayantaPoddar brings up a good point: is this feature published anywhere? You'd need to shut down the service it is associated with if so...
... View more
04-08-2021
02:11 PM
|
0
|
3
|
4630
|
|
POST
|
What if you put an r in front of that statement like this: r"https://blah/blah.blah/blah/blah.png" I get it to work with or without the r which is basically short for 'raw' text so any escaped characters are taken literally: see this article for a more detailed explanation.
... View more
04-08-2021
01:51 PM
|
0
|
1
|
4641
|
|
POST
|
Just goes to show what I know about using models...
... View more
04-08-2021
08:21 AM
|
0
|
0
|
2844
|
|
POST
|
Can't you just run the model as a scheduled task without python calling it? I don't do models, just python so I don't know why it would clobber your model output.
... View more
04-08-2021
07:29 AM
|
0
|
2
|
2855
|
|
POST
|
Did you do the model to python conversion? Sometimes that will goof on you.. Perhaps you could post your code using the Insert/Edit Code Sample button after expanding the tool bar above.
... View more
04-08-2021
07:13 AM
|
0
|
0
|
2858
|
|
POST
|
I don't have the luxury of having the man behind the curtain so as a rule I don't do live demos, especially in ZoomLand....
... View more
04-08-2021
07:04 AM
|
0
|
0
|
2191
|
|
POST
|
Well now it’s working now so I’ll have to wait till it stops working to show you. Another colleague was getting the same behavior but yet for another it worked fine. Naturally it worked great in the session demos today so I was stoked to give it a try.
... View more
04-07-2021
03:55 PM
|
1
|
1
|
2247
|
|
POST
|
I've been attending the developers summit this week, and sitting in Arcade sessions when I can. I'm messing around with the Map Viewer Beta which as I understand it, will no longer be beta next week. The label/Arcade Editior makes it pretty easy to create a label, but it's a little weird at the same time. In the list of globals, some of the field names are in brackets and quotes and yet others are not: So when I select them, my expression looks like this: And it's flakey: it tests okay, but sometimes I get labels and sometimes not. Has this bun been in the oven long enough to come out of beta?
... View more
04-07-2021
03:17 PM
|
0
|
5
|
2255
|
|
POST
|
I've been attending the developers summit yesterday and today, and have learned a ton of Arcade tips and tricks...
... View more
04-07-2021
01:41 PM
|
1
|
0
|
6490
|
| 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
|