I've run up against a wall trying to get an edit session to work on a version. These are the scenarios Ive gone through in the code and their error mesages:
1 No edit session: 'Objects in this class cannot be updated outside an edit session'
2 Setting up an edit session not as a context manager: 'workspace already in transaction mode'
3 Setting up an edit session as a context manager: 'The requested operation is invalid on a closed state'
So I have to start an edit session but when I start one it says I am already in transaction mode. What?