Import of OneNote stops with message Cannot read properties of null

Operating system

Linux

Joplin version

3.5.13

Desktop version info

Gerät: linux, Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz
Client-ID: f29cdd0778ee4b3f9c61e737a69ddb48
Sync-Version: 3
Profil-Version: 49
Unterstützter Schlüsselbund: Nein
Alternative Instanz ID: -

Revision: 0c1511f

Backup: 1.5.1
Freehand Drawing: 4.2.0
Table Formatter Plugin: 1.2.1

Sync target

File system

Editor

Markdown Editor

What issue do you have?

When I try to import a OneNote file .one I get the following error message:
Cannot read properties of null (reading 'toUpperCase')
and the import stops immediately with no information imported into Joplin.
The same also happens on Windows 11 either with a .one or .onepkg file.

Here some more information from the console (Linux):

Logger.ts:317 16:23:50: importFrom: TypeError: Cannot read properties of null (reading 'toUpperCase')
at Object.get (InteropService_Importer_OneNote.ts:169:38)
at LOt.convertExternalLinksToInternalLinks_ (InteropService_Importer_OneNote.ts:230:39)
at LOt.postprocessGeneratedHtml_ (InteropService_Importer_OneNote.ts:195:20)
at LOt.execImpl_ (InteropService_Importer_OneNote.ts:126:3)
at LOt.exec (InteropService_Importer_OneNote.ts:145:11)
at InteropService.import (InteropService.ts:337:12)
at Object.execute (importFrom.ts:136:20)
at Object.current (MenuBar.tsx:316:3)
log @ Logger.ts:317
error @ Logger.ts:147
execute @ importFrom.ts:140
await in execute
execute @ CommandService.ts:333
(anonymous) @ MenuBar.tsx:316
click @ MenuBar.tsx:450
apply @ main-html.bundle.js.map:1
(anonymous) @ main-html.bundle.js.map:1
(anonymous) @ main-html.bundle.js.map:1
emit @ node:events:519
onMessage @ node:electron/js2c/renderer_init:2

Thank you for the issue report (and the stack trace!).

I've opened a pull request that should fix this issue in a future release:

Thanks for the quick follow-up. To be able to import all my OneNote notebooks to Joplin is one important step in my journey from Windows to Linux for good.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.