InsertCursor not working on featureclass with Attachments

Discussion created by hjelmsmark on Oct 23, 2011
Latest reply on Dec 26, 2014 by bkeinath
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?