{"record":{"id":"01fcdb265fea1aec","repo":"nautechsystems/nautilus_trader","slug":"cannot-start-actor-actor-id-not-found","errorCode":null,"errorMessage":"Cannot start actor, {actor_id} not found","messagePattern":"Cannot start actor, (.+?) not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/system/src/trader.rs","lineNumber":1289,"sourceCode":"    pub fn clear_exec_algorithms(&mut self) -> anyhow::Result<()> {\n        for exec_algorithm_id in self.exec_algorithm_ids.clone() {\n            log::debug!(\"Disposing execution algorithm {exec_algorithm_id}\");\n            self.retire_exec_algorithm(exec_algorithm_id)?;\n        }\n\n        Ok(())\n    }\n\n    // -- Individual component management ----------------------------------------\n\n    /// Starts the actor with the given `actor_id`.\n    ///\n    /// # Errors\n    ///\n    /// Returns an error if the actor is not registered or cannot be started.\n    pub fn start_actor(&self, actor_id: &ActorId) -> anyhow::Result<()> {\n        if !self.actor_ids.contains(actor_id) {\n            anyhow::bail!(\"Cannot start actor, {actor_id} not found\");\n        }\n        start_component(&actor_id.inner())\n    }\n\n    /// Stops the actor with the given `actor_id`.\n    ///\n    /// # Errors\n    ///\n    /// Returns an error if the actor is not registered or cannot be stopped.\n    pub fn stop_actor(&self, actor_id: &ActorId) -> anyhow::Result<()> {\n        if !self.actor_ids.contains(actor_id) {\n            anyhow::bail!(\"Cannot stop actor, {actor_id} not found\");\n        }\n        stop_component(&actor_id.inner())\n    }\n\n    /// Removes the actor with the given `actor_id`.\n    ///","sourceCodeStart":1271,"sourceCodeEnd":1307,"githubUrl":"https://github.com/nautechsystems/nautilus_trader/blob/18893faf8b356be3320add8de2f861b0b647cf06/crates/system/src/trader.rs#L1271-L1307","documentation":"start_actor was called with an ActorId that is not in the trader's registered actor set; the actor was never added (or was already removed/retired), so there is no component to start and the call fails fast.","triggerScenarios":"Thrown at crates/system/src/trader.rs:1289 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add/register the actor with the trader before starting it","Check the actor ID spelling against the trader's registered actor IDs"],"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-14T05:17:10.506Z"}