siyuan-note/siyuan · error
new attribute view item document in an encrypted notebook mu
Error message
new attribute view item document in an encrypted notebook must be saved in the current notebook
What it means
Error "new attribute view item document in an encrypted notebook must be saved in the current notebook" thrown in siyuan-note/siyuan.
Source
Thrown at kernel/model/attribute_view_new_item.go:488
}
if nil == Conf.Box(boxID) {
return "", "", false, ErrBoxNotFound
}
if err = validateNewItemSaveBox(currentBoxID, boxID); nil != err {
return "", "", false, err
}
return boxID, location.PathTemplate, false, nil
}
inherited = true
boxID, pathTemplate = ResolveDocCreateSaveLocation(currentBoxID)
err = validateNewItemSaveBox(currentBoxID, boxID)
return
}
func validateNewItemSaveBox(currentBoxID, targetBoxID string) error {
if IsEncryptedBox(currentBoxID) && currentBoxID != targetBoxID {
return errors.New("new attribute view item document in an encrypted notebook must be saved in the current notebook")
}
return nil
}
func newItemParentPathTemplate(renderedPath string) string {
if "" == renderedPath || strings.HasSuffix(renderedPath, "/") {
return renderedPath
}
isAbsolute := strings.HasPrefix(renderedPath, "/")
segments := strings.FieldsFunc(renderedPath, func(r rune) bool { return '/' == r })
if 1 >= len(segments) {
if isAbsolute {
return "/"
}
return ""
}
parent := strings.Join(segments[:len(segments)-1], "/")
if isAbsolute {View on GitHub (pinned to 251596fc0d)
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.
Example fix
In the database's new-item document settings, select 'Current notebook' or a path within this notebook.
When it happens
Trigger: Creating a database row document in an encrypted notebook while configured to store the document in a different notebook.
Common situations: 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.
AI-assisted analysis of siyuan-note/siyuan@251596fc0d (2026-08-12).
Data as JSON: /api/errors/d224d66be1adf20a.
Report an issue: GitHub.