i want to capture into a datetree inside the current buffer. Below is my snippet. But unfortunately it doesn't work. Always an error: org-capture-expand-file: Invalid file location: nil
I use emacs 28 with Org 9.4 on Linux Fedora34.
("a" "Datetree in act. Buffer" entry (file+olp+datetree (buffer-file-name)) "* TODO %?\nSCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+0d\"))\n%a\nAdded: %U" :empty-lines 1 :tree-type week)
Does anybody know, how to fix it? The function (buffer-file-name) returns the correct filename with path, exactly like i wrote it as string.