Timeline for arcpy.da.InsertCursor - Objects cannot be updated outside edit session in ArcMap10.8
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 19, 2021 at 4:26 | comment | added | GeorgeC | I have tried but it still didn't allow me to insert rows into Turn_Restriction | |
Dec 18, 2021 at 23:56 | comment | added | jbalk |
try setting the workspace as the gdb instead of the feature set within the gdb. D:\Projects\navigation_Net.gdb
|
|
Dec 18, 2021 at 7:11 | comment | added | GeorgeC | I have also tried the solution in gis.stackexchange.com/a/158627/2891 | |
Dec 18, 2021 at 5:45 | history | edited | GeorgeC | CC BY-SA 4.0 |
added 715 characters in body
|
Dec 18, 2021 at 5:24 | comment | added | GeorgeC |
Thanks - I didn't find this example before. The issue also seems to be with using a FC within the FD. I have workspace = arcpy.env.workspace,fc edit = arcpy.da.Editor(workspace) edit.startEditing(False,True) edit.startOperation() - I get RuntimeError: cannot open workspace This is where workspace is = D:\Projects\navigation_Net.gdb\aus_navigation_NetFD Turn_Restrictions as per the screen grab in the question. So there are 2 related issues - opening the fc (which worked earlier as I got the error saying it needs to be editable) and now this error saying it can't open the workspace.
|
|
Dec 18, 2021 at 3:44 | history | edited | Vince | CC BY-SA 4.0 |
non-deprecated doc link
|
Dec 18, 2021 at 1:26 | history | answered | jbalk | CC BY-SA 4.0 |