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
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?
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.