Fs 3487 errands assigned to inactive deleted agents

checked whether its active or inactive agents/areas.