{"record":{"id":"e70b00232a95ebdf","repo":"octobercms/october","slug":"unknown-column","errorCode":null,"errorMessage":"Unknown column","messagePattern":"Unknown column","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/backend/behaviors/importexportcontroller/ActionImport.php","lineNumber":67,"sourceCode":"        $model->import($matches, $importOptions);\n\n        $this->vars['importResults'] = $model->getResultStats();\n        $this->vars['returnUrl'] = $this->getRedirectUrlForType('import');\n        $this->vars['sourceIndexOffset'] = $this->getImportSourceIndexOffset($importOptions['firstRowTitles']);\n    }\n\n    /**\n     * actionImportLoadColumnSampleForm\n     */\n    public function actionImportLoadColumnSampleForm()\n    {\n        if (($columnId = post('file_column_id', false)) === false) {\n            throw new ApplicationException(__(\"Missing column identifier\"));\n        }\n\n        $columns = $this->getImportFileColumns();\n        if (!array_key_exists($columnId, $columns)) {\n            throw new ApplicationException(__(\"Unknown column\"));\n        }\n\n        $path = $this->getImportFilePath();\n\n        if (!$fileFormat = post('file_format', 'json')) {\n            return null;\n        }\n\n        if ($fileFormat === 'json') {\n            $data = $this->getImportSampleColumnsFromJson($path, (int) $columnId);\n        }\n        else {\n            $data = $this->getImportSampleColumnsFromCsv($path, (int) $columnId);\n        }\n\n        // Clean up data\n        foreach ($data as $index => $sample) {\n            $data[$index] = Str::limit($sample, 100);","sourceCodeStart":49,"sourceCodeEnd":85,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/behaviors/importexportcontroller/ActionImport.php#L49-L85","documentation":"Error \"Unknown column\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/behaviors/importexportcontroller/ActionImport.php:67 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":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}