{"record":{"id":"9922b03f2976eacc","repo":"usebruno/bruno","slug":"no-valid-collections-found-in-the-selected-files","errorCode":null,"errorMessage":"No valid collections found in the selected files","messagePattern":"No valid collections found in the selected files","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-app/src/components/Sidebar/ImportCollection/FileTab.js","lineNumber":133,"sourceCode":"          } else if (isOpenCollection(data)) {\n            type = 'opencollection';\n          } else if (isBrunoCollection(data)) {\n            type = 'bruno';\n          }\n\n          if (type) {\n            filesData.push({ file, data, type });\n          }\n        } catch (err) {\n          console.warn(`Failed to process file ${file.name}:`, err);\n        }\n      }\n\n      if (filesData.length > 0) {\n        // Pass raw filesData to be processed in BulkImportCollectionLocation\n        handleSubmit({ filesData, type: 'multiple' });\n      } else {\n        throw new Error('No valid collections found in the selected files');\n      }\n    } catch (err) {\n      toastError(err, 'Import multiple files failed');\n    } finally {\n      setIsLoading(false);\n    }\n  };\n\n  const processFile = async (file) => {\n    setIsLoading(true);\n    try {\n      const data = await convertFileToObject(file);\n\n      if (!data) {\n        throw new Error('Failed to parse file content');\n      }\n\n      let type = null;","sourceCodeStart":115,"sourceCodeEnd":151,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-app/src/components/Sidebar/ImportCollection/FileTab.js#L115-L151","documentation":"Error \"No valid collections found in the selected files\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-app/src/components/Sidebar/ImportCollection/FileTab.js:133 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Select files that contain actual collection data (bruno.json, Postman/Insomnia exports).","Verify the selected files are not empty or unrelated documents."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9bdd81c7bdc57006e5f5ebffb79321a8d979f712","analyzedAt":"2026-08-13T04:09:25.751Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}