{"record":{"id":"7743f7242501b51f","repo":"OpenBB-finance/OpenBB","slug":"no-data-found-for-the-given-query-parameters","errorCode":null,"errorMessage":"No data found for the given query parameters.","messagePattern":"No data found for the given query parameters\\.","errorType":"exception","errorClass":"EmptyDataError","httpStatus":null,"severity":"error","filePath":"openbb_platform/providers/imf/openbb_imf/models/direction_of_trade.py","lineNumber":181,"sourceCode":"                    query.end_date.strftime(\"%Y-%m-%d\") if query.end_date else None\n                ),\n                **kwargs,\n            )\n        except (ValueError, OpenBBError) as e:\n            raise OpenBBError(e) from e\n\n    @staticmethod\n    def transform_data(\n        query: ImfDirectionOfTradeQueryParams,\n        data: dict,\n        **kwargs: Any,\n    ) -> AnnotatedResult[list[ImfDirectionOfTradeData]]:\n        \"\"\"Transform the data.\"\"\"\n        meta = data.get(\"metadata\", {})\n        records = data.get(\"data\", [])\n\n        if not records:\n            raise EmptyDataError(\"No data found for the given query parameters.\")\n\n        return AnnotatedResult(\n            result=[\n                ImfDirectionOfTradeData.model_validate(record) for record in records\n            ],\n            metadata=meta,\n        )\n","sourceCodeStart":163,"sourceCodeEnd":189,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/imf/openbb_imf/models/direction_of_trade.py#L163-L189","documentation":"Error \"No data found for the given query parameters.\" thrown in OpenBB-finance/OpenBB.","triggerScenarios":"Thrown at openbb_platform/providers/imf/openbb_imf/models/direction_of_trade.py:181 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Adjust the query parameters: widen the date range or change countries.","Verify the country/counterpart combination has published trade data."],"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"}