{"record":{"id":"bae46532b31204de","repo":"spacedriveapp/spacedrive","slug":"source-entry-not-found-bae465","errorCode":null,"errorMessage":"Source entry not found","messagePattern":"Source entry not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/src/service/file_sync/resolver.rs","lineNumber":80,"sourceCode":"\tDeletedVsModified,\n\tTypeMismatch,\n}\n\nimpl SyncResolver {\n\tpub fn new(db: Arc<DatabaseConnection>) -> Self {\n\t\tSelf { db }\n\t}\n\n\t/// Calculate sync operations for a conduit\n\tpub async fn calculate_operations(\n\t\t&self,\n\t\tconduit: &sync_conduit::Model,\n\t) -> Result<SyncOperations> {\n\t\t// Get source and target root entries\n\t\tlet source_root = entry::Entity::find_by_id(conduit.source_entry_id)\n\t\t\t.one(&*self.db)\n\t\t\t.await?\n\t\t\t.ok_or_else(|| anyhow::anyhow!(\"Source entry not found\"))?;\n\n\t\tlet target_root = entry::Entity::find_by_id(conduit.target_entry_id)\n\t\t\t.one(&*self.db)\n\t\t\t.await?\n\t\t\t.ok_or_else(|| anyhow::anyhow!(\"Target entry not found\"))?;\n\n\t\t// Load all entries under each root\n\t\tlet source_entries = self\n\t\t\t.get_entries_recursive(conduit.source_entry_id, &source_root)\n\t\t\t.await?;\n\t\tlet target_entries = self\n\t\t\t.get_entries_recursive(conduit.target_entry_id, &target_root)\n\t\t\t.await?;\n\n\t\t// Build path maps\n\t\tlet source_map = self.build_path_map(&source_entries);\n\t\tlet target_map = self.build_path_map(&target_entries);\n","sourceCodeStart":62,"sourceCodeEnd":98,"githubUrl":"https://github.com/spacedriveapp/spacedrive/blob/6dfeccf2113039e35f2ce735f945e70dc3e4ea45/core/src/service/file_sync/resolver.rs#L62-L98","documentation":"Error \"Source entry not found\" thrown in spacedriveapp/spacedrive.","triggerScenarios":"Thrown at core/src/service/file_sync/resolver.rs:80 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6dfeccf2113039e35f2ce735f945e70dc3e4ea45","analyzedAt":"2026-08-16T11:26:17.074Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}