Skip to content

Error when trying to import exported block #1004

Open

Description

@davidak

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

  1. Export block as EDN format
  2. Import EDN

Expected Behavior

I expect that the block is added at the end of todays journal, like CLI block upsert.

Screenshots

Image

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!)

Activity

  1. self-assigned this
    on Jul 14, 2026
  2. davidak commented on Jul 19, 2026

    @davidak
    Author

    Still reproducible with Logseq-linux-x86_64-2.0.1-alpha+nightly.20260716.

  3. yuxi-liu-wired commented on Oct 27, 2026

    @yuxi-liu-wired

    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.

  4. added 5 commits that reference this issue on Oct 28, 2026
    06fa8b0
    416033f
    41a094f
    043c439
    74403df
  5. added 8 commits that reference this issue on Nov 11, 2026
    6da20b8
    13a134a
    6457da0
    a796bef
    a4a37aa
    4472a17
    e9d1dc9
    ba4c4d1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions