Skip to content

Cannot read properties of null (reading 'toLowerCase') #12585

@Pet007nique

Description

@Pet007nique

Search first

  • I searched and no similar issues were found

What Happened?

**Oops. These files failed to import to your graph:
whiteboards/all.edn
Cannot read properties of null (reading 'toLowerCase')

Don't forget to re-index your graph when all the conflicts are resolved.**

Reproduce the Bug

When trying to reopen my .edn whiteboard file, I get this error.

Expected Behavior

No response

Screenshots

Image Image

Desktop or Mobile Platform Information

Windows 11 Pro

Additional Context

I found a similar problem here: https://discuss.logseq.com/t/whiteboard-disappeared-unable-to-recover-it/26663

Image

I immediately posted there as well -

Image

— but Logseq blocked my account right away -

Image

So I’m basically unable to report the problem anywhere, which means nobody can actually fix it.
This is very strange.

I also found a similar issue here: #11577

Image

I followed the solution exactly as described in the resolved thread — there are no nil values left in my file at all.

:stroke nil - no results
:refs [nil] - In one place I change it to :refs []
:scaleLevel nil - no results
:fill nil - no results
:type nil - no results
:label nil - no results
id nil - there isn’t that either, but there is - :bindingId nil
:parentId nil} - I don’t have this anywhere "parentId nil"

Also, if I search the file for the word nil, it appears 145 times:
:bindingId nil
:start nil
:end nil

if I replace all of them with:

:bindingId nil -> :bindingId ""
:start nil -> :bindingId ""
:end nil -> :bindingId ""

this doesn’t solve the problem

  • I replaced every single one according to the instructions, and there are no remaining nil entries anywhere.”**
Image

But this didn’t help — the file still won’t open.
It shows the same error again -

Image

Then I tinkered with the AI ​​a little more and changed the values ​​in the source file as follows:
:bindingId nil -> :bindingId {}
:start nil -> :start {}
:end nil -> :end {}

But this didn’t help — the file still won’t open.
It shows the same error again -

Image

Then I created a new project in a new folder and made new whiteboards there, including one with the same name as the previous one. I edited them a bit so that the whiteboards folder would appear, then I closed the program, replaced the newly created file with my old file (with the same name) — this also didn’t help.
The same error appears again.

Oops. These files failed to import to your graph:
whiteboards/all.edn
Cannot read properties of null (reading 'toLowerCase')

Don't forget to re-index your graph when all the conflicts are resolved.

I’m looking for help!

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions