{"record":{"id":"1f30fd4aeb98f183","repo":"OpenBB-finance/OpenBB","slug":"no-fomc-documents-found","errorCode":null,"errorMessage":"No FOMC documents found.","messagePattern":"No FOMC documents found\\.","errorType":"exception","errorClass":"EmptyDataError","httpStatus":null,"severity":"warning","filePath":"openbb_platform/providers/federal_reserve/openbb_federal_reserve/models/fomc_documents.py","lineNumber":171,"sourceCode":"        **kwargs: Any,\n    ) -> list[dict]:\n        \"\"\"Extract the raw data.\"\"\"\n        # pylint: disable=import-outside-toplevel\n        from openbb_federal_reserve.utils.fomc_documents import (\n            get_fomc_documents_by_year,\n        )\n\n        return get_fomc_documents_by_year(query.year, query.document_type)\n\n    @staticmethod\n    def transform_data(\n        query: FederalReserveFomcDocumentsQueryParams,\n        data: list[dict],\n        **kwargs: Any,\n    ) -> list[FederalReserveFomcDocumentsData]:\n        \"\"\"Transform data.\"\"\"\n        if not data:\n            raise EmptyDataError(\"No FOMC documents found.\")\n        return [FederalReserveFomcDocumentsData.model_validate(d) for d in data]\n","sourceCodeStart":153,"sourceCodeEnd":173,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/federal_reserve/openbb_federal_reserve/models/fomc_documents.py#L153-L173","documentation":"Raised as EmptyDataError by FederalReserveFomcDocuments.transform_data when get_fomc_documents_by_year returned an empty list for the requested year/document_type combination. The fetch itself succeeded; nothing matched the filters.","triggerScenarios":"Requesting FOMC documents for a year with no documents of the chosen type (e.g. press_conference transcripts before 2011-ish, or a future year), or a year outside 1959-present coverage.","commonSituations":"Programmatically looping over years where some types do not exist; assuming all document types exist for all years; year passed as a string with bad formatting.","solutions":["Drop the document_type filter for that year to see what does exist.","Verify the year is within 1959-present and that the type exists for it (e.g. press conference files only from ~2011 on).","Catch EmptyDataError and continue when iterating years."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"if document_type == 'press_conference' and year < 2011:\n    raise EmptyDataError('press conference documents start ~2011')  # pre-check known gaps","typeGuard":null,"tryCatchPattern":"from openbb_core.provider.standard_errors import EmptyDataError\ntry:\n    docs = obb.economy.fomc_documents(year=y, document_type=t)\nexcept EmptyDataError:\n    docs = None  # no documents of this type for this year","preventionTips":["When looping years, catch EmptyDataError per year and continue.","Fetch unfiltered once to learn which types exist per year, then filter client-side."],"tags":["federal-reserve","fomc","empty-data"],"backgroundTag":null,"analyzedSha":"3e071fcc2cd9f891cac6040ae60296dba76dab46","analyzedAt":"2026-08-14T23:40:48.960Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}