{"record":{"id":"167f0eea069685db","repo":"siyuan-note/siyuan","slug":"parse-created-s-failed-w","errorCode":null,"errorMessage":"parse created [%s] failed: %w","messagePattern":"parse created \\[(.+?)\\] failed: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"kernel/model/attribute_view_render.go","lineNumber":1076,"sourceCode":"\t}\n\tif len(matches) != 1 {\n\t\treturn \"\", fmt.Errorf(\"attribute view snapshot context is ambiguous [%s]\", avID)\n\t}\n\tboxID := avBoxIDFromRepoPath(matches[0].Path)\n\tif IsEncryptedBox(boxID) {\n\t\treturn boxID, nil\n\t}\n\treturn \"\", nil\n}\n\n// ResolveHistoryAttributeViewBoxID 返回历史属性视图的唯一加密笔记本上下文。\nfunc ResolveHistoryAttributeViewBoxID(avID, created string) (string, error) {\n\tif !ast.IsNodeIDPattern(avID) {\n\t\treturn \"\", ErrInvalidID\n\t}\n\tcreatedUnix, err := strconv.ParseInt(created, 10, 64)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"parse created [%s] failed: %w\", created, err)\n\t}\n\tdirPrefix := time.Unix(createdUnix, 0).Format(\"2006-01-02-150405\")\n\tmatches, err := filepath.Glob(filepath.Join(util.HistoryDir, dirPrefix+\"*\"))\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tvar boxIDs []string\n\tfor _, historyDir := range matches {\n\t\tif gulu.File.IsExist(filepath.Join(historyDir, \"storage\", \"av\", avID+\".json\")) {\n\t\t\tboxIDs = append(boxIDs, \"\")\n\t\t}\n\t\tentries, _ := os.ReadDir(historyDir)\n\t\tfor _, entry := range entries {\n\t\t\tif !entry.IsDir() || !ast.IsNodeIDPattern(entry.Name()) {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tcandidate := filepath.Join(historyDir, entry.Name(), \"storage\", \"av\", avID+\".json\")\n\t\t\tif gulu.File.IsExist(candidate) {","sourceCodeStart":1058,"sourceCodeEnd":1094,"githubUrl":"https://github.com/siyuan-note/siyuan/blob/251596fc0de2f9528c00c224252fd073a99973f4/kernel/model/attribute_view_render.go#L1058-L1094","documentation":"Error \"parse created [%s] failed: %w\" thrown in siyuan-note/siyuan.","triggerScenarios":"Loading an attribute view snapshot whose created-time field cannot be parsed.","commonSituations":"Occurs when an attribute view snapshot contains a created timestamp that cannot be parsed, usually from a corrupted or hand-edited snapshot file.","solutions":["Ensure the snapshot's created timestamp is a valid date/time string.","If the snapshot data is corrupted, restore the attribute view from an earlier history or re-create it."],"exampleFix":"Fix the 'created' value in the snapshot data to a parseable timestamp such as 2024-01-01 10:00:00.","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"}