{"record":{"id":"63bc96fe37d10165","repo":"OpenBB-finance/OpenBB","slug":"invalid-symbol-format-sym-expected-dataflow","errorCode":null,"errorMessage":"Invalid symbol format '{sym}'. Expected 'dataflow::identifier'. Use `available_indicators()` or `list_tables()` to find valid symbols.","messagePattern":"Invalid symbol format '(.+?)'\\. Expected 'dataflow::identifier'\\. Use `available_indicators\\(\\)` or `list_tables\\(\\)` to find valid symbols\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"openbb_platform/providers/imf/openbb_imf/models/economic_indicators.py","lineNumber":328,"sourceCode":"\n        # Validate country requirement - must have country by now\n        if not self.country:\n            raise ValueError(\n                \"Country is required. Provide via 'country' parameter or include a country \"\n                \"dimension (COUNTRY, REF_AREA, JURISDICTION, AREA) in 'dimension_values'.\"\n            )\n\n        symbols = [\n            s.strip()\n            for s in self.symbol.split(\",\")  #  type: ignore  # pylint: disable=E1101\n        ]\n        tables: list[str] = []\n        indicators: list[tuple[str, str]] = []\n        dataflows_seen: set[str] = set()\n\n        for sym in symbols:\n            if \"::\" not in sym:\n                raise ValueError(\n                    f\"Invalid symbol format '{sym}'. Expected 'dataflow::identifier'. \"\n                    \"Use `available_indicators()` or `list_tables()` to find valid symbols.\"\n                )\n\n            parts = sym.split(\"::\", 1)\n            dataflow = parts[0].strip().upper()\n            identifier = parts[1].strip()\n\n            if not identifier:\n                raise ValueError(\n                    f\"Invalid symbol format '{sym}'. Identifier cannot be empty. \"\n                    \"Expected 'dataflow::identifier'.\"\n                )\n\n            dataflows_seen.add(dataflow)\n            # Tables can start with H_ or be any valid hierarchy ID for the dataflow\n            is_table = False\n","sourceCodeStart":310,"sourceCodeEnd":346,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/imf/openbb_imf/models/economic_indicators.py#L310-L346","documentation":"Error \"Invalid symbol format '{sym}'. Expected 'dataflow::identifier'. Use `available_indicators()` or `list_tables()` to find valid symbols.\" thrown in OpenBB-finance/OpenBB.","triggerScenarios":"Thrown at openbb_platform/providers/imf/openbb_imf/models/economic_indicators.py:328 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Format the symbol as 'dataflow::identifier'.","Use available_indicators() or list_tables() to find valid symbols."],"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-15T22:17:37.221Z"}