OpenBB-finance/OpenBB · error · OpenBBError
The query filters resulted in no data. Try again with differ
Error message
The query filters resulted in no data. Try again with different parameters.
What it means
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.
Source
Thrown at openbb_platform/providers/federal_reserve/openbb_federal_reserve/models/svensson_yield_curve.py:1192
continue
filtered_row: dict[str, Any] = {}
for csv_col, value in row.items():
field_name = csv_to_field.get(csv_col)
if field_name is None:
continue
if allowed_fields is not None and field_name not in allowed_fields:
continue
filtered_row[field_name] = value
if filtered_row:
results.append(FederalReserveSvenssonData(**filtered_row))
if not results:
raise OpenBBError(
"The query filters resulted in no data. Try again with different parameters."
)
return results
View on GitHub (pinned to 3e071fcc2c)
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.
Example fix
// before res = obb.economy.svensson_yield_curve(provider='federal_reserve', series_type='par_yields', start_date='2030-01-01') // after res = obb.economy.svensson_yield_curve(provider='federal_reserve', series_type='all')
Defensive patterns
Strategy: try-catch
Validate before calling
from datetime import date assert not (start_date and start_date > date.today()) and (not start_date or not end_date or start_date <= end_date)
Try / catch
try:
res = obb.economy.svensson_yield_curve(provider='federal_reserve', series_type=st, start_date=s, end_date=e)
except OpenBBError:
res = obb.economy.svensson_yield_curve(provider='federal_reserve', series_type='all') # fallback Prevention
- Sanity-check date windows against the dataset's actual coverage
- Fall back to series_type='all' when a filtered request returns nothing
When it happens
Trigger: 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.
Common situations: 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.
Related errors
- OBBject Extension Error -> An OBBject extension that acts
- [Empty] -> {e}
- Error: No data to plot.
- No data to process!
- Error: No data to plot.
AI-assisted analysis of OpenBB-finance/OpenBB@3e071fcc2c (2026-08-14).
Data as JSON: /api/errors/259e07bb4c8c4d24.
Report an issue: GitHub.