Skip to content

[Bug]: Failed to create Task. Folder already exists #1555

@jkune5

Description

@jkune5

Bug Description

I have "Default Tasks folder" and "Folder for converted tasks", both of them set to "Extras/Tasksnotes/Tasks

Whenever I try to convert a task to tasknote inside a note. it says "Failed to convert Note. Please try again"

Checking the console it gave me this error

initializeAfterLayoutReady @ plugin:tasknotes:1128
plugin:tasknotes:12 Error creating folder structure: {error: 'Folder already exists.', stack: 'Error: Folder already exists.\n    at t.<anonymous>…616)\n    at a (app://obsidian.md/app.js:1:257334)', folderPath: 'Extras/Tasknotes/Tasks', normalizedPath: 'Extras/Tasknotes/Tasks'}error: "Folder already exists."folderPath: "Extras/Tasknotes/Tasks"normalizedPath: "Extras/Tasknotes/Tasks"stack: "Error: Folder already exists.\n    at t.<anonymous> (app://obsidian.md/app.js:1:1220675)\n    at app://obsidian.md/app.js:1:258511\n    at Object.next (app://obsidian.md/app.js:1:258616)\n    at a (app://obsidian.md/app.js:1:257334)"[[Prototype]]: Object
Bl @ plugin:tasknotes:12
await in Bl
createTask @ plugin:tasknotes:521
await in createTask
createTaskFile @ plugin:tasknotes:146
instantConvertTask @ plugin:tasknotes:143
eval @ plugin:tasknotes:147
plugin:tasknotes:527 Error creating task: {error: 'Failed to create folder "Extras/Tasknotes/Tasks": Folder already exists.', stack: 'Error: Folder already exists.\n    at t.<anonymous>…616)\n    at a (app://obsidian.md/app.js:1:257334)', taskData: {…}}
createTask @ plugin:tasknotes:527
await in createTask
createTaskFile @ plugin:tasknotes:146
instantConvertTask @ plugin:tasknotes:143
eval @ plugin:tasknotes:147
plugin:tasknotes:143 Error during instant task conversion: Error: Failed to create task: Failed to create folder "Extras/Tasknotes/Tasks": Folder already exists.
    at Db.createTask (plugin:tasknotes:527:1083)
    at async _R.createTaskFile (plugin:tasknotes:146:3081)
    at async _R.instantConvertTask (plugin:tasknotes:143:1008)
    at async HTMLButtonElement.eval (plugin:tasknotes:147:6057)
instantConvertTask @ plugin:tasknotes:143
await in instantConvertTask
eval @ plugin:tasknotes:147
  • I tried deleting existing "Tasks" folder and let the plugin create the folder itself but it doesn't create the folder and it keeps showing that error
  • I tried restarting the obsidian app several times but it still gives me the error. Even though there is no "Tasks" folder, the console keeps showing the error that the folder already exists.
  • Tried restarting the PC but with no luck

OS: Windows 11
Obsidian: 1.11.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions