{"record":{"id":"b1fedf535d277c4d","repo":"firefly-iii/firefly-iii","slug":"currency-d-not-found","errorCode":null,"errorMessage":"Currency #%d not found.","messagePattern":"Currency #(.+?) not found\\.","errorType":"exception","errorClass":"FireflyException","httpStatus":500,"severity":"error","filePath":"app/Support/JsonApi/Enrichments/AccountEnrichment.php","lineNumber":369,"sourceCode":"        ;\n\n        /** @var array $entry */\n        foreach ($set as $entry) {\n            $this->meta[(int) $entry['account_id']][$entry['name']] = (string) $entry['data'];\n            if ('currency_id' === $entry['name']) {\n                $this->currencies[(int) $entry['data']] = true;\n            }\n        }\n        if (count($this->currencies) > 0) {\n            $currencies = TransactionCurrency::query()->whereIn('id', array_keys($this->currencies))->get();\n            foreach ($currencies as $currency) {\n                $this->currencies[(int) $currency->id] = $currency;\n            }\n        }\n        $this->currencies[0] = $this->primaryCurrency;\n        foreach ($this->currencies as $id => $currency) {\n            if (true === $currency) {\n                throw new FireflyException(sprintf('Currency #%d not found.', $id));\n            }\n        }\n    }\n\n    private function collectNotes(): void\n    {\n        $notes = Note::query()\n            ->whereIn('noteable_id', $this->ids)\n            ->whereNotNull('notes.text')\n            ->where('notes.text', '!=', '')\n            ->where('noteable_type', Account::class)\n            ->get(['notes.noteable_id', 'notes.text'])\n            ->toArray()\n        ;\n        foreach ($notes as $note) {\n            $this->notes[(int) $note['noteable_id']] = (string) $note['text'];\n        }\n","sourceCodeStart":351,"sourceCodeEnd":387,"githubUrl":"https://github.com/firefly-iii/firefly-iii/blob/fd8791d08d4d9e6467519a78048cd038e26b8878/app/Support/JsonApi/Enrichments/AccountEnrichment.php#L351-L387","documentation":"Error \"Currency #%d not found.\" thrown in firefly-iii/firefly-iii.","triggerScenarios":"Thrown at app/Support/JsonApi/Enrichments/AccountEnrichment.php:369 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"}