Search in switch.location replaced by switch.switchbay.building.name The error was introduced when the switchbays and buildings were added, probably a miss ... If only we had tests ...