logseq / logseq/db-test

Error when trying to import exported block

Open
#1,004 1 comment 0 reactions 1 assignee View on GitHub

@megayu is already working on this.

Since Jul 14, 2026.

Dominant language
No language data
Stars
28
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### Search first

- [x] 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!)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.