File to DB graph import failure
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 18/100
Hướng nghiên cứu
The failure comes from the File to DB graph importer, which raises an entity-id/missing error for a block UUID referenced with ((uuid)) but defined by an id:: property in the source Markdown. Start by reproducing with a minimal graph containing one id:: block and one block reference, since the reporter has not isolated one. Done means the import completes and the reference resolves to the defining block.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Search first
- I searched and no similar issues were found
What Happened?
Importing my existing Logseq OG file-based graph into Logseq DB 2.0.2 using “File to DB graph” fails with:
Unexpected error: Nothing found for entity id [:block/uuid #uuid "658d002d-b615-4176-8be5-269641a2f92d"]
The UUID exists in the source Markdown files: one block defines it with id::, and another references it using ((uuid)). The matching excerpts are:
- "perceiving gradients" is a critical point on evolutionary "direction" and the future of our species id:: 658d002d-b615-4176-8be5-269641a2f92d
- ((658d002d-b615-4176-8be5-269641a2f92d))
Replacing that reference with plain text in a test copy did not resolve the import: it failed on another UUID, 658a5b09-194f-4606-9eff-2e497447d8e5.
Reproduce the Bug
Open Logseq DB 2.0.2.
- Choose Import → “File to DB graph.”
- Select the existing Logseq OG graph folder and start importing
- The import fails with the missing-entity error above
- In a test copy, replace the offending ((uuid)) reference with its source text and retry.
- The import fails again, reporting a different UUID.
This reproduces with my graph; I have not yet isolated a minimal reproducing graph.
Expected Behavior
The OG graph should import successfully, preserving blocks and their references. In particular, the importer should resolve a reference when the corresponding block’s id:: definition exists in the source files.
Screenshots
No response
Desktop or Mobile Platform Information
No response
Additional Context
Developer Tools showed these two errors:
POST http://127.0.0.1:50071/v1/invoke 409 (Conflict)
17:11:05.393 [frontend.components.imports]
{:import-file-graph-failed
{:error #error
{:message "Nothing found for entity id [:block/uuid #uuid \"658d002d-b615-4176-8be5-269641a2f92d\"]",
:data
{:error :entity-id/missing,
:entity-id [:block/uuid #uuid "658d002d-b615-4176-8be5-269641a2f92d"]}}},
:line 420}
Repeated attempts have reported different missing UUIDs, although the original UUID has also recurred. A folder-wide search with Notepad++ found six occurrences of the original UUID traceable to two note entries. The excerpts above show an ordinary block reference, not an embed or query.
These observations do not establish whether the cause is source content or an importer bug. I have not confirmed a successful import or tested a newer nightly build.
Are you willing to submit a PR? If you know how to fix the bug.
- I'm willing to submit a PR (Thank you!)
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 29
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của logseq/db-test
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Potential Dataloss: Deleting an entry from the property page's node table has no confirmation dialogCó thể đã có người làm @tiensonqin đã nhận 59 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Disabling Flashcards in Settings does not disable Flashcard shortcuts or tagsCó thể đã có người làm @tiensonqin đã nhận 60 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Tất cả issue của logseq/db-test
Issue tương tự
-
fix energy term "van_der_walls"Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Becksteinlab/imdclient#161 ·
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 2 ngày
-
geodata good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
dgunning/edgartools#2019 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 72/100
alltheplaces/alltheplaces#20745 ·
Maintainer thường phản hồi trong vòng 1 ngày