{"record":{"id":"fc6572e3e2d53027","repo":"run-llama/llama_index","slug":"no-existing-name-found-at-persist-path-sk","errorCode":null,"errorMessage":"No existing {__name__} found at {persist_path}, skipping load.","messagePattern":"No existing (.+?) found at (.+?), skipping load\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"llama-index-core/llama_index/core/vector_stores/simple.py","lineNumber":338,"sourceCode":"        fs: Optional[fsspec.AbstractFileSystem] = None,\n    ) -> None:\n        \"\"\"Persist the SimpleVectorStore to a directory.\"\"\"\n        fs = fs or self._fs\n        dirpath = os.path.dirname(persist_path)\n        if not fs.exists(dirpath):\n            fs.makedirs(dirpath)\n\n        with fs.open(persist_path, \"w\", encoding=\"utf-8\") as f:\n            json.dump(self.data.to_dict(), f)\n\n    @classmethod\n    def from_persist_path(\n        cls, persist_path: str, fs: Optional[fsspec.AbstractFileSystem] = None\n    ) -> \"SimpleVectorStore\":\n        \"\"\"Create a SimpleKVStore from a persist directory.\"\"\"\n        fs = fs or fsspec.filesystem(\"file\")\n        if not fs.exists(persist_path):\n            raise ValueError(\n                f\"No existing {__name__} found at {persist_path}, skipping load.\"\n            )\n\n        logger.debug(f\"Loading {__name__} from {persist_path}.\")\n        with fs.open(persist_path, \"rb\") as f:\n            data_dict = json.load(f)\n            data = SimpleVectorStoreData.from_dict(data_dict)\n        return cls(data)\n\n    @classmethod\n    def from_dict(cls, data: Dict[str, Any], **kwargs: Any) -> \"SimpleVectorStore\":\n        save_data = SimpleVectorStoreData.from_dict(data)\n        return cls(save_data)\n\n    def to_dict(self, **kwargs: Any) -> Dict[str, Any]:\n        return self.data.to_dict()\n","sourceCodeStart":320,"sourceCodeEnd":355,"githubUrl":"https://github.com/run-llama/llama_index/blob/afd0fef371831f9bda13e5af7167cf4e981278ab/llama-index-core/llama_index/core/vector_stores/simple.py#L320-L355","documentation":"Raised by `SimpleVectorStore.from_persist_path()` when the given persist file does not exist on the provided (or default local) filesystem. The classmethod checks `fs.exists(persist_path)` before opening, and the error message interpolates the module-level `__name__` plus the path. Note the message says 'skipping load' but the code actually raises — the intent is that the caller must create/persist the store first or fix the path.","triggerScenarios":"Calling `SimpleVectorStore.from_persist_path(\"./storage/vector_store.json\")` (or a custom path/fs) when the file was never created — e.g. running a query-only script before the ingestion script, wrong working directory, typo in the path, or a remote fsspec filesystem where the file lives elsewhere.","commonSituations":"Splitting ingestion and querying into separate processes where the query job runs first; relative paths resolved against a different CWD (note the default is `os.path.join(DEFAULT_PERSIST_DIR, ...)`); CI or fresh containers that mount storage incorrectly; passing an fsspec URL/path mismatch for S3/GCS filesystems.","solutions":["Run the ingestion/persist step first so the file exists (`index.storage_context.persist()` or `store.persist(path)`).","Verify the path: use an absolute path or `os.path.abspath`, and confirm the file exists with `os.path.exists` / `fs.exists`.","If a missing store is expected (fresh deploy), branch on existence and build a new store instead of loading.","For remote filesystems, double-check the fsspec path format (e.g. bucket/key spelled per the fs's convention)."],"exampleFix":"# before\nstore = SimpleVectorStore.from_persist_path(\"storage/vector_store.json\")  # raises on first run\n\n# after\nimport os\nif os.path.exists(p):\n    store = SimpleVectorStore.from_persist_path(p)\nelse:\n    store = SimpleVectorStore()  # build fresh; persist after ingestion","handlingStrategy":"try-catch","validationCode":"import os\n\ndef load_store_or_none(path: str):\n    if not os.path.exists(path):\n        return None\n    return SimpleVectorStore.from_persist_path(path)","typeGuard":null,"tryCatchPattern":"try:\n    store = SimpleVectorStore.from_persist_path(p)\nexcept ValueError as e:\n    if \"No existing\" in str(e):\n        store = SimpleVectorStore()  # first run: build fresh\n    else:\n        raise","preventionTips":["Check fs.exists(persist_path) before loading, especially with relative paths.","Use absolute paths derived from a single config value.","Order pipelines so ingestion/persist always runs before query-only jobs."],"tags":["persistence","file-not-found","vector-store","python"],"backgroundTag":null,"analyzedSha":"afd0fef371831f9bda13e5af7167cf4e981278ab","analyzedAt":"2026-08-15T05:42:58.429Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}