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
758 stars 72 forks source link

[Notion] Import fails with large workspaces, giving an error Part-1.zip undefined #206

Open johnroach opened 9 months ago

johnroach commented 9 months ago

Hi,

Forgive me if I am posting this in the wrong place. However, I can't seem to get Notion exporter working. I don't see any error messages that can help either.

Steps I have taken:

  1. I have downloaded the large 4.2 GB Notion zip file after exporting (selected HTML, keeping folder structure and images).
  2. Pointed the importer to Notion Zip file with "Saving parent pages in subfolders" set as true and "single line breaks" as false
  3. The import fails. Debug console provides only the following output
Import failed <some_alpha_numeric_name>.zip/<some_alpha_numeric_name>-Part-1.zip undefined

It looks like it is looking for multiple zip files in the zip? However, Notion only provides a single ZIP file that's flat.

Any help would be most welcomed.

Obsidian version 1.5.3 Importer plugin version 1.5.6 MacOS 14.3

owrede commented 9 months ago

I have the same problem.

estraviz commented 9 months ago

Same problem here.

keroblin commented 9 months ago

same!

kepano commented 9 months ago

@joshuatazrein do you have any guesses about what could be going on here?

j-palindrome commented 9 months ago

Sorry, just saw this. Would it be possible to get some of these larger test data files to try to reproduce the issue? My Notion database is quite small.

AndreMonthy commented 8 months ago

Same issue. I have a large notion .Zip. About 2.3GB. I think >10,000 pages.

AndreMonthy commented 8 months ago

Pasted image 20240221103241

Pasted image 20240221103321

Obsidian v1.5.3 Plugin version v1.6.0 Windows 10 Version 10.0.19045 Build 19045

AndreMonthy commented 8 months ago

Found a bodged solution.

When I exported from Notion Settings page like the Obsidian help page suggests I get the error I mentioned above. image

I then tried to export from the workspace page drop down menu (which contains all content anyway). image

... and this was the result. image

Worked almost flawlessly. Maybe the documentation should be changed to include this other method.

j-palindrome commented 8 months ago

This is a good point, I can look at what might be happening but I need some test data in order to debug.

jan-eckhoff commented 8 months ago

... and this was the result. image

on a related note: is there a way to see the full list of errors? Crucially, without truncating at the end?

wldhg commented 8 months ago

I unzipped the exported zip from Notion and proceeded with Export-(uuid)-Part-1.zip, which was successful.

bram-dingelstad commented 8 months ago

@wldhg's solution outlined above worked for me as well! Perhaps worth documenting "unzipping" the .zip first (however, on macOS it will recursively decompress when you click the main zip), or accounting for the "zip in zip" in the importer code ✨

kepano commented 8 months ago

Troubleshooting instructions have been added to the Help site.

If we can't change how the file is unzipped, we might be able to detect nested .zip files and point the user to the troubleshooting instructions.

estraviz commented 8 months ago

This solved the issue for me. Thanks!

changenowde commented 6 months ago

Unzipping the first ZIP with Forklift on a Mac did the trick for me too. It only unzipped one level deep. The "...Part-1.zip" then worked with the importer.

I know this is not the theme here, but it helped me a lot to set an attatchments folder before importing. ;-)

oscartorres-10 commented 3 months ago

it was a bit complicated to obtain the nested .zip for me so the following may be useful for someone in the future with the same issue:

i was able to use unzip in the macOS terminal to bring out the nested .zip, as double clicking (which uses macOS Archive Utility by default) wasn't working because it was unzipping the nested one also

to use it you have to execute unzip nameofthezip.zip and you should have the nested one in the folder, that's the one needed for Obsidian Importer

more details for me `unzip` was already installed, i think it comes by default but not sure, you can check by typing `unzip` in your terminal and if you see something like below then it's installed: ![image](https://github.com/user-attachments/assets/1de0a279-4103-4219-a396-fbe4967fa7c5)