Measurements with magnetic error