When dastream is invalid, record error.