{"record":{"id":"ed60a85fde8edda8","repo":"OpenBB-finance/OpenBB","slug":"please-enter-a-dataflow-group-and-a-table","errorCode":null,"errorMessage":"Please enter a dataflow group and a table.","messagePattern":"Please enter a dataflow group and a table\\.","errorType":"validation","errorClass":"OpenBBError","httpStatus":null,"severity":"error","filePath":"openbb_platform/providers/imf/openbb_imf/imf_router.py","lineNumber":704,"sourceCode":"        ),\n    ] = 1,\n    raw: Annotated[\n        bool,\n        Query(\n            title=\"Raw Output\",\n            description=\"Return presentation table as raw JSON data if True.\",\n        ),\n    ] = False,\n) -> Any:\n    \"\"\"Get a formatted presentation table from the IMF database. Returns as HTML or JSON list.\"\"\"\n    # pylint: disable=import-outside-toplevel\n    import html as html_module\n\n    from openbb_imf.models.economic_indicators import ImfEconomicIndicatorsFetcher\n    from pandas import DataFrame\n\n    if dataflow_group is None or table is None:\n        raise OpenBBError(ValueError(\"Please enter a dataflow group and a table.\"))\n\n    if country is None or frequency is None:\n        raise OpenBBError(ValueError(\"Please enter a country and frequency.\"))\n\n    freq_map = {\"A\": \"annual\", \"Q\": \"quarter\", \"M\": \"month\", \"D\": \"day\"}\n    symbol = PRESENTATION_TABLES.get(table, \"\")\n    params = {\n        \"symbol\": symbol,\n        \"country\": country,\n        \"limit\": limit,\n        \"frequency\": freq_map.get(frequency, frequency),\n        \"dimension_values\": dimension_values,\n        \"pivot\": True,\n    }\n    results = await ImfEconomicIndicatorsFetcher.fetch_data(params, {})\n    results_json = [d.model_dump(mode=\"json\", exclude_none=True) for d in results.result]  # type: ignore\n\n    if raw is True:","sourceCodeStart":686,"sourceCodeEnd":722,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/imf/openbb_imf/imf_router.py#L686-L722","documentation":"Error \"Please enter a dataflow group and a table.\" thrown in OpenBB-finance/OpenBB.","triggerScenarios":"Thrown at openbb_platform/providers/imf/openbb_imf/imf_router.py:704 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide both a dataflow group and a table parameter.","Use list_tables() or available_indicators() to find valid values."],"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"}