edit session arcgis enterprise sdk

526
1
Jump to solution
12-18-2021 08:23 AM
pspada_WT
New Contributor III

Hi, 

I've build a SOE that receive some object ID and delete that rows. It has work until I enable the branch versioning. Now I receive this error:

"objects in this class cannot be updated outside an edit session"

I think I have to activate the edit session before taking the cursor but I have no idea how to do it.

Pls someone can help me?

pspada_WT_0-1639844566344.png

 

0 Kudos
1 Solution

Accepted Solutions
pspada_WT
New Contributor III

Hi,

I've found the solution. I had to put the feature classes in a feature dataset and then from the FeatureClass oject(fl) , take the feature dataset (fd), take the worksapce and apply the StartEditing method

pspada_WT_0-1640027476516.png

 

View solution in original post

0 Kudos
1 Reply
pspada_WT
New Contributor III

Hi,

I've found the solution. I had to put the feature classes in a feature dataset and then from the FeatureClass oject(fl) , take the feature dataset (fd), take the worksapce and apply the StartEditing method

pspada_WT_0-1640027476516.png

 

0 Kudos