If no schema defined, return error.