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?
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.