I’m trying to use the extension Importer to import my OneNote Notebooks into Obsidian. After I log into my Microsoft account from within the Importer plugin, I get the message, “TypeError: Can not read properties of undefined (reading ‘value’)”.
Things I have tried
I’ve made sure that everything is up to date. I logged out of OneNote program. And then Obsidian. I tried to log back into OneNote through the Importer plugin, still the same problem.
I removed passwords to password protected sections.
None of this helped and I’m now at a loss of what to do next.
I should add that I’m using Office 365 for Business Premium. It’s a startup so it is only me at the moment, but I do have global admin rights. I’m not sure if this is playing a factor or not.
I have the exact same issue. The importer starts, I sign-in via the browser, and I authorize the Importer application. When the screen returns to Obsidian this error message is displayed. This is with an Office 365 Enterprise subscription (E5). The error persists when using Edge or Chrome.
I tested this on a personal Microsoft Account ([email protected]) and there the import does work. So for me, the error only appears with Office 365. In the past, the OneNote importer did work on this computer with the same Office 365 account.
So…is it possible to just copy all out notebooks from our Office 365 OneDrive onto our personal OneDrive and then import it? I’ve never tried moving or copying OneNote Notebooks. Will this work without messing anything up? If some of my sections within OneNote Notebooks are password protected, do I need to remove the password before copying? Or does it not matter?
Thank you, I greatly appreciate your time and help!
I made sure ALL the notebooks were up to date and synced.
I went into my business account and shared them with my personal account.
For step 2, I had to go into 365 Admin and: 1. Create an external account with my personal email account and verify it, 2. accept it from the personal email account, 3. re-enter my business account and then share it with the personal account. I think I had to mess with Entra on my Sharepoint Access policies to do this (new name for Active Directory).
I went onto my personal email account (switch accounts on your computer’s logon OR open up an incognito browser before trying this; otherwise windows will get confused and you will lose an hour figuring this frustrating error out).
I downloaded the shared onenote notebooks onto my local computer.
I then created a NEW folder on my PERSONAL OneDrive account just for this migration project folder.
I then UPLOADED the unzipped files into this new migration project folder. STEPS 5-7 ARE CRITICAL!!! If you don’t download and re-upload, you will still just be changing the shared OneNote on your companies SharePoint server which is NOT what you want.1
I then tried to imported them.
AND THEN A BIG ERROR OCCURRED on the second attempt when trying to log in. I had to uninstall and reinstall Importer just to be able to log back in. Some error about … TYPEERROR when trying to use the split command. Wish I had written it down for you as feedback. I’ll look later.
Regardless, I could then log back in via Importer to my personal account.
This time, I literally just exported each OneNote while on my Business account, then downloaded them all again and re-upped them to my personal OneDrive account (and yes, they need to be on the OneDrive and NOT your local computer as OneNote hides the data…fun, right?). Then I imported each one with Importer. Evidently it can read the onepkg files too. And this worked.
There were errors because some page titles had a period, space at the end or special character in the title such as "* / " and there are several others. I tried to correct as many as I can but there is no global “find and replace all” in OneNote because OneNote is very limited (at least compared to Obsidian).
It was a nightmare honestly, and I’m still not done. But at least it is something. I’ll forever stick with Obsidian. I never knew OneNote hide our info; I’m guess to preserve function like their across Notebook fuzzy finder or whatnot but still irritating as heck.
Good luck. Be patient. And if you have a lot to transfer like I did…give yourself 3x the time you THINK you will need to get it done.