{"record":{"id":"3cd64c7a405d546e","repo":"siyuan-note/siyuan","slug":"conf-language-49","errorCode":null,"errorMessage":"Conf.Language(49)","messagePattern":"Conf\\.Language\\(49\\)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"kernel/model/file.go","lineNumber":1448,"sourceCode":"const (\n\tDailyNoteAttrPrefix = \"custom-dailynote-\"\n\tNodeAttrTitleEmpty  = \"custom-sy-title-empty\"\n\tDocHiddenAttr       = \"custom-hidden\"\n)\n\nfunc CreateDailyNote(boxID string) (p string, existed bool, err error) {\n\tcreateDocLock.Lock()\n\tdefer createDocLock.Unlock()\n\n\tbox := Conf.Box(boxID)\n\tif nil == box {\n\t\terr = ErrBoxNotFound\n\t\treturn\n\t}\n\n\tboxConf := box.GetConf()\n\tif \"\" == boxConf.DailyNoteSavePath || \"/\" == boxConf.DailyNoteSavePath {\n\t\terr = errors.New(Conf.Language(49))\n\t\treturn\n\t}\n\n\thPath, err := RenderGoTemplateInBox(boxConf.DailyNoteSavePath, box.ID)\n\tif err != nil {\n\t\treturn\n\t}\n\n\tFlushTxQueue()\n\n\thPath = util.TrimSpaceInPath(hPath)\n\texistRoot := treenode.GetBlockTreeRootByHPath(box.ID, hPath)\n\tif nil != existRoot {\n\t\texisted = true\n\t\tp = existRoot.Path\n\n\t\ttree, loadErr := LoadTreeByBlockID(existRoot.RootID)\n\t\tif nil != loadErr {","sourceCodeStart":1430,"sourceCodeEnd":1466,"githubUrl":"https://github.com/siyuan-note/siyuan/blob/9f775e8a12daef8255556097396f9b2739078892/kernel/model/file.go#L1430-L1466","documentation":"CreateDailyNote requires the notebook's 'Daily Note save path' setting (DailyNoteSavePath) to be a non-empty path other than '/'. The message is the localized key 49: 'Please specify the daily note save path in the Notebook Settings'. It is thrown before any document is created.","triggerScenarios":"Calling CreateDailyNote / dailynoteCreate / dailynoteAppend / dailynotePrepend for a notebook whose DailyNoteSavePath is unset or equals '/'.","commonSituations":"Freshly created notebook where daily-note settings were never configured; settings reset after a config migration or sync; automation targeting the wrong notebook whose config is empty.","solutions":["Open Notebook Settings and set the daily note save path to a valid path like '/Daily Notes/{{now | date \"2006-01\"}}/{{now | date \"2006-01-02\"}}'","Verify boxConf.DailyNoteSavePath via conf API before automating daily notes","Target the correct notebook that actually has daily notes configured"],"exampleFix":"// before\nawait fetchPost('/api/filetree/createDailyNote', {notebook: boxID})\n// after\nconst conf = (await fetchPost('/api/notebook/getNotebookConf', {notebook: boxID})).data\nif (!conf.dailyNoteSavePath || conf.dailyNoteSavePath === '/') throw new Error('Configure daily note save path first')\nawait fetchPost('/api/filetree/createDailyNote', {notebook: boxID})","handlingStrategy":"validation","validationCode":"const conf = (await fetchPost('/api/notebook/getNotebookConf', {notebook: boxID})).data; if (!conf.dailyNoteSavePath || conf.dailyNoteSavePath === '/') throw new Error('Daily note path not configured')","typeGuard":null,"tryCatchPattern":"try { await fetchPost('/api/filetree/createDailyNote', {notebook: boxID}) } catch (e) { if (String(e).includes('daily note save path')) { /* prompt user to configure */ } }","preventionTips":["Configure daily note save path in Notebook Settings for every notebook","Check dailyNoteSavePath in automated daily-note scripts","Do not use '/' as the daily note path"],"tags":["configuration","daily-note","missing-config"],"backgroundTag":"missing-required-config-field","analyzedSha":"9f775e8a12daef8255556097396f9b2739078892","analyzedAt":"2026-09-19T03:17:15.984Z","contentChangedAt":"2026-09-19T03:17:15.984Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}