{"record":{"id":"deb2abcd996c1c71","repo":"spacedriveapp/spacedrive","slug":"target-entry-not-found-deb2ab","errorCode":null,"errorMessage":"Target entry not found","messagePattern":"Target entry not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/src/service/file_sync/resolver.rs","lineNumber":85,"sourceCode":"\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\n\t\tlet mode = sync_conduit::SyncMode::from_str(&conduit.sync_mode)\n\t\t\t.ok_or_else(|| anyhow::anyhow!(\"Invalid sync mode\"))?;\n\n\t\tmatch mode {\n\t\t\tsync_conduit::SyncMode::Mirror => Ok(self.resolve_mirror(&source_map, &target_map)),","sourceCodeStart":67,"sourceCodeEnd":103,"githubUrl":"https://github.com/spacedriveapp/spacedrive/blob/6dfeccf2113039e35f2ce735f945e70dc3e4ea45/core/src/service/file_sync/resolver.rs#L67-L103","documentation":"Error \"Target entry not found\" thrown in spacedriveapp/spacedrive.","triggerScenarios":"Thrown at core/src/service/file_sync/resolver.rs:85 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"}