OpenBB-finance/OpenBB · warning · 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 date parameters.
What it means
Raised as OpenBBError by FederalReserveInflationExpectations.transform_data when, after building the DataFrame, setting date index, sorting, dropna(how='all'), and validating rows, zero result rows remain. The fetch and parse succeeded but the query's date parameters filtered or nulled everything out.
Source
Thrown at openbb_platform/providers/federal_reserve/openbb_federal_reserve/models/inflation_expectations.py:195
if query.end_date:
df = df[df["date"] <= query.end_date]
df = (
df[["date", "infpgdp1yr", "infcpi1yr", "infcpi10yr"]]
.replace({"#N/A": None})
.set_index("date")
.sort_index()
.dropna(how="all", axis=0)
.reset_index()
)
results = [
FederalReserveInflationExpectationsData.model_validate(row.to_dict())
for _, row in df.iterrows()
]
if not results:
raise OpenBBError(
"The query filters resulted in no data. "
"Try again with different date parameters."
)
return results
View on GitHub (pinned to 3e071fcc2c)
Solutions
- Widen the date range or remove start/end dates to get the full series, then inspect actual coverage.
- Verify the series' first/last available dates from an unfiltered call.
- Check that dates are ISO format (YYYY-MM-DD) so they compare correctly.
Defensive patterns
Strategy: try-catch
Validate before calling
from datetime import date
if end_date < date(1982, 1, 1): # expectations coverage begins in the 1980s
raise ValueError('date range predates inflation expectations coverage') Try / catch
try:
res = obb.economy.fed.inflation_expectations(start_date=s, end_date=e)
except OpenBBError as e:
if 'query filters resulted in no data' in str(e):
res = obb.economy.fed.inflation_expectations() # full series, slice locally
else:
raise Prevention
- On empty filtered results, fetch the full series once and slice dates locally.
- Use ISO date strings (YYYY-MM-DD) so comparisons against the series index work.
When it happens
Trigger: Querying inflation expectations with start_date/end_date outside the series' coverage, or a range where all values are NaN so dropna removes every row.
Common situations: Date bounds copied from another dataset with different coverage (the Cleveland Fed expectations series starts ~1982 for some horizons); timezone/format issues in date strings; recent dates where the series has not been published yet.
Related errors
- No results found. Try adjusting the query parameters.
- No FOMC documents found.
- No results found. Try adjusting the query parameters.
- No data returned from the Federal Reserve API.
- The query filters resulted in no data. Try again with differ
AI-assisted analysis of OpenBB-finance/OpenBB@3e071fcc2c (2026-08-14).
Data as JSON: /api/errors/1c6e578b7caeb6b8.
Report an issue: GitHub.