siyuan-note/siyuan · error
clone attribute view item [%s] failed
Error message
clone attribute view item [%s] failed
What it means
Error "clone attribute view item [%s] failed" thrown in siyuan-note/siyuan.
Source
Thrown at kernel/model/attribute_view_new_item.go:217
var items []*itemDoc
ret := &CreateAttributeViewItemDocsResult{}
for _, itemID := range itemIDs {
if "" == itemID || seen[itemID] {
continue
}
seen[itemID] = true
value := attrView.GetBlockValue(itemID)
if nil == value || !value.IsDetached || nil == value.Block {
ret.SkippedItemIDs = append(ret.SkippedItemIDs, itemID)
continue
}
preview, resolveErr := resolveAttributeViewItemDocument(blockID, value.Block.Content, itemTemplate, createdAt)
if nil != resolveErr {
return nil, resolveErr
}
original := value.Clone()
if nil == original {
return nil, fmt.Errorf("clone attribute view item [%s] failed", itemID)
}
items = append(items, &itemDoc{itemID: itemID, original: original, preview: preview})
ret.Warnings = append(ret.Warnings, preview.Warnings...)
}
if 0 == len(items) {
return ret, nil
}
cleanupCreatedDocs := func() error {
var cleanupErr error
for i := len(items) - 1; 0 <= i; i-- {
if "" != items[i].docID {
cleanupErr = errors.Join(cleanupErr, removeCreatedNewItemDoc(items[i].docID))
}
}
return cleanupErr
}
for _, item := range items {View on GitHub (pinned to 251596fc0d)
Solutions
- Retry the operation; cloning can fail on transient I/O or lock contention.
- Check the kernel log for the underlying clone error and ensure the source item still exists.
Example fix
Reload the database view to confirm the source row exists, then repeat the duplicate-row action.
When it happens
Trigger: Duplicating a database row whose underlying block or document could not be cloned (source removed or I/O failure).
Common situations: Occurs when duplicating an attribute view row fails while cloning the source block tree, typically because the source document is missing, locked, or corrupted.
AI-assisted analysis of siyuan-note/siyuan@251596fc0d (2026-08-12).
Data as JSON: /api/errors/6de217357d0608f4.
Report an issue: GitHub.