{"record":{"id":"c91180b846755df9","repo":"OpenBB-finance/OpenBB","slug":"cannot-mix-tables-and-indicators-in-the-same-reque","errorCode":null,"errorMessage":"Cannot mix tables and indicators in the same request. Got tables: {tables} and indicators: {[f'{d}::{c}' for d, c in indicators]}","messagePattern":"Cannot mix tables and indicators in the same request\\. Got tables: (.+?) and indicators: (.+?)::(.+?)' for d, c in indicators\\]\\}","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"openbb_platform/providers/imf/openbb_imf/models/economic_indicators.py","lineNumber":365,"sourceCode":"            if identifier.startswith(\"H_\"):\n                is_table = True\n            else:\n                metadata = ImfMetadata()\n                try:\n                    hierarchies = metadata.get_dataflow_hierarchies(dataflow)\n                    hierarchy_ids = {h.get(\"id\") for h in hierarchies}\n                    if identifier in hierarchy_ids:\n                        is_table = True\n                except Exception:  # noqa\n                    pass  # If we can't check, assume it's an indicator\n\n            if is_table:\n                tables.append(sym)\n            else:\n                indicators.append((dataflow, identifier))\n\n        if tables and indicators:\n            raise ValueError(\n                \"Cannot mix tables and indicators in the same request. \"\n                f\"Got tables: {tables} and indicators: {[f'{d}::{c}' for d, c in indicators]}\"\n            )\n\n        if len(tables) > 1:\n            raise ValueError(\n                f\"Only one table can be requested at a time. Got: {tables}\"\n            )\n\n        if tables:\n            self._is_table = True\n            parts = tables[0].split(\"::\", 1)\n            self._dataflow = parts[0].upper()\n            self._table_id = parts[1]\n        else:\n            self._is_table = False\n            indicators_by_df: dict[str, list[str]] = {}\n","sourceCodeStart":347,"sourceCodeEnd":383,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/imf/openbb_imf/models/economic_indicators.py#L347-L383","documentation":"Error \"Cannot mix tables and indicators in the same request. Got tables: {tables} and indicators: {[f'{d}::{c}' for d, c in indicators]}\" thrown in OpenBB-finance/OpenBB.","triggerScenarios":"Thrown at openbb_platform/providers/imf/openbb_imf/models/economic_indicators.py:365 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Request either tables or indicators in a single call, not both.","Split the request into separate calls for tables and indicators."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3e071fcc2cd9f891cac6040ae60296dba76dab46","analyzedAt":"2026-08-14T23:40:48.960Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}