{"record":{"id":"73e7a17bae82786d","repo":"unopim/unopim","slug":"unsupported-file-type-filetype","errorCode":null,"errorMessage":"Unsupported file type: $fileType","messagePattern":"Unsupported file type: \\$fileType","errorType":"exception","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"packages/Webkul/DataTransfer/src/Helpers/Import.php","lineNumber":668,"sourceCode":"            case 'csv':\n                $writer = new Csv($spreadsheet);\n\n                $writer->setDelimiter($this->import->field_separator);\n\n                break;\n\n            case 'xls':\n                $writer = new Xls($spreadsheet);\n\n                break;\n\n            case 'xlsx':\n                $writer = new Xlsx($spreadsheet);\n\n                break;\n\n            default:\n                throw new \\InvalidArgumentException(\"Unsupported file type: $fileType\");\n        }\n        $errorFilePath = 'imports/'.time().'-error-report.'.$fileType;\n\n        $writer->save(Storage::disk('private')->path($errorFilePath));\n\n        return $errorFilePath;\n    }\n\n    /**\n     * Validates source file and returns validation result\n     */\n    public function getTypeImporter(): AbstractImporter\n    {\n        $jobInstance = $this->import->jobInstance;\n\n        if (! $this->typeImporter) {\n            $entityType = $this->resolveEntityType($jobInstance->entity_type);\n            $importerConfig = config('importers.'.$entityType);","sourceCodeStart":650,"sourceCodeEnd":686,"githubUrl":"https://github.com/unopim/unopim/blob/c27a402253ed2bcee0f3eb16319fa7fc5eec5ffd/packages/Webkul/DataTransfer/src/Helpers/Import.php#L650-L686","documentation":"Error \"Unsupported file type: $fileType\" thrown in unopim/unopim.","triggerScenarios":"Thrown at packages/Webkul/DataTransfer/src/Helpers/Import.php:668 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":"c27a402253ed2bcee0f3eb16319fa7fc5eec5ffd","analyzedAt":"2026-08-21T04:19:34.141Z","schemaVersion":2},"datasetVersion":"2026-08-21T13:17:26.733Z"}