{"record":{"id":"f12ba550889a27e2","repo":"influxdata/influxdb","slug":"invalid-error-behavior-0","errorCode":null,"errorMessage":"invalid error behavior {0}","messagePattern":"invalid error behavior (.+?)","errorType":"validation","errorClass":"CatalogError","httpStatus":null,"severity":"error","filePath":"influxdb3_catalog/src/error.rs","lineNumber":276,"sourceCode":"    )]\n    ProcessingEngineTriggerNotFound {\n        database_name: String,\n        trigger_name: String,\n    },\n\n    #[error(\"failed to parse trigger from {}\", trigger_spec)]\n    ProcessingEngineTriggerSpecParseError { trigger_spec: String },\n\n    #[error(\"last cache size must be greater than 0\")]\n    InvalidLastCacheSize,\n\n    #[error(\"failed to parse trigger from {trigger_spec}{}\", .context.as_ref().map(|context| format!(\": {context}\")).unwrap_or_default())]\n    TriggerSpecificationParseError {\n        trigger_spec: String,\n        context: Option<String>,\n    },\n\n    #[error(\"invalid error behavior {0}\")]\n    InvalidErrorBehavior(String),\n\n    #[error(\"cannot parse token permission, {0}\")]\n    CannotParsePermissionForToken(String),\n\n    #[error(\"token name already exists, {0}\")]\n    TokenNameAlreadyExists(String),\n\n    #[error(\"token hash already exists\")]\n    TokenHashAlreadyExists,\n\n    #[error(\"missing admin token, cannot update\")]\n    MissingAdminTokenToUpdate,\n\n    #[error(\"cannot delete internal db\")]\n    CannotDeleteInternalDatabase,\n\n    #[error(\"cannot modify internal db\")]","sourceCodeStart":258,"sourceCodeEnd":294,"githubUrl":"https://github.com/influxdata/influxdb/blob/06200ef96ba82c5f6727e5038a83af8e722c6875/influxdb3_catalog/src/error.rs#L258-L294","documentation":"This error is thrown when an error-behavior value supplied for a processing engine trigger is not one of the recognized variants (e.g. `retry`, `log`, `panic`). The offending string is embedded in the message. The catalog validates the behavior string before persisting the trigger definition.","triggerScenarios":"Creating or updating a processing engine trigger with an `error_behavior` string that is not a recognized enum value (valid values are typically `retry`, `log`, `panic`).","commonSituations":"Typos in the error behavior when using `influxdb3 create trigger --error-behavior`; passing a behavior string from config or environment variables with wrong casing; version drift where a behavior name was renamed.","solutions":["Use one of the supported error behaviors exactly: `retry`, `log`, or `panic`","Check for typos and case (the parser is case-sensitive)","Omit the flag to use the default error behavior if unsure","Check the version's docs for the exact accepted values"],"exampleFix":"// before\nCreateTriggerBuilder::new().error_behavior(\"Retry\").build();\n// after\nCreateTriggerBuilder::new().error_behavior(\"retry\").build();","handlingStrategy":"validation","validationCode":"const VALID: [&str; 3] = [\"retry\", \"log\", \"panic\"];\nfn valid_error_behavior(b: &str) -> bool { VALID.contains(&b) }","typeGuard":null,"tryCatchPattern":"match result {\n    Err(CatalogError::InvalidErrorBehavior(b)) => eprintln!(\"unsupported error behavior: {b} — use retry|log|panic\"),\n    r => r,\n}","preventionTips":["Keep allowed behavior values in a shared constant list","Lowercase/trim behavior input from configs before submitting","Pin to documented enum values per server version"],"tags":["catalog","processing-engine","enum"],"backgroundTag":"invalid-enum-value","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"}