{"record":{"id":"75aa67df71f57de5","repo":"bevyengine/bevy","slug":"conversion-failed-filtered-entity-ref-does-not-ha","errorCode":null,"errorMessage":"Conversion failed, filtered entity ref does not have read access to all components","messagePattern":"Conversion failed, filtered entity ref does not have read access to all components","errorType":"exception","errorClass":"TryFromFilteredError","httpStatus":null,"severity":"error","filePath":"crates/bevy_ecs/src/world/entity_access/filtered.rs","lineNumber":807,"sourceCode":"}\n\nimpl ContainsEntity for FilteredEntityMut<'_, '_> {\n    fn entity(&self) -> Entity {\n        self.id()\n    }\n}\n\n// SAFETY: This type represents one Entity. We implement the comparison traits based on that Entity.\nunsafe impl EntityEquivalent for FilteredEntityMut<'_, '_> {}\n\n/// Error type returned by [`TryFrom`] conversions from filtered entity types\n/// ([`FilteredEntityRef`]/[`FilteredEntityMut`]) to full-access entity types\n/// ([`EntityRef`]/[`EntityMut`]).\n#[derive(Error, Debug)]\npub enum TryFromFilteredError {\n    /// Error indicating that the filtered entity does not have read access to\n    /// all components.\n    #[error(\"Conversion failed, filtered entity ref does not have read access to all components\")]\n    MissingReadAllAccess,\n    /// Error indicating that the filtered entity does not have write access to\n    /// all components.\n    #[error(\"Conversion failed, filtered entity ref does not have write access to all components\")]\n    MissingWriteAllAccess,\n}\n","sourceCodeStart":789,"sourceCodeEnd":814,"githubUrl":"https://github.com/bevyengine/bevy/blob/396ca727080776bd313bb892423b7d94e03b81b4/crates/bevy_ecs/src/world/entity_access/filtered.rs#L789-L814","documentation":"TryFromFilteredError::MissingReadAccess: converting a FilteredEntityRef/FilteredEntityMut into an EntityRef failed because the filtered access set does not grant read access to all of the entity's components — EntityRef requires full read access.","triggerScenarios":"Thrown at crates/bevy_ecs/src/world/entity_access/filtered.rs:807 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use try_from / try_into and handle the Err case","Obtain an EntityRef directly from the world instead of from a filtered access","Widen the filtered access (or use unfiltered entity fetching) so all components are readable"],"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-14T00:17:10.932Z"}