{"record":{"id":"ce4aab15e0276c88","repo":"bevyengine/bevy","slug":"the-schedule-with-the-label-0-was-not-found","errorCode":null,"errorMessage":"The schedule with the label {0:?} was not found.","messagePattern":"The schedule with the label (.+?) was not found\\.","errorType":"exception","errorClass":"TryRunScheduleError","httpStatus":null,"severity":"error","filePath":"crates/bevy_ecs/src/world/error.rs","lineNumber":16,"sourceCode":"//! Contains error types returned by bevy's schedule.\n\nuse alloc::vec::Vec;\nuse bevy_utils::prelude::DebugName;\n\nuse crate::{\n    component::ComponentId,\n    entity::{Entity, EntityNotSpawnedError},\n    schedule::InternedScheduleLabel,\n};\n\n/// The error type returned by [`World::try_run_schedule`] if the provided schedule does not exist.\n///\n/// [`World::try_run_schedule`]: crate::world::World::try_run_schedule\n#[derive(thiserror::Error, Debug)]\n#[error(\"The schedule with the label {0:?} was not found.\")]\npub struct TryRunScheduleError(pub InternedScheduleLabel);\n\n/// The error type returned by [`World::try_insert_batch`] and [`World::try_insert_batch_if_new`]\n/// if any of the provided entities do not exist.\n///\n/// [`World::try_insert_batch`]: crate::world::World::try_insert_batch\n/// [`World::try_insert_batch_if_new`]: crate::world::World::try_insert_batch_if_new\n#[derive(thiserror::Error, Debug, Clone)]\n#[error(\"Could not insert bundles of type {bundle_type} into the entities with the following IDs because they do not exist: {entities:?}\")]\npub struct TryInsertBatchError {\n    /// The bundles' type name.\n    pub bundle_type: DebugName,\n    /// The IDs of the provided entities that do not exist.\n    pub entities: Vec<Entity>,\n}\n\n/// An error that occurs when a specified [`Entity`] could not be despawned.\n#[derive(thiserror::Error, Debug, Clone, Copy)]","sourceCodeStart":1,"sourceCodeEnd":34,"githubUrl":"https://github.com/bevyengine/bevy/blob/396ca727080776bd313bb892423b7d94e03b81b4/crates/bevy_ecs/src/world/error.rs#L1-L34","documentation":"TryRunScheduleError: World::try_run_schedule was called with a schedule label that has never been added to this world, so there is no schedule to run.","triggerScenarios":"Thrown at crates/bevy_ecs/src/world/error.rs:16 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add the schedule first via world.add_schedule(...) / app.add_schedule(...) with the same label","Check the returned Result — try_run_schedule exists precisely for this case","Verify the label type is the same interned type used when adding"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"396ca727080776bd313bb892423b7d94e03b81b4","analyzedAt":"2026-08-20T16:12:39.808Z","contentChangedAt":"2026-08-20T16:12:39.808Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}