{"record":{"id":"7e4292482a81b96f","repo":"mem0ai/mem0","slug":"collection-self-collection-name-not-found","errorCode":null,"errorMessage":"Collection {self.collection_name} not found","messagePattern":"Collection (.+?) not found","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"mem0/vector_stores/oracledb.py","lineNumber":551,"sourceCode":"            table_name,\n            (SELECT COUNT(*) FROM {self.collection_name}) AS row_count,\n            (SELECT\n                ROUND(SUM(bytes) / 1024 / 1024, 2) || ' MB'\n            FROM user_segments\n            WHERE segment_name = :table_name\n            AND segment_type = 'TABLE'\n            ) AS total_size\n        FROM all_tables\n        WHERE table_name = :table_name\n        AND owner = NVL(:owner, USER)\n        \"\"\"\n\n        with self._get_cursor() as cursor:\n            cursor.execute(sql, table_name=table_name, owner=owner)\n            result = cursor.fetchone()\n\n        if result is None:\n            raise ValueError(f\"Collection {self.collection_name} not found\")\n\n        return {\"name\": result[0], \"count\": result[1], \"size\": result[2]}\n\n    def _split_collection_name(self) -> tuple[Optional[str], str]:\n        \"\"\"Split the quoted collection name into its optional owner and table parts.\"\"\"\n        segments = re.findall(r'\"([^\"]+)\"', self.collection_name)\n        if len(segments) > 1:\n            return segments[-2], segments[-1]\n        return None, segments[-1]\n\n    def list(self, filters: Optional[Dict[str, Any]] = None, top_k: Optional[int] = 100) -> List[List[OutputData]]:\n        \"\"\"\n        List all vectors in a collection.\n\n        Args:\n            filters (Dict, optional): Filters to apply to the list.\n            top_k (int, optional): Number of vectors to return. Defaults to 100.\n","sourceCodeStart":533,"sourceCodeEnd":569,"githubUrl":"https://github.com/mem0ai/mem0/blob/001c235229be8795e3834520467bd0d661ed8f34/mem0/vector_stores/oracledb.py#L533-L569","documentation":"Error \"Collection {self.collection_name} not found\" thrown in mem0ai/mem0.","triggerScenarios":"Thrown at mem0/vector_stores/oracledb.py:551 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Create the collection first or verify the collection_name matches an existing table."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"001c235229be8795e3834520467bd0d661ed8f34","analyzedAt":"2026-08-15T01:55:42.685Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}