{"record":{"id":"5163cd99d7ad0e2e","repo":"OpenBB-finance/OpenBB","slug":"no-data-returned-for-the-given-query-parameters","errorCode":null,"errorMessage":"No data returned for the given query parameters.","messagePattern":"No data returned for the given query parameters\\.","errorType":"exception","errorClass":"OpenBBError","httpStatus":null,"severity":"error","filePath":"openbb_platform/providers/imf/openbb_imf/models/consumer_price_index.py","lineNumber":525,"sourceCode":"        query: ImfConsumerPriceIndexQueryParams,\n        data: dict,\n        **kwargs: Any,\n    ) -> AnnotatedResult[list[ImfConsumerPriceIndexData]]:\n        \"\"\"Transform data and validate the model.\"\"\"\n        row_data = data.get(\"data\", [])\n        result: list[ImfConsumerPriceIndexData] = []\n        metadata: dict = data.get(\"metadata\", {})\n        dataset_info: dict = metadata.pop(\"dataset\", {})\n        table_info: dict = (\n            metadata.pop(\"IMF_STA_CPI_CPI\", {})\n            or metadata.pop(\"IMF_STA_CPI_HICP\", {})\n            or {}\n        )\n        dataset_info[\"index_type\"] = table_info.get(\"indicator\", \"\")\n        dataset_info[\"index_description\"] = table_info.get(\"description\", \"\")\n\n        if not row_data:\n            raise OpenBBError(\"No data returned for the given query parameters.\")\n\n        for item in row_data:\n            # Filter by date range here because IMF API date filtering can be inconsistent\n            item_date = item.get(\"TIME_PERIOD\", None)\n            if (\n                query.start_date\n                and item_date\n                and item_date < query.start_date.strftime(\"%Y-%m-%d\")\n            ):\n                continue\n            if (\n                query.end_date\n                and item_date\n                and item_date > query.end_date.strftime(\"%Y-%m-%d\")\n            ):\n                continue\n\n            # Get translated labels (these are now human-readable)","sourceCodeStart":507,"sourceCodeEnd":543,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/imf/openbb_imf/models/consumer_price_index.py#L507-L543","documentation":"Error \"No data returned for the given query parameters.\" thrown in OpenBB-finance/OpenBB.","triggerScenarios":"Thrown at openbb_platform/providers/imf/openbb_imf/models/consumer_price_index.py:525 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Adjust the query parameters: widen the date range or change country/expenditure.","Verify the combination of country and expenditure has published CPI data.","Retry later in case of IMF API issues."],"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"}