return the error when item not found as well as setting an empty record