Cause
This error occurs if your application code attempts to end transient transaction state for a database that is not in transient transaction state.
Action
Change your application code so that it does not attempt to end a transient transaction state for a database that is not in transient transaction state. For details, see the