{"record":{"id":"fa28e216d56cf94d","repo":"octobercms/october","slug":"please-match-some-columns-first","errorCode":null,"errorMessage":"Please match some columns first.","messagePattern":"Please match some columns first\\.","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/backend/behaviors/importexportcontroller/ActionImport.php","lineNumber":247,"sourceCode":"    }\n\n    /**\n     * importIsColumnRequired\n     */\n    public function importIsColumnRequired($columnName)\n    {\n        $model = $this->importGetModel();\n\n        return $model->isAttributeRequired($columnName);\n    }\n\n    /**\n     * checkRequiredImportColumns\n     */\n    protected function checkRequiredImportColumns()\n    {\n        if (!$matches = post('column_match', [])) {\n            throw new ApplicationException(__(\"Please match some columns first.\"));\n        }\n\n        $dbColumns = $this->getImportDbColumns();\n        foreach ($dbColumns as $column => $label) {\n            if (!$this->importIsColumnRequired($column)) {\n                continue;\n            }\n\n            $found = false;\n            foreach ($matches as $matchedColumns) {\n                if (in_array($column, $matchedColumns)) {\n                    $found = true;\n                    break;\n                }\n            }\n\n            if (!$found) {\n                throw new ApplicationException(__(\"Please specify a match for the required field :label.\", [","sourceCodeStart":229,"sourceCodeEnd":265,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/behaviors/importexportcontroller/ActionImport.php#L229-L265","documentation":"Error \"Please match some columns first.\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/behaviors/importexportcontroller/ActionImport.php:247 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"}