raise recordnotfound if id is blank