Repository navigation
Open
Description
Search first
- I searched and no similar issues were found
What Happened?
I tested importing the EDN export of a block. It failed.
Surprisingly it does work with 2 blocks. The EDN does include the journal page reference.
{:pages-and-blocks
[{:page {:build/journal 20260713},
:blocks
[{:block/title "Mittagessen"} {:block/title "Abendessen"}]}],
:logseq.db.sqlite.export/export-type :selected-nodes}
In the GUI, i get 2 notifications:
No block found
An unexpected error occurred building the import. See the javascript console for details.
But there is nothing in the console!
In the terminal, i get a bit more output.
Reproduce the Bug
- Export block as EDN format
- Import EDN
Expected Behavior
I expect that the block is added at the end of todays journal, like CLI block upsert.
Screenshots
Files
My block. You can use it to test:
{:logseq.db.sqlite.export/block {:block/title "Mittagessen"},
:pages-and-blocks [],
:logseq.db.sqlite.export/export-type :block}
Terminal output:
The build-blocks-tx has the following options errors:
{:pages-and-blocks
[{:page
{:block/title
[":block/title, :block/uuid or :build/journal required"]}}]}
Invalid data for options errors:
{:pages-and-blocks {0 {:page {}}}}
Import EDN error: hk [Error]: Options validation failed
at new hk (/home/davidak/Projekte/Logseq QA/Logseq-linux-x86_64-2.0.1-alpha+nightly.20260710/resources/app.asar/js/db-worker-node.js:2:619197)
at jk (/home/davidak/Projekte/Logseq QA/Logseq-linux-x86_64-2.0.1-alpha+nightly.20260710/resources/app.asar/js/db-worker-node.js:2:619496)
at ik (/home/davidak/Projekte/Logseq QA/Logseq-linux-x86_64-2.0.1-alpha+nightly.20260710/resources/app.asar/js/db-worker-node.js:2:619457)
at Obb (/home/davidak/Projekte/Logseq QA/Logseq-linux-x86_64-2.0.1-alpha+nightly.20260710/resources/app.asar/js/db-worker-node.js:2:1745957)
at Pbb (/home/davidak/Projekte/Logseq QA/Logseq-linux-x86_64-2.0.1-alpha+nightly.20260710/resources/app.asar/js/db-worker-node.js:2:1746236)
at Mcb (/home/davidak/Projekte/Logseq QA/Logseq-linux-x86_64-2.0.1-alpha+nightly.20260710/resources/app.asar/js/db-worker-node.js:2:1771194)
at Mob (/home/davidak/Projekte/Logseq QA/Logseq-linux-x86_64-2.0.1-alpha+nightly.20260710/resources/app.asar/js/db-worker-node.js:2:2059512)
at kba (/home/davidak/Projekte/Logseq QA/Logseq-linux-x86_64-2.0.1-alpha+nightly.20260710/resources/app.asar/js/db-worker-node.js:2:475226)
at jba (/home/davidak/Projekte/Logseq QA/Logseq-linux-x86_64-2.0.1-alpha+nightly.20260710/resources/app.asar/js/db-worker-node.js:2:475138)
at iba (/home/davidak/Projekte/Logseq QA/Logseq-linux-x86_64-2.0.1-alpha+nightly.20260710/resources/app.asar/js/db-worker-node.js:2:475045) {
data: S { T: null, W: 1, G: [ [w], [S] ], C: null, F: 16647951, I: 401412 },
cause: null,
description: undefined,
number: undefined,
fileName: undefined,
lineNumber: undefined,
columnNumber: undefined
}
Browser, Desktop or Mobile Platform Information
NixOS 26.05.4659.8f0500b96605
Logseq Desktop 2.0.1 (Beta)
Additional Context
No response
Are you willing to submit a PR? If you know how to fix the bug.
- I'm willing to submit a PR (Thank you!)
Metadata
Metadata
Assignees
Labels
No labels
Activity
davidak commentedon Jul 19, 2026
Still reproducible with Logseq-linux-x86_64-2.0.1-alpha+nightly.20260716.
yuxi-liu-wired commentedon Oct 27, 2026
Fixed in logseq/logseq#13886 (fix(import): EDN export and import keep pages, history, search and the target block). Its description has the cause and the test that pins it; it fails on current master and passes with the fix.
fix(import): stop importing an exported block when there is no block …
fix(import): stop importing an exported block when there is no block …
fix(import): stop importing an exported block when there is no block …
fix(import): stop importing an exported block when there is no block …
fix(import): stop importing an exported block when there is no block …
fix(import): stop importing an exported block when there is no block …
fix(import): stop importing an exported block when there is no block …
fix(import): stop importing an exported block when there is no block …
fix(import): stop importing an exported block when there is no block …
fix(import): stop importing an exported block when there is no block …
fix(import): stop importing an exported block when there is no block …
fix(import): stop importing an exported block when there is no block …
fix(import): stop importing an exported block when there is no block …