My InsertCursor works fine on the featureclass until I 'Create Attachments' to the feature class through ArcCatalog, then I get 'Objects in this class cannot be updated outside an edit session'.
This is clearly a problem since 'All updates or insertions to a table are done outside an edit session in ArcGIS' when using arcpy.InsertCursor.
I'm not trying to insert attachments, just features into the featureclass.
Is there a workaround?
This seems to be a very old thread but ran into this problem today. I was able to get around it by using an arcpy.da.InsertCursor rather than the non-da style. When you were having this issue were you using a non-da InsertCursor?
Thanks,
Brandon