I am receiving this error message when running the code below

'The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed...