{"record":{"id":"e6cd8def26396e1b","repo":"octobercms/october","slug":"there-was-no-data-supplied-to-export","errorCode":null,"errorMessage":"There was no data supplied to export","messagePattern":"There was no data supplied to export","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/backend/models/ExportModel.php","lineNumber":123,"sourceCode":"     * the expected output format is [column_name => Column Label]\n     */\n    protected function processColumnKeys(array $columns): array\n    {\n        if (Arr::isList($columns)) {\n            $columns = array_combine($columns, $columns);\n        }\n\n        return $columns;\n    }\n\n    /**\n     * processExportData converts a data collection to a CSV file.\n     */\n    protected function processExportData($columns, $results, $options)\n    {\n        // Validate\n        if (!$results) {\n            throw new ApplicationException(__(\"There was no data supplied to export\"));\n        }\n\n        // Extend columns\n        $columns = $this->exportExtendColumns($columns);\n\n        // Save for download\n        $fileName = uniqid('oc');\n\n        // Prepare export\n        if ($this->file_format === 'json') {\n            $dataFileName = $fileName . 'xjson';\n            $options['savePath'] = $this->getTemporaryExportPath($dataFileName);\n            $this->processExportDataAsJson($columns, $results, $options);\n        }\n        else {\n            $dataFileName = $fileName . 'xcsv';\n            $options['savePath'] = $this->getTemporaryExportPath($dataFileName);\n            $this->processExportDataAsCsv($columns, $results, $options);","sourceCodeStart":105,"sourceCodeEnd":141,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/models/ExportModel.php#L105-L141","documentation":"Error \"There was no data supplied to export\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/models/ExportModel.php:123 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"}