There is a relationship between Locations and Departments when you use them both. If using them both you have to associate each Department with a location, otherwise you will see this error.
Navigate to Settings --> Locations, and edit a location. You will now see a list of the departments you created. You'll need to associate each department with a location.