{"record":{"id":"4385800c72efa52c","repo":"influxdata/influxdb","slug":"database-not-found-0","errorCode":null,"errorMessage":"database not found: {0}","messagePattern":"database not found: (.+?)","errorType":"exception","errorClass":"ProcessingEngineError","httpStatus":null,"severity":"error","filePath":"influxdb3_processing_engine/src/manager.rs","lineNumber":9,"sourceCode":"use crate::environment::PluginEnvironmentError;\nuse influxdb3_catalog::CatalogError;\nuse influxdb3_id::{DbId, TriggerId};\nuse std::fmt::Debug;\nuse thiserror::Error;\n\n#[derive(Debug, Error)]\npub enum ProcessingEngineError {\n    #[error(\"database not found: {0}\")]\n    DatabaseNotFound(String),\n\n    #[error(\"catalog update error: {0}\")]\n    CatalogUpdateError(#[from] CatalogError),\n\n    #[error(\"write buffer error: {0}\")]\n    WriteBufferError(#[from] influxdb3_write::write_buffer::Error),\n\n    #[error(\"wal error: {0}\")]\n    WalError(#[from] influxdb3_wal::Error),\n\n    #[error(\"plugin error: {0}\")]\n    PluginError(#[from] crate::plugins::PluginError),\n\n    #[error(\"processing engine trigger {trigger_id} not found in database {db_id}\")]\n    TriggerNotFound { db_id: DbId, trigger_id: TriggerId },\n\n    #[error(\"request trigger not found\")]","sourceCodeStart":1,"sourceCodeEnd":27,"githubUrl":"https://github.com/influxdata/influxdb/blob/06200ef96ba82c5f6727e5038a83af8e722c6875/influxdb3_processing_engine/src/manager.rs#L1-L27","documentation":"ProcessingEngineError::DatabaseNotFound, a thiserror variant formatted as `database not found: {0}`. Raised when a processing-engine operation (e.g. creating/updating a trigger) references a database by name that does not exist in the catalog. It signals the caller supplied an unknown database name.","triggerScenarios":"Creating or managing triggers/plugins against a database name that is not present in the catalog; passing a deleted or misspelled database name to ProcessingEngineManager APIs.","commonSituations":"Typo in db name in the trigger-creation API call; database dropped before removing its triggers; environment mismatch (staging name used against prod server).","solutions":["Create the database first (`influxdb3 create database <name>`) or correct the name.","List existing databases (`SHOW DATABASES` / API) and use an exact match.","Remove or update stale triggers referencing the deleted database.","Check for trailing whitespace/URL-encoding issues in the database name parameter."],"exampleFix":"// before\nPOST /api/v3/config/processing_engine/trigger {\"db\": \"metircs\", ...}\n// after\nPOST /api/v3/config/processing_engine/trigger {\"db\": \"metrics\", ...}","handlingStrategy":"validation","validationCode":"const dbs = await fetch('/api/v3/engine/databases').then(r => r.json());\nif (!dbs.includes(dbName)) throw new Error(`Database ${dbName} does not exist`);","typeGuard":null,"tryCatchPattern":"try {\n  await createTrigger({ db: dbName, ... });\n} catch (e) {\n  if (String(e).startsWith('database not found')) {\n    await createDatabase(dbName);\n    await createTrigger({ db: dbName, ... });\n  } else { throw e; }\n}","preventionTips":["Create the database before configuring triggers on it.","Copy database names from SHOW DATABASES output instead of typing them.","Clean up triggers when dropping a database."],"tags":["processing-engine","database","not-found"],"backgroundTag":"database-query-failed","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"}