The user transaction that has been started in user defined routine, trigger or aggregate "%1!s!" is not ended upon exiting ...

The user transaction that has been started in user defined routine, trigger or aggregate "%1!s!" is not ended upon exiting from it. This is not allowed and the transaction will be rolled back. Change application logic to enforce strict transaction nesting.