{"record":{"id":"1e7d81ed6c776830","repo":"influxdata/influxdb","slug":"resource-with-name-name-not-found","errorCode":null,"errorMessage":"{resource} with name '{name}' not found","messagePattern":"(.+?) with name '(.+?)' not found","errorType":"exception","errorClass":"RepositoryError","httpStatus":null,"severity":"error","filePath":"influxdb3_catalog/src/repository.rs","lineNumber":35,"sourceCode":"///\n/// Carries the resource label (from [`CatalogResource::CATEGORY`]) and the\n/// offending `id` so the error message is self-identifying without requiring\n/// callers to add context.\n#[derive(thiserror::Error)]\npub enum RepositoryError<I: CatalogId> {\n    #[error(\"{resource} with id {id} already exists\")]\n    AlreadyExists { resource: &'static str, id: I },\n\n    #[error(\"{resource} with name '{name}' already exists\")]\n    AlreadyExistsByName {\n        resource: &'static str,\n        name: String,\n    },\n\n    #[error(\"{resource} with id {id} not found\")]\n    NotFound { resource: &'static str, id: I },\n\n    #[error(\"{resource} with name '{name}' not found\")]\n    NotFoundByName {\n        resource: &'static str,\n        name: String,\n    },\n}\n\n// Manual `Debug` impl so the enum does not impose a `Debug` bound on `I` ---\n// every concrete [`CatalogId`] in this crate derives `Debug`, but the trait\n// itself does not require it.\nimpl<I: CatalogId> std::fmt::Debug for RepositoryError<I> {\n    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {\n        match self {\n            Self::AlreadyExists { resource, id } => f\n                .debug_struct(\"AlreadyExists\")\n                .field(\"resource\", resource)\n                .field(\"id\", &format_args!(\"{id}\"))\n                .finish(),\n            Self::AlreadyExistsByName { resource, name } => f","sourceCodeStart":17,"sourceCodeEnd":53,"githubUrl":"https://github.com/influxdata/influxdb/blob/06200ef96ba82c5f6727e5038a83af8e722c6875/influxdb3_catalog/src/repository.rs#L17-L53","documentation":"RepositoryError::NotFound is the sentinel variant returned by catalog repository lookups when no resource of the given kind (table, database, etc., labeled via CatalogResource::CATEGORY) exists under the supplied name. It is a generic not-found guard over catalog metadata, so it fires on any name-based fetch that misses, including lookups after a resource was renamed or deleted. The failing input is the `name` field carried in the variant.","triggerScenarios":"Thrown at influxdb3_catalog/src/repository.rs:35 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check for typos or case differences in the name","Create the resource first if it genuinely does not exist","Confirm the name was not renamed or deleted by another writer"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"06200ef96ba82c5f6727e5038a83af8e722c6875","analyzedAt":"2026-09-19T12:55:30.003Z","contentChangedAt":"2026-09-19T12:55:30.003Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}