{"record":{"id":"259e07bb4c8c4d24","repo":"OpenBB-finance/OpenBB","slug":"the-query-filters-resulted-in-no-data-try-again-w-259e07","errorCode":null,"errorMessage":"The query filters resulted in no data. Try again with different parameters.","messagePattern":"The query filters resulted in no data\\. Try again with different parameters\\.","errorType":"exception","errorClass":"OpenBBError","httpStatus":null,"severity":"error","filePath":"openbb_platform/providers/federal_reserve/openbb_federal_reserve/models/svensson_yield_curve.py","lineNumber":1192,"sourceCode":"                continue\n\n            filtered_row: dict[str, Any] = {}\n            for csv_col, value in row.items():\n                field_name = csv_to_field.get(csv_col)\n\n                if field_name is None:\n                    continue\n\n                if allowed_fields is not None and field_name not in allowed_fields:\n                    continue\n\n                filtered_row[field_name] = value\n\n            if filtered_row:\n                results.append(FederalReserveSvenssonData(**filtered_row))\n\n        if not results:\n            raise OpenBBError(\n                \"The query filters resulted in no data. Try again with different parameters.\"\n            )\n\n        return results\n","sourceCodeStart":1174,"sourceCodeEnd":1197,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/federal_reserve/openbb_federal_reserve/models/svensson_yield_curve.py#L1174-L1197","documentation":"Raised at the end of the Svensson transform: the CSV was parsed and rows read, but after applying allowed_fields (derived from series_type) and skipping rows with unparseable dates or unmapped columns, zero FederalReserveSvenssonData records survived. An OpenBBError pointing at query-parameter filtering rather than upstream data.","triggerScenarios":"Selecting a series_type whose columns never match the CSV's field mapping for the requested date range; date filters (start/end) that exclude every parsed row; every row failing the '%Y-%m-%d' date parse so all are skipped.","commonSituations":"Requesting a narrow date window outside the dataset; requesting a series whose allowed_fields set ends up empty due to a mapping mismatch; passing start_date after the last row in the CSV.","solutions":["Relax or remove start_date/end_date to confirm data exists for the series.","Try series_type='all' to check whether the field mapping for your specific series is the problem.","If 'all' also fails after widening dates, the CSV layout changed — update the provider."],"exampleFix":"// before\nres = obb.economy.svensson_yield_curve(provider='federal_reserve', series_type='par_yields', start_date='2030-01-01')\n// after\nres = obb.economy.svensson_yield_curve(provider='federal_reserve', series_type='all')","handlingStrategy":"try-catch","validationCode":"from datetime import date\nassert not (start_date and start_date > date.today()) and (not start_date or not end_date or start_date <= end_date)","typeGuard":null,"tryCatchPattern":"try:\n    res = obb.economy.svensson_yield_curve(provider='federal_reserve', series_type=st, start_date=s, end_date=e)\nexcept OpenBBError:\n    res = obb.economy.svensson_yield_curve(provider='federal_reserve', series_type='all')  # fallback","preventionTips":["Sanity-check date windows against the dataset's actual coverage","Fall back to series_type='all' when a filtered request returns nothing"],"tags":["openbb","query-filter","yield-curve","empty-data"],"backgroundTag":null,"analyzedSha":"3e071fcc2cd9f891cac6040ae60296dba76dab46","analyzedAt":"2026-08-14T23:40:48.960Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}