Error Class 3B: Invalid SAVEPOINT

Error Class 3B: Invalid SAVEPOINT
SQLSTATE Message Text
3B001.S Savepoint <savepointName> does not exist or is not active in the current transaction.
3B002.S The maximum number of savepoints has been reached.
3B501.S A SAVEPOINT with the passed name already exists in the current transaction.
3B502.S A RELEASE or ROLLBACK TO SAVEPOINT was specified, but the savepoint does not exist.