error departmenttype