{"record":{"id":"d224d66be1adf20a","repo":"siyuan-note/siyuan","slug":"new-attribute-view-item-document-in-an-encrypted-n","errorCode":null,"errorMessage":"new attribute view item document in an encrypted notebook must be saved in the current notebook","messagePattern":"new attribute view item document in an encrypted notebook must be saved in the current notebook","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"kernel/model/attribute_view_new_item.go","lineNumber":488,"sourceCode":"\t\t}\n\t\tif nil == Conf.Box(boxID) {\n\t\t\treturn \"\", \"\", false, ErrBoxNotFound\n\t\t}\n\t\tif err = validateNewItemSaveBox(currentBoxID, boxID); nil != err {\n\t\t\treturn \"\", \"\", false, err\n\t\t}\n\t\treturn boxID, location.PathTemplate, false, nil\n\t}\n\n\tinherited = true\n\tboxID, pathTemplate = ResolveDocCreateSaveLocation(currentBoxID)\n\terr = validateNewItemSaveBox(currentBoxID, boxID)\n\treturn\n}\n\nfunc validateNewItemSaveBox(currentBoxID, targetBoxID string) error {\n\tif IsEncryptedBox(currentBoxID) && currentBoxID != targetBoxID {\n\t\treturn errors.New(\"new attribute view item document in an encrypted notebook must be saved in the current notebook\")\n\t}\n\treturn nil\n}\n\nfunc newItemParentPathTemplate(renderedPath string) string {\n\tif \"\" == renderedPath || strings.HasSuffix(renderedPath, \"/\") {\n\t\treturn renderedPath\n\t}\n\tisAbsolute := strings.HasPrefix(renderedPath, \"/\")\n\tsegments := strings.FieldsFunc(renderedPath, func(r rune) bool { return '/' == r })\n\tif 1 >= len(segments) {\n\t\tif isAbsolute {\n\t\t\treturn \"/\"\n\t\t}\n\t\treturn \"\"\n\t}\n\tparent := strings.Join(segments[:len(segments)-1], \"/\")\n\tif isAbsolute {","sourceCodeStart":470,"sourceCodeEnd":506,"githubUrl":"https://github.com/siyuan-note/siyuan/blob/251596fc0de2f9528c00c224252fd073a99973f4/kernel/model/attribute_view_new_item.go#L470-L506","documentation":"Error \"new attribute view item document in an encrypted notebook must be saved in the current notebook\" thrown in siyuan-note/siyuan.","triggerScenarios":"Creating a database row document in an encrypted notebook while configured to store the document in a different notebook.","commonSituations":"Occurs when adding a row to a table inside an encrypted notebook while choosing to save the new document in a different notebook, which would cross the encryption boundary.","solutions":["Save the new row's document inside the same (encrypted) notebook; cross-notebook documents are not supported for encrypted notebooks.","Choose a save path under the current notebook in the database settings."],"exampleFix":"In the database's new-item document settings, select 'Current notebook' or a path within this notebook.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"251596fc0de2f9528c00c224252fd073a99973f4","analyzedAt":"2026-08-12T21:18:37.123Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}