siyuan-note/siyuan · error
clone attribute view item failed
Error message
clone attribute view item failed
What it means
Error "clone attribute view item failed" thrown in siyuan-note/siyuan.
Source
Thrown at kernel/model/attribute_view_new_item.go:297
var cleanupErr error
for _, item := range items {
_, _, detachErr := replaceAttributeViewBlock(avID, item.itemID, "", true, nil)
cleanupErr = errors.Join(cleanupErr, detachErr)
_, restoreErr := UpdateAttributeViewCell(nil, avID, item.original.KeyID, item.itemID, item.original)
cleanupErr = errors.Join(cleanupErr, restoreErr)
}
cleanupErr = errors.Join(cleanupErr, cleanupCreatedDocs())
ReloadAttrView(avID)
return nil, newItemCreationError(err, cleanupErr)
}
ret.Transaction = tx
return ret, nil
}
func newBoundAttributeViewItemValue(original *av.Value, docID, icon string) (*av.Value, error) {
bound := original.Clone()
if nil == bound || nil == bound.Block {
return nil, errors.New("clone attribute view item failed")
}
bound.IsDetached = false
bound.Block.ID = docID
bound.Block.Content = ""
bound.Block.Icon = icon
return bound, nil
}
func lockAttributeViewItemDocs(avID string) func() {
lockValue, _ := attributeViewItemDocsLocks.LoadOrStore(avID, &sync.Mutex{})
lock := lockValue.(*sync.Mutex)
lock.Lock()
return lock.Unlock
}
func attributeViewItemDocumentTemplate(attrView *av.AttributeView, saveMode string) (*av.NewItemTemplate, error) {
switch saveMode {
case CreateAttributeViewItemDocsSaveModeSubDoc:View on GitHub (pinned to 251596fc0d)
Solutions
- Retry the operation; check the kernel log for the root cause of the clone failure.
- Verify the attribute view and its source blocks are intact (rebuild the attribute view if corrupted).
Example fix
Close other editors of the same database, reload, and repeat the row duplication.
When it happens
Trigger: A database row clone fails because the source item data or its block content could not be copied.
Common situations: Occurs when adding a new row from a template fails during the block-clone step, for example when the template document was removed mid-operation.
AI-assisted analysis of siyuan-note/siyuan@251596fc0d (2026-08-12).
Data as JSON: /api/errors/07b8d46acca15409.
Report an issue: GitHub.