{"record":{"id":"1681e4e6707553a0","repo":"octobercms/october","slug":"please-specify-the-modelclass-property-for-type","errorCode":null,"errorMessage":"Please specify the modelClass property for :type","messagePattern":"Please specify the modelClass property for :type","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/backend/behaviors/ImportExportController.php","lineNumber":313,"sourceCode":"        }\n\n        return null;\n    }\n\n    /**\n     * getModelForType\n     */\n    protected function getModelForType($type)\n    {\n        $cacheProperty = $type.'Model';\n\n        if ($this->{$cacheProperty} !== null) {\n            return $this->{$cacheProperty};\n        }\n\n        $modelClass = $this->getConfig($type.'[modelClass]');\n        if (!$modelClass) {\n            throw new ApplicationException(__(\"Please specify the modelClass property for :type\", [\n                'type' => $type\n            ]));\n        }\n\n        $model = App::make($modelClass);\n        $this->controller->importExportExtendModel($model);\n\n        return $this->{$cacheProperty} = $model;\n    }\n\n    /**\n     * makeListColumns\n     */\n    protected function makeListColumns($config, $model)\n    {\n        $config = $this->makeConfig($config);\n        $config->model = $model;\n","sourceCodeStart":295,"sourceCodeEnd":331,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/behaviors/ImportExportController.php#L295-L331","documentation":"Error \"Please specify the modelClass property for :type\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/behaviors/ImportExportController.php:313 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"}