obsidianmd / obsidian-importer

Obsidian Importer lets you import notes from other apps and file formats into your Obsidian vault.
https://help.obsidian.md/import
MIT License
747 stars 71 forks source link

Notes are skipped on import due to attachment name duplicates #298

Closed ilium007 closed 3 weeks ago

ilium007 commented 1 month ago

This has been mentioned before in https://github.com/obsidianmd/obsidian-importer/issues/229 and https://github.com/obsidianmd/obsidian-importer/pull/231

Notes are skipped on import due to attachment name duplication (this is a subset of thousands of notes I wanted to migrate):

image

On some notes that have been imported images have been swapped out with other images because filenames in attachments from Bear are the same.

ilium007 commented 1 month ago

Another report here: https://github.com/obsidianmd/obsidian-importer/issues/181

This is a deal breaker for moving to Obsidian and looks like its been reported, and closed, multiple times now.

lishid commented 1 month ago

Seems to have been closed multiple times as duplicates. There's an active PR that has been reviewed but the author has since disappeared. Let me see if we can make some more progress on it.

Here's the active PR: https://github.com/obsidianmd/obsidian-importer/pull/231

jspv commented 1 month ago

Still very much a problem with 1.6.5 importing from OneNote

tgrosinger commented 1 month ago

Thanks for reporting this. Looks like the fix we put in was specific to the Bear format. I'll look into a more generic fix.

tgrosinger commented 3 weeks ago

@jspv, would you mind testing if this update fixes the OneNote importer duplicate attachment names issue for you?

  1. Download this zip: main.zip
  2. Unzip the file.
  3. Open your Obsidian vault, replace /.obsidian/plugins/obsidian-importer/main.js with this file.
  4. Close and reopen Obsidian.
tgrosinger commented 3 weeks ago

This should be resolved in 1.6.8. Please let us know if it is not.