{"record":{"id":"75f46c191af8e33f","repo":"siyuan-note/siyuan","slug":"attribute-view-item-s-not-found-75f46c","errorCode":null,"errorMessage":"attribute view item [%s] not found","messagePattern":"attribute view item \\[(.+?)\\] not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"kernel/model/attribute_view_render.go","lineNumber":386,"sourceCode":"\t\t\tret[keyValues.Key.Rollup.KeyID] = struct{}{}\n\t\t}\n\t}\n\treturn\n}\n\nfunc getAttributeViewPasteRowsFromTable(table *av.Table, startItemID string, count int) (rows []*av.TableRow, err error) {\n\tif count < 1 {\n\t\treturn nil, fmt.Errorf(\"invalid paste row count [%d]\", count)\n\t}\n\tstart := -1\n\tfor i, row := range table.Rows {\n\t\tif row.ID == startItemID {\n\t\t\tstart = i\n\t\t\tbreak\n\t\t}\n\t}\n\tif 0 > start {\n\t\treturn nil, fmt.Errorf(\"attribute view item [%s] not found\", startItemID)\n\t}\n\tend := start + min(count, len(table.Rows)-start)\n\treturn table.Rows[start:end], nil\n}\n\nfunc 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) {\n\tif !ast.IsNodeIDPattern(avID) {\n\t\terr = ErrInvalidID\n\t\treturn\n\t}\n\n\twaitForSyncingStorages()\n\n\t// 加密笔记本的 AV 定义存笔记本级路径，通过 blockID 反查 boxID\n\tavBoxID := \"\"\n\tif \"\" != blockID {\n\t\tbt := treenode.GetBlockTree(blockID)\n\t\tif nil == bt {","sourceCodeStart":368,"sourceCodeEnd":404,"githubUrl":"https://github.com/siyuan-note/siyuan/blob/251596fc0de2f9528c00c224252fd073a99973f4/kernel/model/attribute_view_render.go#L368-L404","documentation":"Error \"attribute view item [%s] not found\" thrown in siyuan-note/siyuan.","triggerScenarios":"Editing or moving a database row that no longer exists in the attribute view.","commonSituations":"Occurs when pasting or updating a row that was deleted in another tab or device before the request completed.","solutions":["Refresh the attribute view; the row may have been deleted by another client.","Use a current item ID from a fresh render of the attribute view."],"exampleFix":"Reload the database view and retry the edit on a row that is currently visible.","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"}