obsidian-importer icon indicating copy to clipboard operation
obsidian-importer copied to clipboard

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

Open johnroach opened this issue 2 years ago • 16 comments

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

johnroach avatar Jan 31 '24 21:01 johnroach

I have the same problem.

owrede avatar Feb 03 '24 19:02 owrede

Same problem here.

estraviz avatar Feb 10 '24 21:02 estraviz

same!

keroblin avatar Feb 16 '24 11:02 keroblin

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

kepano avatar Feb 16 '24 17:02 kepano

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.

j-palindrome avatar Feb 16 '24 18:02 j-palindrome

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

AndreMonthy avatar Feb 21 '24 10:02 AndreMonthy

Pasted image 20240221103241

Pasted image 20240221103321

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

AndreMonthy avatar Feb 21 '24 10:02 AndreMonthy

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.

AndreMonthy avatar Feb 21 '24 15:02 AndreMonthy

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

j-palindrome avatar Feb 21 '24 18:02 j-palindrome

... 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?

jan-eckhoff avatar Feb 23 '24 16:02 jan-eckhoff

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

wldhg avatar Feb 24 '24 18:02 wldhg

@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 ✨

bram-dingelstad avatar Feb 27 '24 15:02 bram-dingelstad

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.

kepano avatar Feb 27 '24 17:02 kepano

This solved the issue for me. Thanks!

estraviz avatar Mar 08 '24 18:03 estraviz

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. ;-)

changenowde avatar May 10 '24 17:05 changenowde

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

oscartorres-10 avatar Jul 28 '24 21:07 oscartorres-10