error in record detect