obsidian-periodic-notes
obsidian-periodic-notes copied to clipboard
Unable to create new file
My weekly note settings:
When I select the command "Open Weekly Note" this message appears
This message only appears after a weekly note has been created. However, the weekly note created when I originally select the command "Open Weekly Note" has the week # listed as 36, while the Weekly note settings claim it should be 37
If I delete the current weekly note, then run the command, a new note is created (but with the wrong week # as previously mentioned).
Furthermore, when I select the command "Open Next Weekly Note," provided a weekly note has already been created, will open the first weekly note I created (even if I'm not currently viewing a weekly note).
Daily Note and Monthly Note function as expected.
Daily Note Settings (through Periodic Notes, not through the core daily note pluggin):
Monthly Note Settings:
And, in the off chance that it is relevant, Calendar Note settings
Obsidian Version: v0.12.15 OS: Windows 10, current version as of September 15th, 2021 Hardware: 5 year old Microsoft Surfacebook
Problems ceased after latest update (Version 0.2.5)
Correction: "Open Weekly Note" and "Open Next Weekly Note" now work as expected, but the note numbering is still inconsistent with what is shown in settings and I cannot create new weekly notes from the Calendar Pluggin.
I'm experiencing this issue, "Unable to create new file" when I try to open the weekly note.
Same issue here.
I changed the name template and a new file was created but with the wrong file name: I changed "YYYY-MM_[CW]WW" to "YYYY-MM_[CW]WW_2" but "2022-01_CW03_2" was created instead of the correct "2022-01_CW04_2". The name preview in the plugin option window is correct.
If I click the "Open this week" button again, then it fails with same error (because it tries to create a file that already exists?)
I had this exact same issue. When I used the WW format in periodic notes it used the week number minus 1 when creating the file name, and thus where unable to create the file when that file name already existed. It also used the week number minus 1 when formating note templates with {{date: WW}}. Like it knew it was week 7, when pushing the "open this week" button, which prompted the creation of a new file, but then used the week number 6 for file creation.
However, when I then installed the calendar plugin, everything worked fine, even with the calendar plugin turned off. As if it had overwritten some files that fixed the bug.
Thank you @clolesen! I've been having the exact same issue as described above, and by installing the Calendar plugin the problem magically disappeared and WW
now refers to the correct (current) week number, in this exact case to week 11
. Before the calendar plugin it pointed to week 10
.
I ran into this same problem. The docs point to moment.js for the formatting style (https://momentjs.com/docs/#/displaying/format/) and I noticed that my particular naming style was mixing ISO and non-ISO variables, e.g. 'gggg' and 'WW'. When I changed 'WW' to 'ww', I no longer have this issue.
I suspect that you either need to stick with all ISO or all non-ISO in the variable usage or else something gets confused.
I get this same message when I try to create a file that already exists. I'm running into this because the week number doesn't match the file it tries to create.
@jeremymturner's resolution worked for me. One quirky thing was that it was thrown off by the passed-through/escaped text and not the ISO-related text:
- gggg[ - Week ]w - Creates an error because the escaped text starts w/ a capital letter
- GGGG[ - Week ]W - Works as expected
I had issues with the week set wrong as well ("GGGG-W" converted to "2023-13" instead of the correct "2023-14". I installed the Calendar plugin, and at first it did not help, but then I checked the Calendar plugin config and changed "start of week" from Sunday to Monday and then it worked and created the note at "2023-14" as expected. For clarity: today is Monday.
I'm coming across the same issue. Can anyone suggest how I can get the following to play nice: YYYY - [Q]QQ - [M]MM - [W]WW
?
I've also tried gggg - [Q]QQ - [M]MM - [W]ww
.