This could only happen from invalid data, such setting a left id to one that already exists (because left_id will be unique). Not from the rule existing already.