What does the exception property hold of the record that wasn’t deleted?
Are you sure that “classes_successor_of_classes” is a valid reference? What if you put a try/catch around it and output the exception to the log? Maybe that’ll bring up something usefull.
It was the relation. I’m sorry, thats a problem I should have solved myself.
In the context of the global method, the relation was unknown. It should be ‘record.relation’. The try and catch did show the error. I didn’t even think, an error could occur . And not be visible.