I am trying to use an update cursor to update the geometry of several thousand features that were collected in ArcCollector (basically snapping lines to points based on a field in the line layers attributes). The features that were collected in ArcCollector have attachments and attachment relation tables, and it appears that this is causing some trouble when I run my arcpy script.
I get the following error when I try to open an UpdateCursor in Arcpy on the layer:
Traceback (most recent call last):
File "<string>", line 6, in <module>
RuntimeError: Objects in this class cannot be updated outside an edit session [Pipes]
I'm working in ArcGIS Pro.
If I remove the attachments and attachment relations table from the geodatabase, I can run the script no problem. An alternative would be to run the script on just the geometry, then replace the geometry layer in the geodatabase that contains the attachment table and attachments. But this doesn't actually seem to work when I try to go about it in the catalog view.
I'm guessing this has something to do with the geodatabase version, or something along those lines. Any insight would be greatly appreciated. Thank you,