Selection of folder with custom (private) file templates doesn't work

Nextcloud version (eg, 20.0.5): 25.0.5 AIO
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04 VM Proxmox

The issue you are facing:
I’ve tried to select a custom folder to store my private file templates to use, but while I’m creating a new file, I can see selection of teplated from the original Documents templates only

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Create a new folder (in my case “mypersonaltemplated” directly in Documents
  2. Point to it (Personal settings > Office > Select a template directory) & Save
  3. Copy file into that directly (in my case *.xlsx file)
  4. Create a new spreadsheet file and try to use .xlsx file from that folder - missing

The output of your Nextcloud log in Admin > Logging:

[no app in context] Error: OCP\Files\NotFoundException:  at <<closure>>

 0. /var/www/html/lib/private/Files/Node/Node.php line 347
    OC\Files\Node\Node->getFileInfo()
 1. /var/www/html/custom_apps/files_archive/lib/Listener/FileNodeListener.php line 97
    OC\Files\Node\Node->getType()
 2. /var/www/html/lib/private/EventDispatcher/ServiceEventListener.php line 87
    OCA\FilesArchive\Listener\FileNodeListener->handle(["OCP\\Files\\Ev ... "])
 3. /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 251
    OC\EventDispatcher\ServiceEventListener->__invoke(["OCP\\Files\\Ev ... "], "OCP\\Files\\Eve ... t", ["Symfony\\Compo ... "])
 4. /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 73
    Symfony\Component\EventDispatcher\EventDispatcher->callListeners([["Closure"],["Closure"],["Closure"]], "OCP\\Files\\Eve ... t", ["OCP\\Files\\Ev ... "])
 5. /var/www/html/lib/private/EventDispatcher/EventDispatcher.php line 88
    Symfony\Component\EventDispatcher\EventDispatcher->dispatch(["OCP\\Files\\Ev ... "], "OCP\\Files\\Eve ... t")
 6. /var/www/html/lib/private/EventDispatcher/EventDispatcher.php line 100
    OC\EventDispatcher\EventDispatcher->dispatch("OCP\\Files\\Eve ... t", ["OCP\\Files\\Ev ... "])
 7. /var/www/html/lib/private/Files/Node/HookConnector.php line 194
    OC\EventDispatcher\EventDispatcher->dispatchTyped(["OCP\\Files\\Ev ... "])
 8. /var/www/html/lib/private/legacy/OC_Hook.php line 106
    OC\Files\Node\HookConnector->postRename(["/Templates/bla ... "])
 9. /var/www/html/lib/private/Files/View.php line 860
    OC_Hook::emit("OC_Filesystem", "post_rename", ["/Templates/bla ... "])
10. /var/www/html/apps/dav/lib/Connector/Sabre/Directory.php line 442
    OC\Files\View->rename("/Templates/blablabla.xlsx", "/mypersonaltemplates/blablabla.xlsx")
11. /var/www/html/3rdparty/sabre/dav/lib/DAV/Tree.php line 160
    OCA\DAV\Connector\Sabre\Directory->moveInto("blablabla.xlsx", "files/908157B5- ... x", ["OCA\\DAV\\Connector\\Sabre\\File"])
12. /var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 612
    Sabre\DAV\Tree->move("files/908157B5- ... x", "files/908157B5- ... x")
13. /var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpMove(["Sabre\\HTTP\\Request"], ["Sabre\\HTTP\\Response"])
14. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 472
    Sabre\DAV\Server->emit("method:MOVE", [["Sabre\\HTTP\\ ... ]])
15. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod(["Sabre\\HTTP\\Request"], ["Sabre\\HTTP\\Response"])
16. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
17. /var/www/html/apps/dav/lib/Server.php line 360
    Sabre\DAV\Server->exec()
18. /var/www/html/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
19. /var/www/html/remote.php line 171
    require_once("/var/www/html/a ... p")

MOVE /remote.php/dav/files/908157B5-4844-45BA-A3E1-F2CEBC5BC122/Templates/blablabla.xlsx
from 666.666.666.666 by 908157B5-4844-45BA-A3E1-F2CEBC5BC122 at 2023-04-03T11:36:31+00:00```