{"record":{"id":"887f07efb3d78987","repo":"siyuan-note/siyuan","slug":"unsupported-version","errorCode":null,"errorMessage":"unsupported version","messagePattern":"unsupported version","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/src/config/entryVisibility/ui.ts","lineNumber":902,"sourceCode":"            saveEntryVisibility(config);\n            renderProfileCards(root);\n            leaveEditor();\n        }\n    });\n    const nameInput = view.querySelector<HTMLInputElement>(\"[data-profile-field='name']\");\n    if (creating && nameInput) {\n        nameInput.select();\n    }\n};\n\nconst importProfiles = async (root: HTMLElement, file: File) => {\n    if (!getHostCapabilities().importExport) {\n        return;\n    }\n    try {\n        const data = JSON.parse(await file.text()) as TImportFile;\n        if (!isEntryVisibilityImportVersionSupported(data.version, ENTRY_VISIBILITY_VERSION)) {\n            throw new Error(\"unsupported version\");\n        }\n        let imported: TEntryVisibilityImportProfile[];\n        if (data.type === \"siyuan-entry-profile\" && data.profile) {\n            imported = [data.profile];\n        } else if (data.type === \"siyuan-entry-profile-bundle\" && Array.isArray(data.profiles)) {\n            imported = data.profiles;\n        } else {\n            throw new Error(\"invalid type\");\n        }\n        const config = cloneConfig();\n        let importedCount = 0;\n        imported.forEach((item) => {\n            const profile = normalizeEntryVisibilityImportProfile(item, data.version, createEntryOrderSnapshot());\n            if (!profile) {\n                return;\n            }\n            config.profiles.push({\n                id: genUUID(),","sourceCodeStart":884,"sourceCodeEnd":920,"githubUrl":"https://github.com/siyuan-note/siyuan/blob/9f775e8a12daef8255556097396f9b2739078892/app/src/config/entryVisibility/ui.ts#L884-L920","documentation":"Thrown during profile import when the file's version field fails isEntryVisibilityImportVersionSupported against ENTRY_VISIBILITY_VERSION — the JSON parsed fine but was written by an incompatible entry-visibility schema version, and importing it could corrupt persisted visibility/order configuration.","triggerScenarios":"Thrown at app/src/config/entryVisibility/ui.ts:902 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-export the profiles from a SiYuan version whose ENTRY_VISIBILITY_VERSION matches this build","Manually adjust the file's version field only if the schema is known to be compatible","Check for a SiYuan update that supports the file's version"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"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"}