{"record":{"id":"8ca05dca1fe0bdc6","repo":"siyuan-note/siyuan","slug":"errspectoonew","errorCode":"ErrSpecTooNew","errorMessage":"attribute view spec is too new","messagePattern":"attribute view spec is too new","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"kernel/av/av.go","lineNumber":1391,"sourceCode":"\t\t}\n\t}\n\treturn\n}\n\nfunc GetAttributeViewI18n(key string) string {\n\treturn util.AttrViewLangs[util.Lang][key].(string)\n}\n\nvar (\n\tErrAttributeViewNotFound  = errors.New(\"attribute view not found\")\n\tErrInvalidAttributeViewID = errors.New(\"invalid attribute view id\")\n\tErrInvalidBoxID           = errors.New(\"invalid box id\")\n\tErrViewNotFound           = errors.New(\"view not found\")\n\tErrKeyNotFound            = errors.New(\"key not found\")\n\tErrItemNotFound           = errors.New(\"item not found\")\n\tErrWrongLayoutType        = errors.New(\"wrong layout type\")\n\tErrInvalidColumnAlign     = errors.New(\"invalid column align\")\n\tErrSpecTooNew             = errors.New(\"attribute view spec is too new\")\n\tErrRichTextSpecMismatch   = errors.New(\"attribute view rich text requires storage spec 9\")\n\tErrFilterTooDeep          = errors.New(\"filter nesting depth exceeds the maximum allowed\")\n)\n\nconst (\n\tNodeAttrNameAvs        = \"custom-avs\"                  // 用于标记块所属的属性视图，逗号分隔 av id\n\tNodeAttrView           = \"custom-sy-av-view\"           // 用于标记块所属的属性视图视图 view id Database block support specified view https://github.com/siyuan-note/siyuan/issues/10443\n\tNodeAttrVisibleViewIDs = \"custom-sy-av-visible-views\"  // 用于标记数据库块显示的视图 ID，逗号分隔\n\tNodeAttrContextFilter  = \"custom-sy-av-context-filter\" // 用于保存数据库块独有的上下文筛选配置\n\tNodeAttrViewStaticText = \"custom-sy-av-s-text\"         // 用于标记块所属的属性视图静态文本 Database-bound block primary key supports setting static anchor text https://github.com/siyuan-note/siyuan/issues/10049\n\n\tNodeAttrViewNames = \"av-names\" // 用于临时标记块所属的属性视图名称，空格分隔\n)\n","sourceCodeStart":1373,"sourceCodeEnd":1405,"githubUrl":"https://github.com/siyuan-note/siyuan/blob/9f775e8a12daef8255556097396f9b2739078892/kernel/av/av.go#L1373-L1405","documentation":"ErrSpecTooNew means the attribute view file's storage spec version is higher than the running kernel supports — the data was written by a newer SiYuan version. Rendering, checking (CheckSpec), and related operations abort rather than misinterpret unknown fields or formats.","triggerScenarios":"renderAttrView or CheckSpec reading a .av JSON whose spec field exceeds the kernel's current maximum; opening a synced workspace on a machine with an older SiYuan build; setGetBlockInfoError surfacing the failure to block info consumers.","commonSituations":"Downgrading the SiYuan client after another device already upgraded and wrote newer-spec attribute views; beta/insider build creating views an older release cannot parse; restoring an old snapshot over a newer workspace without rolling back the .av files.","solutions":["Upgrade SiYuan (kernel and frontend) to a version whose supported spec >= the file's spec","Stop writing to the workspace with the older client to avoid corrupting newer data","Restore matching-version data or re-export/re-create the attribute view if downgrade is mandatory"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"if avSpec > maxSupportedSpec {\n    promptUpgradeClient()\n}","typeGuard":null,"tryCatchPattern":"if err := renderAttrView(...); err != nil {\n    if errors.Is(err, av.ErrSpecTooNew) {\n        // surface language pack msg 215: ask user to upgrade SiYuan\n    }\n}","preventionTips":["Keep all synced devices on the same or compatible SiYuan version","Avoid downgrading clients on workspaces already written by newer builds","Check spec version before programmatic writes"],"tags":["attribute-view","version-compat","spec"],"backgroundTag":"incompatible-source-type","analyzedSha":"9f775e8a12daef8255556097396f9b2739078892","analyzedAt":"2026-09-19T03:17:15.984Z","contentChangedAt":"2026-09-19T03:17:15.984Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}