TOS-DATA-002Something needs doing firstThat record is still linked to something else
What happened
Either it refers to a record that no longer exists, or something else still refers to it and would be orphaned.
What to do
Remove or reassign whatever still points at it, then try again.
Quote this code when reporting the problem. It identifies the exact check that failed, which the wording alone does not.