{"record":{"id":"d950771653501d05","repo":"OpenBB-finance/OpenBB","slug":"no-results-found-for-the-provided-series-id-s","errorCode":null,"errorMessage":"No results found for the provided series_id(s).","messagePattern":"No results found for the provided series_id\\(s\\)\\.","errorType":"exception","errorClass":"EmptyDataError","httpStatus":null,"severity":"warning","filePath":"openbb_platform/providers/fred/openbb_fred/models/search.py","lineNumber":212,"sourceCode":"\n        if query.series_id is not None:\n            results: list = []\n\n            async def get_one(_id: str):\n                \"\"\"Get data for one series.\"\"\"\n                data: dict = {}\n                url = f\"https://api.stlouisfed.org/geofred/series/group?series_id={_id}&api_key={api_key}&file_type=json\"\n                response = await fred_get(url)\n                data = response.get(\"series_group\")  # type: ignore\n                if data:\n                    data.update({\"series_id\": _id})\n                    results.append(data)\n\n            await asyncio.gather(*[get_one(_id) for _id in query.series_id.split(\",\")])\n\n            if results:\n                return results\n            raise EmptyDataError(\"No results found for the provided series_id(s).\")\n\n        if query.search_type == \"release\" and query.release_id is None:\n            url = f\"https://api.stlouisfed.org/fred/releases?api_key={api_key}&file_type=json\"\n            response = await fred_get(url)\n            results = response.get(\"releases\")  # type: ignore\n            if results:\n                return results\n            raise OpenBBError(\n                \"Unexpected result while retrieving the list of releases from the FRED API.\"\n            )\n\n        url = (\n            \"https://api.stlouisfed.org/fred/release/series?\"\n            if query.release_id is not None\n            else \"https://api.stlouisfed.org/fred/series/search?\"\n        )\n\n        exclude = (","sourceCodeStart":194,"sourceCodeEnd":230,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/fred/openbb_fred/models/search.py#L194-L230","documentation":"Raised in FredSearchFetcher.aextract_data (openbb_fred/models/search.py:212) after the geoFRED 'series/group' endpoint was queried for each requested series_id and none of them returned a series_group payload. This path only runs for search_type='series_id', where the provider enriches IDs with their geoFRED group metadata. It is an EmptyDataError: the requests succeeded but every lookup came back empty.","triggerScenarios":"search_type='series_id' with IDs that have no geographic group (most ordinary national series, e.g. 'GDP' or 'CPIAUCSL'); typos in the comma-separated series_id list; all requested IDs being discontinued series with groups removed.","commonSituations":"Assuming every FRED series has a geoFRED group - only regionally disaggregated series (state/MSA/county) do; passing a national series ID copied from a different workflow.","solutions":["Use search_type='series_id' only with regionally disaggregated series (e.g. state HPI or unemployment series).","For national series, call fred_series directly or use fred_search(search_type='full_text').","Check the ID exists with fred_search(query='<id>') before requesting its group."],"exampleFix":"# before - national series has no geoFRED group\nobb.economy.fred.search(search_type='series_id', series_id='GDP')\n\n# after\nobb.economy.fred.series(symbol='GDP')","handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"from openbb_core.provider.utils.errors import EmptyDataError\n\ntry:\n    groups = obb.economy.fred.search(search_type='series_id', series_id=','.join(ids))\nexcept EmptyDataError:\n    groups = None  # these IDs have no geoFRED group; fall back to plain series metadata\n    meta = [obb.economy.fred.series(symbol=i).metadata for i in ids]","preventionTips":["Use search_type='series_id' only for regionally disaggregated series.","Pre-check one ID first; if it has no group, skip the group lookup for the batch."],"tags":["fred","geofred","series-group","empty-data"],"backgroundTag":null,"analyzedSha":"3e071fcc2cd9f891cac6040ae60296dba76dab46","analyzedAt":"2026-08-14T23:40:48.960Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}