Error importing notes from format: enex

Operating system

macOS

Joplin version

3.6.14

Desktop version info

Joplin 3.6.14 (prod, darwin)

Device: darwin, Apple M2 Max
Client ID: 121ee81e940b45628240f371ec03d745
Sync Version: 3
Profile Version: 49
Keychain Supported: Yes
Alternative instance ID: -
Sync target: Dropbox
Editor: Markdown

Revision: 7e2765a

Backup: 1.5.1
Freehand Drawing: 4.3.0

What issue do you have?

Body

  • Input format: enex
  • Output format: md

Errors

Error: Line 350713:0: "What Is Gochujang? To Start, It’s Not a Sauce. - The New York Times": Unclosed root tag
Line: 350713
Column: 0
Char: 
    at error (file:///Applications/Joplin.app/Contents/Resources/fork-sax/lib/sax.js:651:10)
    at strictFail (file:///Applications/Joplin.app/Contents/Resources/fork-sax/lib/sax.js:677:7)
    at end (file:///Applications/Joplin.app/Contents/Resources/fork-sax/lib/sax.js:658:47)
    at SAXParser.end (file:///Applications/Joplin.app/Contents/Resources/fork-sax/lib/sax.js:154:24)
    at SAXStream.u.end (file:///Applications/Joplin.app/Contents/Resources/fork-sax/lib/sax.js:248:18)
    at ReadStream.onend (node:internal/streams/readable:950:10)
    at Object.onceWrapper (node:events:622:28)
    at ReadStream.emit (node:events:508:28)
    at endReadableNT (node:internal/streams/readable:1729:12)
    at processTicksAndRejections (node:internal/process/task_queues:90:21)

I have the same "Unclosed root tag" problem when importing from Evernote, but on Windows.

Just solved the problem (at least for me), after I saw a post that said Evernote's exports can be malformed. I had the problem with the Evernote export that creates one big enex file. But Evernote seems to have to different code paths for exporting notes: the one that creates one big file and the one that creates several files each capped at a specified maximum file size. The latter process is much slower, but for me it created enex files that I could import into Joplin without problems.