160250: Objects in this class cannot be updated outside an edit session.
Description
The following dataset types can only be updated in an edit session:
Feature classes participating in a topology
Feature classes participating in a geometric network
Feature classes participating in a network dataset
Versioned datasets in enterprise geodatabases
Some object and feature classes with class extensions
Solution
If the error is encountered in ArcGIS Pro, use the Editor tab to enable editing on the dataset, and rerun the tool.
If the error is encountered in a Python script, use the Editor class to open an edit session before running the tool.