I’m not sure what I’m doing wrong but I’m trying to use a Python script to append to a layer with attachments to an unversioned sde. I originally got errors saying that had to be during an edit session. So I added this code to start an edit session.
edit = arcpy.da.Editor(workspace)
arcpy.Append_management(srcData, destDataSDE, "NO_TEST")
But now I’m getting contradictory errors on the same attempt to run the script.
Objects in this class cannot be updated outside an edit session [<feature class>]
This operation is not allowed while editing [sde.DEFAULT]
It "cannot be updated outside an edit session" and the "operation is not allowed while editing"? I don’t understand.
If anyone has any ideas of what I might be doing wrong, I would appreciate it.