Verify the department code is still active:
1. In configuration, tables, select the department table
2. Double click on the department
3. Make the select to make the department active and select OK