Skip to content

"Cannot store nil as a value" causes blank page #974

Description

@jbain

Search first

  • I searched and no similar issues were found

What Happened?

I have a page that is completely borked. It's called Queries and it was going to hold a bunch of generic queries to embed elsewhere. I created it, added the first query, embedded it on another page. Worked great. I came back today and the page won't render at all, No page title, no breadcrumbs, just a blank canvas where the blocks should be.

If I go to the query tag page, I can see the query I made yesterday and that it lives on the Queries page. The data is still there, but in the UI I just get a blank screen.

developer tools console error message:

Cannot store nil as a value at {:block/tx-id 536871873, :block/uuid #uuid "6a3d91fd-faa4-4a52-b1b9-134c8dd3d4a7", :block/updated-at 1782524713922, :block/refs ({:db/id 22} {:db/id 176}), :logseq.property.node/display-type :code, :block.temp/has-children? false, :block/created-at 1782419965026, :logseq.property.code/lang "clojure", :block/tags ({:db/id 176}), :block/title "{:title \"Issues\" \n :query [:find (pull ?e [:block/title :logseq.property/status :logseq.property/priority])\n         :in $ ?epic-title\n         :where \n         [?e :block/tags ?t] \n         [?t :block/title \"Issue\"] \n         [?prop :block/title \"Epic\"]        ; find the property entity by name\n         [?prop :db/ident ?epic-attr]       ; grab its ident (the keyword)\n         [?e ?epic-attr ?p] \n         [?p :block/title ?ptitle]\n         [(clojure.string/lower-case ?ptitle) ?plc]\n         [(= ?plc ?epic-title)]\n         ]\n :inputs [:current-page]\n }", :logseq.property/created-from-property {:db/id 48}, :db/id 393, :block.temp/load-status :self, :block/parent nil, :block/order "b1v", :block/page {:db/id 249}, :logseq.property/_query 398}

Page Exported as an EDN

{:pages-and-blocks
 [{:page {:block/title "Queries"},
   :blocks
   [{:block/title "IssueQuery",
     :build/tags #{:logseq.class/Query},
     :build/properties
     {:logseq.property/query
      {:build/property-value :block,
       :block/title
       "{:title \"Issues\" \n :query [:find (pull ?e [:block/title :logseq.property/status :logseq.property/priority])\n         :in $ ?epic-title\n         :where \n         [?e :block/tags ?t] \n         [?t :block/title \"Issue\"] \n         [?prop :block/title \"Epic\"]        ; find the property entity by name\n         [?prop :db/ident ?epic-attr]       ; grab its ident (the keyword)\n         [?e ?epic-attr ?p] \n         [?p :block/title ?ptitle]\n         [(clojure.string/lower-case ?ptitle) ?plc]\n         [(= ?plc ?epic-title)]\n         ]\n :inputs [:current-page]\n }",
       :build/tags #{:logseq.class/Code-block},
       :build/properties
       {:logseq.property.node/display-type :code,
        :logseq.property.code/lang "clojure"}}}}]}],
 :logseq.db.sqlite.export/export-type :page}

Reproduce the Bug

I do not know what steps created this. I tried copying to the query to another page and it looks fine. I have been using claude with the logseq cli extensively, so it's possible something got mucked up along the way, however this page was manually created.

Expected Behavior

No response

Screenshots

Image

Files

No response

Browser, Desktop or Mobile Platform Information

macos

% logseq --version
Build time: 2026-06-24T15:54:50.765Z
Revision: 87f9aef-dirty

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions