Select to view content in your preferred language

Issues editing feature class with feature-linked annotation

2298
3
03-12-2013 06:35 AM
michaelkijewski
Deactivated User
I created a tool to update a feature class using a form that the user edits and submits. The tool had no issues making the submitted edits when there was no feature-linked annotation. Once I created feature-linked for the feature class I started getting "Objects in this class cannot be updated outside an edit session" or "The operation was attempted on an empty geometry". In my code I do use an edit session that worked before the annotation was create and I also checked if the geometry of the updated feature was empty which it is not. I've tried several different things with no luck. Need help please.
0 Kudos
3 Replies
AlexanderGray
Honored Contributor
You mention you are doing this in an edit session, are you also doing this in an edit operation?  It is also not clear if you use an update cursor with the update method or the store method on the feature.  Keep in mind that feature linked annotation use a relationship class so they behave differently than non-feature linked annotation.  What license level are you using?
0 Kudos
michaelkijewski
Deactivated User
I'm using an edit operation. I've tried both update and search cursors. I've tried checking out both a ArcEditor and ArcInfo license. The tools working up until I add the feature-linked annotation the error occur.
0 Kudos
AlexanderGray
Honored Contributor
I think you will need to post code if the forum is to go any further on this.
0 Kudos