{"record":{"id":"3b808a2d44d54043","repo":"Kong/insomnia","slug":"project-creation-failed","errorCode":null,"errorMessage":"Project creation failed","messagePattern":"Project creation failed","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/insomnia/src/ui/components/modals/import-modal/import-projects-modal.tsx","lineNumber":588,"sourceCode":"          });\n        };\n\n        // Only skip the project when it's not in pending status, otherwise we need to add a new status or more to tell the user that the project is created but not imported or xxx.\n        if (latestProcessingCancelled.current || unmountRef.current) {\n          updateProjectItem({ status: ImportStatus.SKIPPED });\n          return;\n        }\n\n        try {\n          updateProjectItem({ status: ImportStatus.CREATING });\n\n          const createdProjectId = await createProject(organizationId, {\n            storageType: 'remote',\n            name: project.name,\n          });\n\n          if (!createdProjectId) {\n            throw new Error('Project creation failed');\n          }\n          console.debug('[Bulk Project Import] Created project ID:', createdProjectId);\n\n          updateProjectItem({ status: ImportStatus.IMPORTING, id: createdProjectId });\n\n          const filePaths = await project.folder.getFilePaths();\n          // Use archive.json to identify Postman environment files, only consider the first one currently.\n          const archiveFileIndex = filePaths.findIndex(\n            filePath => filePath.endsWith('/archive.json') || filePath.endsWith('\\\\archive.json'),\n          );\n\n          let postmanArchiveFile: string | null = null;\n          if (archiveFileIndex !== -1) {\n            postmanArchiveFile = filePaths[archiveFileIndex];\n            filePaths.splice(archiveFileIndex, 1);\n          }\n\n          if (!filePaths.length) {","sourceCodeStart":570,"sourceCodeEnd":606,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia/src/ui/components/modals/import-modal/import-projects-modal.tsx#L570-L606","documentation":"Error \"Project creation failed\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia/src/ui/components/modals/import-modal/import-projects-modal.tsx:588 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"}