{"record":{"id":"eaa73602c71323c0","repo":"OpenBB-finance/OpenBB","slug":"chart-not-found","errorCode":null,"errorMessage":"Chart not found.","messagePattern":"Chart not found\\.","errorType":"exception","errorClass":"OpenBBError","httpStatus":null,"severity":"error","filePath":"openbb_platform/core/openbb_core/app/model/obbject.py","lineNumber":359,"sourceCode":"        -------\n        Union[Dict[Hashable, Any], List[Dict[Hashable, Any]]]\n            Dictionary of lists or list of dictionaries if orient is \"records\".\n        \"\"\"\n        df = self.to_dataframe(index=None)\n\n        results = df.to_json(\n            orient=\"records\",\n            date_format=\"iso\",\n            date_unit=\"s\",\n        )\n\n        return results  # type: ignore\n\n    def show(self, **kwargs: Any) -> None:\n        \"\"\"Display chart.\"\"\"\n        # pylint: disable=no-member\n        if not self.chart or not self.chart.fig:\n            raise OpenBBError(\"Chart not found.\")\n        kwargs.setdefault(\"command_location\", self._route or \"\")\n        show_function: Callable = getattr(self.chart.fig, \"show\")\n        show_function(**kwargs)\n\n    @classmethod\n    async def from_query(cls, query: \"Query\") -> \"OBBject\":\n        \"\"\"Create OBBject from query.\n\n        Parameters\n        ----------\n        query : Query\n            Initialized query object.\n\n        Returns\n        -------\n        OBBject[ResultsType]\n            OBBject with results.\n        \"\"\"","sourceCodeStart":341,"sourceCodeEnd":377,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/core/openbb_core/app/model/obbject.py#L341-L377","documentation":"Raised in the economic-indicators validator when the requested frequency (mapped from annual/quarter/month/day to A/Q/M/D) is not among the dataflow's available frequency values for the current country+indicator selection. Many IMF indicators are published at only one frequency, so requesting e.g. monthly for an annual-only series fails this cross-check.","triggerScenarios":"`symbol='IFS::NGDP_XDC', country='USA', frequency='month'` where GDP nominal is annual/quarter only; requesting 'day' for any standard IFS indicator; frequency values passed as raw letters ('Q') bypass the word map but are still checked against available values.","commonSituations":"Reusing one frequency across a batch of heterogeneous indicators; assuming daily because the API mentions D in its docs; word/letter mismatch such as 'quarterly' (not in the map, passed through as 'quarterly' and rejected).","solutions":["Check the `available values` list in the error message and pick one of those frequencies.","Use `frequency='all'` to fetch every frequency the indicator has and filter client-side.","For batches, query each indicator without frequency first (or with 'all') rather than forcing one value.","Use exact words annual/quarter/month/day or single letters A/Q/M/D — not variants like 'quarterly'."],"exampleFix":"# before\nres = obb.economy.economic_indicators(provider='imf', symbol='IFS::NGDP_XDC', country='USA', frequency='month')\n\n# after\nres = obb.economy.economic_indicators(provider='imf', symbol='IFS::NGDP_XDC', country='USA', frequency='quarter')","handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try:\n    res = obb.economy.economic_indicators(provider='imf', symbol=sym, country=c, frequency=f)\nexcept Exception as e:\n    if \"dimension 'frequency'\" in str(e):\n        # indicator not published at that frequency: fetch all and filter\n        res = obb.economy.economic_indicators(provider='imf', symbol=sym, country=c, frequency='all')\n    else:\n        raise","preventionTips":["Use only annual/quarter/month/day (or A/Q/M/D) — variants like 'quarterly' bypass the word map and always fail the check.","In heterogeneous batches, omit frequency or pass 'all' rather than forcing one value across indicators.","The error message lists available frequencies — capture it to drive a fallback request."],"tags":["imf","openbb","validation","frequency","sdmx","codelist"],"backgroundTag":null,"analyzedSha":"3e071fcc2cd9f891cac6040ae60296dba76dab46","analyzedAt":"2026-08-14T23:40:48.960Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}