{"record":{"id":"708334dce8f44875","repo":"Kong/insomnia","slug":"selected-export-format-selectedformat-is-inva","errorCode":null,"errorMessage":"selected export format \"${selectedFormat}\" is invalid","messagePattern":"selected export format \"(.+?)\" is invalid","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/insomnia/src/ui/components/settings/import-export.tsx","lineNumber":211,"sourceCode":"            const insomniaProjectExportFolder = window.path.join(\n              dirPath,\n              `insomnia-export.${projectName}.${Date.now()}`,\n            );\n\n            for (const workspace of workspacesForActiveProject) {\n              const workspaceName = workspace.name.replace(/ /g, '-');\n              const fileName = window.path.join(insomniaProjectExportFolder, `${workspaceName}-${workspace._id}.yaml`);\n              const stringifiedExport = await getInsomniaV5DataExport({\n                workspaceId: workspace._id,\n                includePrivateEnvironments: shouldExportPrivateEnvironments,\n              });\n              await writeExportedFileToFileSystem(fileName, stringifiedExport);\n            }\n            break;\n          }\n\n          default: {\n            throw new Error(`selected export format \"${selectedFormat}\" is invalid`);\n          }\n        }\n        window.main.trackAnalyticsEvent({ event: AnalyticsEvent.exportCompleted });\n      } catch (err) {\n        showError({\n          title: 'Export Failed',\n          error: err,\n          message: 'Export failed due to an unexpected error',\n        });\n        return;\n      }\n    },\n  });\n};\n\nexport const exportMockServerToFile = async (workspace: Workspace) => {\n  const fileName = await showSaveExportedFileDialog({\n    exportedFileNamePrefix: workspace.name,","sourceCodeStart":193,"sourceCodeEnd":229,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia/src/ui/components/settings/import-export.tsx#L193-L229","documentation":"Error \"selected export format \"${selectedFormat}\" is invalid\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia/src/ui/components/settings/import-export.tsx:211 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d9bb2b0142600f21309832daea3317942d285984","analyzedAt":"2026-08-26T18:04:05.187Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}