I can’t open my daily notes as of this morning. Getting the Failed to Open “” error, although the daily file is created on the left. I haven’t downloaded any new themes of plugins.
This is the query:
> [!calendar] Past years
> ```base
> filters:
> and:
> - formula[“On this day”]
> - file != this.file
> formulas:
> date: date(file.basename.slice(0, 10))
> created_date: if(created.isType(“date”), created, if(created.isType(“string”), date(created), null))
> active_note_created: if(this.created.isType(“date”), this.created, if(this.created.isType(“string”), date(this.created), null))
> today_mmdd: formula.active_note_created.format(“MMDD”)
> On this day: formula.date.format(“MMDD”) == formula.today_mmdd || formula.created_date.format(“MMDD”) == formula.today_mmdd
> Year Modified: created.year
> “Outlink #”: file.links.length
> Links: file.backlinks.length
> Shared Links: list(this.file.links).filter(list(file.links).containsAny(value)).unique()
> Years: created.toString()
> views:
> - type: table
> name: On this day
> order:
> - formula.Years
> - file.name
> sort:
> - property: formula.Years
> direction: DESC
> limit: 44
> columnSize:
> formula.Years: 93
>
> ```
-–
I ended up using a simpler Base, which got the file to open, but another file has the same issue. The query in that file is this:
created:
[!calendar]+ Calendar Time Window (± 7 days)
These are the calendar notes created in the 7 days before & after this note.LIST FROM "Calendar" WHERE date(this.file.ctime) - file.ctime <= dur(1 week) SORT file.name asc LIMIT 20
Once you’ve done the above, delete everything above this line.
Steps to reproduce
Add either of the queries above to one of your .md files.
Did you follow the troubleshooting guide? [Y/N]
Y
Expected result
I should be able to open the file and see the Dataview/Base query at the bottom
Actual result
The file won’t open and you get an error
Environment
Command failed to execute: bookmarks:bookmark-current-view
app.js:1 TypeError: Cannot read properties of undefined (reading ‘path’)
at c6 (app.js:1:2810985)
at m6 (app.js:1:2811535)
at Object.checkCallback (app.js:1:2915718)
at app.js:1:2729534
at Array.filter ()
at e.listCommands (app.js:1:2729472)
at e.getCommands (app.js:1:3087368)
at t.getItems (app.js:1:3088580)
at t.getSuggestions (app.js:1:2260894)
at t.updateSuggestions (app.js:1:2260030)
(anonymous) @ app.js:1
app.js:1 Command failed to execute: bookmarks:bookmark-current-view
app.js:1 TypeError: Cannot read properties of undefined (reading ‘path’)
at c6 (app.js:1:2810985)
at m6 (app.js:1:2811535)
at Object.checkCallback (app.js:1:2915718)
at app.js:1:2729534
at Array.filter ()
at e.listCommands (app.js:1:2729472)
at e.getCommands (app.js:1:3087368)
at t.getItems (app.js:1:3088580)
at t.getSuggestions (app.js:1:2260894)
at t.updateSuggestions (app.js:1:2260030)
(anonymous) @ app.js:1