{"record":{"id":"f095b717597b17ab","repo":"octobercms/october","slug":"missing-column-identifier","errorCode":null,"errorMessage":"Missing column identifier","messagePattern":"Missing column identifier","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/backend/behaviors/importexportcontroller/ActionImport.php","lineNumber":62,"sourceCode":"\n        $importOptions = $this->getFormatOptionsForModel();\n        $importOptions['sessionKey'] = $this->importUploadFormWidget->getSessionKey();\n\n        $model->file_format = $importOptions['fileFormat'] ?? 'json';\n        $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);","sourceCodeStart":44,"sourceCodeEnd":80,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/behaviors/importexportcontroller/ActionImport.php#L44-L80","documentation":"Error \"Missing column identifier\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/behaviors/importexportcontroller/ActionImport.php:62 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"}