siyuan-note/siyuan · error
invalid paste row count [%d]
Error message
invalid paste row count [%d]
What it means
Error "invalid paste row count [%d]" thrown in siyuan-note/siyuan.
Source
Thrown at kernel/model/attribute_view_render.go:376
ret = map[string]struct{}{}
for _, attrView := range attrViews {
if nil == attrView {
continue
}
for _, keyValues := range attrView.KeyValues {
if nil == keyValues || nil == keyValues.Key || av.KeyTypeRollup != keyValues.Key.Type ||
nil == keyValues.Key.Rollup || "" == keyValues.Key.Rollup.KeyID {
continue
}
ret[keyValues.Key.Rollup.KeyID] = struct{}{}
}
}
return
}
func getAttributeViewPasteRowsFromTable(table *av.Table, startItemID string, count int) (rows []*av.TableRow, err error) {
if count < 1 {
return nil, fmt.Errorf("invalid paste row count [%d]", count)
}
start := -1
for i, row := range table.Rows {
if row.ID == startItemID {
start = i
break
}
}
if 0 > start {
return nil, fmt.Errorf("attribute view item [%s] not found", startItemID)
}
end := start + min(count, len(table.Rows)-start)
return table.Rows[start:end], nil
}
func RenderAttributeViewWithTarget(blockID, avID, viewID, query string, page, pageSize int, groupPaging map[string]any, initialLayout av.LayoutType, createIfNotExist, ignoreRows bool, targetItemID, targetGroupID string) (viewable av.Viewable, attrView *av.AttributeView, target *AttributeViewRenderTarget, err error) {
if !ast.IsNodeIDPattern(avID) {
err = ErrInvalidIDView on GitHub (pinned to 251596fc0d)
Solutions
- Paste a positive, reasonable number of rows; the clipboard payload must decode to at least one valid row.
- Ensure the clipboard content actually came from an attribute view row copy.
Example fix
Copy rows again from the source table and paste into the target database view.
When it happens
Trigger: Pasting into a table view with a row count that is zero, negative, or otherwise invalid.
Common situations: Occurs when pasting clipboard data whose row count is zero or negative into a table view.
AI-assisted analysis of siyuan-note/siyuan@251596fc0d (2026-08-12).
Data as JSON: /api/errors/3cb5ba47f2572b00.
Report an issue: GitHub.