|
POST
|
Hi @CodyPatterson this is what i get: i think the issue is with this line as it works in terms of selecting the features by their objectid and also the select by location part. Cur.updateRow(row) i'm running this in Desktop 10.2.1 on a versioned dataset. i'm very confident that it was working yesterday but today its being a pain... i've used similar update cursors and its worked but this time after the first feature it seems to loose connection with the database as the features disappear from the map and this pops up:
... View more
10-30-2024
09:54 AM
|
0
|
1
|
2598
|
|
POST
|
so this is to check if any annotation overlaps and if it does it rotates one by 90 degrees this just loops through the features and works fine with arcpy.da.UpdateCursor(fc, ["objectid", "FeatureID","Angle" ,"SHAPE@", "SHAPE@X", "SHAPE@Y","LEGACY_TABLE_NAME"],"objectid in (4007789,4007788,4007787,4007786,4007791,4007790)") as Cur:
for row in Cur:
# read in the data
print row[0]
SA_Filter = "OBJECTID = {0}".format(row[0])
try:
arcpy.management.SelectLayerByAttribute(fc, "NEW_SELECTION", SA_Filter)
annocount = arcpy.management.GetCount(fc)
print "tmp count: {0}".format(annocount[0])
if int(annocount[0]) == 1:
print "selected one anno"
arcpy.management.SelectLayerByLocation(fc, "INTERSECT", fc, "", "NEW_SELECTION")
tmpcount = arcpy.management.GetCount(fc)
print "tmp count: {0}".format(tmpcount[0])
if int(tmpcount[0]) >= 2 and int(tmpcount[0]) < 74:
print "more than 1"
row[2] = float(row[2]) + 90
except:
print "Error" but when i add in a simple update to a text field it fails with arcpy.da.UpdateCursor(fc, ["objectid", "FeatureID","Angle" ,"SHAPE@", "SHAPE@X", "SHAPE@Y","LEGACY_TABLE_NAME"],"objectid in (4007789,4007788,4007787,4007786,4007791,4007790)") as Cur:
for row in Cur:
# read in the data
print row[0]
SA_Filter = "OBJECTID = {0}".format(row[0])
try:
arcpy.management.SelectLayerByAttribute(fc, "NEW_SELECTION", SA_Filter)
annocount = arcpy.management.GetCount(fc)
print "tmp count: {0}".format(annocount[0])
if int(annocount[0]) == 1:
print "selected one anno"
arcpy.management.SelectLayerByLocation(fc, "INTERSECT", fc, "", "NEW_SELECTION")
tmpcount = arcpy.management.GetCount(fc)
print "tmp count: {0}".format(tmpcount[0])
if int(tmpcount[0]) >= 2 and int(tmpcount[0]) < 74:
print "more than 1"
row[2] = float(row[2]) + 90
row[6] = "updated"
Cur.updateRow(row)
except:
print "Error"
... View more
10-30-2024
08:20 AM
|
0
|
8
|
2633
|
|
POST
|
did you ever get this to work, i am having the same issue
... View more
10-25-2024
03:51 AM
|
0
|
0
|
1218
|
|
DOC
|
is there an option to maintain the globalid's i have a feature service with 9 related features so it uses the globalid & parentglobalid's to link them together thanks Stu
... View more
10-23-2024
01:49 AM
|
0
|
0
|
14497
|
|
POST
|
is there a way to upload the .geodatabase to AGOL and sync it from there, i need to maintain the globalid's thanks Stu
... View more
10-21-2024
03:55 AM
|
0
|
0
|
662
|
|
POST
|
i'm having an issue with the sync offline features in Pro it seems to have added all the features (160k) to the AGOL feature service but the dialog box is just sitting there, i've left it overnight and its not changed. is there a log file i can check to see what its doing? Stu
... View more
10-10-2024
12:08 AM
|
0
|
1
|
755
|
|
POST
|
one thing i have noticed if you have a field with a name more than 31 characters in length it wont work
... View more
09-17-2024
03:43 AM
|
0
|
0
|
952
|
|
POST
|
just re-added it in json using the assistant and it all works, no idea why it didnt work when adding the new point layer into the map the usual way
... View more
08-29-2024
02:11 AM
|
0
|
0
|
734
|
|
POST
|
this is a strange one, i have a map which has a feature service (published from survey123 connect) which is a two polygon features and 3 point features, the two polygon features related to each other and the three points relate to one of the polygon features originally the feature service only had two point features and everything worked fine, but then i republished the feature service (again from survey123 connect) creating the additional point feature. when i add the new point layer into the map i can see it fine and create new features in it but i can't create them from the parent polygon. original two point features show fine above and they all show in the forms editor. but i noticed that the sort by field is showing blank and not showing any of the fields for the feature class i've tested it on a fresh map and it all works showing all three, i've checked the json using the assistant and i can't see anything odd or different. any ideas before i re-create the map 😞
... View more
08-29-2024
12:38 AM
|
0
|
1
|
756
|
|
POST
|
@wendtr_pse did you managed to work it out, i'm getting the same Stu
... View more
08-23-2024
07:29 AM
|
0
|
0
|
6734
|
|
POST
|
@ALBJORGUI did you ever get this working, i'm having the same issues
... View more
08-23-2024
05:02 AM
|
0
|
1
|
3541
|
|
POST
|
just checked some the scheduled tasks and it seem like its not working {
"result": {
"messages": [
"Run id '598d...79b' of task id '6...ade' was skipped because a previous task run was still in an executing state."
]
}
}
... View more
08-22-2024
01:01 AM
|
0
|
0
|
843
|
|
POST
|
is anyone else having issues opening their AGOL Notebooks this morning? i've tried three different ones and all seem stuck on this:
... View more
08-22-2024
12:56 AM
|
0
|
2
|
848
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-16-2025 02:25 AM | |
| 1 | 09-08-2025 07:14 AM | |
| 8 | 07-17-2025 01:23 AM | |
| 3 | 07-04-2025 02:55 AM | |
| 1 | 06-27-2025 03:41 AM |
| Online Status |
Offline
|
| Date Last Visited |
4 weeks ago
|