ERROR
Sometimes editing a branch versioned feature service returns the error:
"Objects in this class cannot be updated outside an edit session"
The following image shows this error in the Apply Event Behaviors tool.
Note: This does not solely occur on the Apply Event Behaviors tool, but in general when editing.
Only certain dataset types can be updated in an edit session, as described in 160250: Objects in this class cannot be updated outside an edit session, however this error can be caused when a user adds a feature class to an already registered dataset.
The following steps can be used when this is caused by adding a feature class to an already registered dataset:
It may be preferable to registered the datasets manually, instead of running the Register as Versioned geoprocessing tool.
Caution: The one consideration before unregistering a feature dataset/feature class as versioned, is to reconcile and post any edits to Default. Not doing this step can result in lost edits, see: Unregister As Versioned (Data Management)
Get help from ArcGIS experts
Download the Esri Support App