{"record":{"id":"d740648bbf864bb1","repo":"octobercms/october","slug":"please-specify-a-match-for-the-required-field-lab","errorCode":null,"errorMessage":"Please specify a match for the required field :label.","messagePattern":"Please specify a match for the required field :label\\.","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/backend/behaviors/importexportcontroller/ActionImport.php","lineNumber":265,"sourceCode":"            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.\", [\n                    'label' => __($label)\n                ]));\n            }\n        }\n    }\n}\n","sourceCodeStart":247,"sourceCodeEnd":272,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/behaviors/importexportcontroller/ActionImport.php#L247-L272","documentation":"After the initial match check, checkRequiredImportColumns verifies every model-required column appears in at least one match group; an unmatched required column throws this ApplicationException naming :label. It enforces required-attribute integrity of the import.","triggerScenarios":"Thrown at modules/backend/behaviors/importexportcontroller/ActionImport.php:265 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Map the named required column to a source file column in the import UI","Mark the model attribute as not required if it truly is optional"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","contentChangedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}