Error while deleting a Legal Entity

While deleting a Legal Entity I am coming across the below error and it is not allowing me to delete the Legal Entity…

Stack trace: Call to TTSCOMMIT without first calling TTSBEGIN.

Stack trace

(S)\Data Dictionary\Tables\DirPartyTable\Methods\Delete - line 14
(S)\Data Dictionary\Tables\DirOrganizationBase\Methods\Delete - line 17
(S)\Data Dictionary\Tables\CompanyInfo\Methods\Delete - line 31
(C)\Forms\OMLegalEntity\Methods\task - line 7
(C)\Classes\SysSetupFormRun\task - line 20