{"record":{"id":"5f855c94bfab3bdf","repo":"nautechsystems/nautilus_trader","slug":"cannot-start-strategy-strategy-id-not-found","errorCode":null,"errorMessage":"Cannot start strategy, {strategy_id} not found","messagePattern":"Cannot start strategy, (.+?) not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/system/src/trader.rs","lineNumber":1336,"sourceCode":"            anyhow::bail!(\"Cannot remove actor, {actor_id} not found\");\n        }\n\n        // Stop if running, then dispose\n        let _ = stop_component(&actor_id.inner());\n        self.retire_actor(*actor_id)?;\n\n        log::info!(\"Removed actor {actor_id} from trader {}\", self.trader_id);\n        Ok(())\n    }\n\n    /// Starts the strategy with the given `strategy_id`.\n    ///\n    /// # Errors\n    ///\n    /// Returns an error if the strategy is not registered or cannot be started.\n    pub fn start_strategy(&self, strategy_id: &StrategyId) -> anyhow::Result<()> {\n        if !self.strategy_ids.contains(strategy_id) {\n            anyhow::bail!(\"Cannot start strategy, {strategy_id} not found\");\n        }\n        start_component(&strategy_id.inner())\n    }\n\n    /// Stops the strategy with the given `strategy_id`.\n    ///\n    /// Respects the `manage_stop` behavior - if the strategy's stop function\n    /// returns `false`, the component stop is deferred until market exit completes.\n    ///\n    /// # Errors\n    ///\n    /// Returns an error if the strategy is not registered or cannot be stopped.\n    pub fn stop_strategy(&mut self, strategy_id: &StrategyId) -> anyhow::Result<()> {\n        if !self.strategy_ids.contains(strategy_id) {\n            anyhow::bail!(\"Cannot stop strategy, {strategy_id} not found\");\n        }\n\n        let should_proceed = self","sourceCodeStart":1318,"sourceCodeEnd":1354,"githubUrl":"https://github.com/nautechsystems/nautilus_trader/blob/18893faf8b356be3320add8de2f861b0b647cf06/crates/system/src/trader.rs#L1318-L1354","documentation":"start_strategy was called with a StrategyId that is not in the trader's registered strategy set; the strategy was never added (or was already removed), so there is no component to start and the call fails fast.","triggerScenarios":"Thrown at crates/system/src/trader.rs:1336 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add the strategy to the trader before starting it","Check the strategy ID spelling against the registered strategies"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"18893faf8b356be3320add8de2f861b0b647cf06","analyzedAt":"2026-09-08T20:49:34.690Z","contentChangedAt":"2026-09-08T20:49:34.690Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}