{"record":{"id":"5019a7d664fe8503","repo":"firefly-iii/firefly-iii","slug":"data-set-is-missing-the-s-variable","errorCode":null,"errorMessage":"Data-set is missing the \"%s\"-variable.","messagePattern":"Data-set is missing the \"(.+?)\"-variable\\.","errorType":"exception","errorClass":"FireflyException","httpStatus":500,"severity":"error","filePath":"app/Support/Chart/ChartData.php","lineNumber":50,"sourceCode":"class ChartData\n{\n    private array $series = [];\n\n    /**\n     * @throws FireflyException\n     */\n    public function add(array $data): void\n    {\n        if (array_key_exists('currency_id', $data)) {\n            $data['currency_id'] = (string) $data['currency_id'];\n        }\n        if (array_key_exists('primary_currency_id', $data)) {\n            $data['primary_currency_id'] = (string) $data['primary_currency_id'];\n        }\n        $required       = ['start', 'date', 'end', 'entries'];\n        foreach ($required as $field) {\n            if (!array_key_exists($field, $data)) {\n                throw new FireflyException(sprintf('Data-set is missing the \"%s\"-variable.', $field));\n            }\n        }\n\n        $this->series[] = $data;\n    }\n\n    public function render(): array\n    {\n        if (0 === count($this->series)) {\n            throw new FireflyException('No series added to chart');\n        }\n\n        return $this->series;\n    }\n}\n","sourceCodeStart":32,"sourceCodeEnd":66,"githubUrl":"https://github.com/firefly-iii/firefly-iii/blob/fd8791d08d4d9e6467519a78048cd038e26b8878/app/Support/Chart/ChartData.php#L32-L66","documentation":"Error \"Data-set is missing the \"%s\"-variable.\" thrown in firefly-iii/firefly-iii.","triggerScenarios":"Thrown at app/Support/Chart/ChartData.php:50 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":"fd8791d08d4d9e6467519a78048cd038e26b8878","analyzedAt":"2026-08-17T02:14:53.848Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}