firefly-iii/firefly-iii · error · FireflyException
Data-set is missing the "%s"-variable.
Error message
Data-set is missing the "%s"-variable.
What it means
Error "Data-set is missing the "%s"-variable." thrown in firefly-iii/firefly-iii.
Source
Thrown at app/Support/Chart/ChartData.php:50
class ChartData
{
private array $series = [];
/**
* @throws FireflyException
*/
public function add(array $data): void
{
if (array_key_exists('currency_id', $data)) {
$data['currency_id'] = (string) $data['currency_id'];
}
if (array_key_exists('primary_currency_id', $data)) {
$data['primary_currency_id'] = (string) $data['primary_currency_id'];
}
$required = ['start', 'date', 'end', 'entries'];
foreach ($required as $field) {
if (!array_key_exists($field, $data)) {
throw new FireflyException(sprintf('Data-set is missing the "%s"-variable.', $field));
}
}
$this->series[] = $data;
}
public function render(): array
{
if (0 === count($this->series)) {
throw new FireflyException('No series added to chart');
}
return $this->series;
}
}
View on GitHub (pinned to fd8791d08d)
When it happens
Trigger: Thrown at app/Support/Chart/ChartData.php:50 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of firefly-iii/firefly-iii@fd8791d08d (2026-08-17).
Data as JSON: /api/errors/5019a7d664fe8503.
Report an issue: GitHub.