{"record":{"id":"1c6e578b7caeb6b8","repo":"OpenBB-finance/OpenBB","slug":"the-query-filters-resulted-in-no-data-try-again-w","errorCode":null,"errorMessage":"The query filters resulted in no data. Try again with different date parameters.","messagePattern":"The query filters resulted in no data\\. Try again with different date parameters\\.","errorType":"exception","errorClass":"OpenBBError","httpStatus":null,"severity":"warning","filePath":"openbb_platform/providers/federal_reserve/openbb_federal_reserve/models/inflation_expectations.py","lineNumber":195,"sourceCode":"        if query.end_date:\n            df = df[df[\"date\"] <= query.end_date]\n\n        df = (\n            df[[\"date\", \"infpgdp1yr\", \"infcpi1yr\", \"infcpi10yr\"]]\n            .replace({\"#N/A\": None})\n            .set_index(\"date\")\n            .sort_index()\n            .dropna(how=\"all\", axis=0)\n            .reset_index()\n        )\n\n        results = [\n            FederalReserveInflationExpectationsData.model_validate(row.to_dict())\n            for _, row in df.iterrows()\n        ]\n\n        if not results:\n            raise OpenBBError(\n                \"The query filters resulted in no data. \"\n                \"Try again with different date parameters.\"\n            )\n\n        return results\n","sourceCodeStart":177,"sourceCodeEnd":201,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/federal_reserve/openbb_federal_reserve/models/inflation_expectations.py#L177-L201","documentation":"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.","triggerScenarios":"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.","commonSituations":"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.","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."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"from datetime import date\nif end_date < date(1982, 1, 1):  # expectations coverage begins in the 1980s\n    raise ValueError('date range predates inflation expectations coverage')","typeGuard":null,"tryCatchPattern":"try:\n    res = obb.economy.fed.inflation_expectations(start_date=s, end_date=e)\nexcept OpenBBError as e:\n    if 'query filters resulted in no data' in str(e):\n        res = obb.economy.fed.inflation_expectations()  # full series, slice locally\n    else:\n        raise","preventionTips":["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."],"tags":["federal-reserve","inflation-expectations","empty-data","date-filter"],"backgroundTag":null,"analyzedSha":"3e071fcc2cd9f891cac6040ae60296dba76dab46","analyzedAt":"2026-08-14T23:40:48.960Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}