When using Transaction commands Start, End and Cancel always include the connection or source used in the Start in the associated End and Cancel
TransactionStart(MyConnection)
Hadd(Customer) if ErrorOccurred() then TransactionCancel(MyConnection) ELSE TransactionEnd(MyConnection) END
|