File to DB graph import failure

Đang mở
#1,516 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
clojure, markdown
Lĩnh vực
data, databases

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.

  1. Choose Import → “File to DB graph.”
  2. Select the existing Logseq OG graph folder and start importing
  3. The import fails with the missing-entity error above
  4. In a test copy, replace the offending ((uuid)) reference with its source text and retry.
  5. 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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của logseq/db-test

Tất cả issue của logseq/db-test

Issue tương tự

Thêm issue về Data Engineering

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.