{"record":{"id":"0a91c105bfefa4b1","repo":"influxdata/influxdb","slug":"no-org-id-found","errorCode":null,"errorMessage":"No org_id found","messagePattern":"No org_id found","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"core/client_util/src/namespace_translation.rs","lineNumber":28,"sourceCode":"    InvalidNamespace { namespace: String, reason: String },\n}\n\nimpl Error {\n    fn new(namespace: impl Into<String>, reason: impl Into<String>) -> Self {\n        Self::InvalidNamespace {\n            namespace: namespace.into(),\n            reason: reason.into(),\n        }\n    }\n}\n\n/// Splits up the namespace name into org_id and bucket_id\npub fn split_namespace(namespace: &str) -> Result<(&str, &str), Error> {\n    let mut iter = namespace.split('_');\n    let org_id = iter.next().ok_or_else(|| Error::new(namespace, \"empty\"))?;\n\n    if org_id.is_empty() {\n        return Err(Error::new(namespace, \"No org_id found\"));\n    }\n\n    let bucket_id = iter\n        .next()\n        .ok_or_else(|| Error::new(namespace, \"Could not find '_'\"))?;\n\n    if bucket_id.is_empty() {\n        return Err(Error::new(namespace, \"No bucket_id found\"));\n    }\n\n    if iter.next().is_some() {\n        return Err(Error::new(namespace, \"More than one '_'\"));\n    }\n\n    Ok((org_id, bucket_id))\n}\n\n#[cfg(test)]","sourceCodeStart":10,"sourceCodeEnd":46,"githubUrl":"https://github.com/influxdata/influxdb/blob/06200ef96ba82c5f6727e5038a83af8e722c6875/core/client_util/src/namespace_translation.rs#L10-L46","documentation":"PluginError::InvalidCronSyntax wraps cron::error::Error and is raised when the cron expression supplied for a scheduled trigger cannot be parsed by the cron crate. The payload contains the parser's message. Validation happens when the trigger is created/enabled, so a bad expression prevents the trigger from being installed.","triggerScenarios":"Running `influxdb3 trigger create --trigger-spec cron:<expr>` (or the SQL/API equivalent) with a malformed expression: wrong field count, invalid characters, out-of-range values, or expressions using syntax the cron crate doesn't support (e.g. @hourly shortcuts or seconds-field mismatches).","commonSituations":"Copying a 5-field Unix cron expression where 6/7-field (with seconds) is expected or vice versa; using @daily/@hourly aliases unsupported by the parser; interval strings like */5 with stray spaces.","solutions":["Validate the cron expression with a parser compatible with the `cron` crate (6 or 7 fields including seconds, e.g. '0 0 * * * *').","Replace shortcuts like @hourly with explicit expressions ('0 0 * * * *').","Count the fields: the crate expects seconds, minutes, hours, day-of-month, month, day-of-week (and optional year).","Test the expression with `cron parse` or a quick Rust/Python check using the same crate semantics before creating the trigger."],"exampleFix":"// before\ninfluxdb3 trigger create --trigger-spec cron:@daily my_trig ...   # unsupported alias\n// after\ninfluxdb3 trigger create --trigger-spec 'cron:0 0 0 * * *' my_trig ...","handlingStrategy":"validation","validationCode":"# validate with the same cron crate semantics (6-field, seconds first)\necho '0 0 0 * * *' | cronexpr --check || echo \"invalid cron syntax\"","typeGuard":"fn valid_cron(expr: &str) -> bool { cron::Schedule::from_str(expr).is_ok() }","tryCatchPattern":"match result {\n    Err(PluginError::InvalidCronSyntax(e)) => error!(\"bad cron expr: {e}; use 6-field form like '0 0 * * * *'\"),\n    Ok(v) => v,\n}","preventionTips":["Use 6-field (seconds-based) expressions compatible with the cron crate.","Avoid @daily/@hourly aliases; write explicit schedules.","Validate expressions in CI before deploying triggers.","Watch out for conversions from 5-field Unix crontab strings."],"tags":["plugin","cron","schedule","syntax"],"backgroundTag":"invalid-argument-format","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"}