{"record":{"id":"7aebcf5f36401a87","repo":"OpenBB-finance/OpenBB","slug":"no-data-was-returned-for-the-symbol-provided","errorCode":null,"errorMessage":"No data was returned for the symbol provided.","messagePattern":"No data was returned for the symbol provided\\.","errorType":"exception","errorClass":"EmptyDataError","httpStatus":null,"severity":"warning","filePath":"openbb_platform/providers/intrinio/openbb_intrinio/models/company_filings.py","lineNumber":152,"sourceCode":"            result = await response.json()\n            if filings := result.get(\"filings\", []):\n                results.extend(filings)\n\n            metadata = result.get(\"company\", {})\n\n            while next_page := result.get(\"next_page\"):\n                url += f\"&next_page={next_page}\"\n                async with await session.get(url) as next_response:\n                    if response.status != 200:\n                        raise OpenBBError(\n                            f\"Error fetching data from Intrinio: {response.status} -> {response.text}\"\n                        )\n                    result = await next_response.json()\n                    if filings := result.get(\"filings\", []):\n                        results.extend(filings)\n\n        if not results:\n            raise EmptyDataError(\"No data was returned for the symbol provided.\")\n\n        return {\"data\": results, \"metadata\": metadata}\n\n    @staticmethod\n    def transform_data(\n        query: IntrinioCompanyFilingsQueryParams, data: dict, **kwargs: Any\n    ) -> AnnotatedResult[list[IntrinioCompanyFilingsData]]:\n        \"\"\"Return the transformed data.\"\"\"\n        return AnnotatedResult(\n            result=[\n                IntrinioCompanyFilingsData.model_validate(\n                    {\n                        k: v\n                        for k, v in d.items()\n                        if k not in [\"thea_enabled\", \"earnings_release\"]\n                    }\n                )\n                for d in data.get(\"data\", [])","sourceCodeStart":134,"sourceCodeEnd":170,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/intrinio/openbb_intrinio/models/company_filings.py#L134-L170","documentation":"After collecting all pages of filings, if the combined results list is empty the fetcher raises EmptyDataError rather than returning an empty response. Distinguished from a transport failure: the HTTP calls succeeded (200s), the symbol exists, but Intrinio returned zero filing records for the query filters.","triggerScenarios":"Querying obb.equity.filings(provider='intrinio', symbol='XYZ') where the symbol resolves but has no filings matching filters - e.g. a recently listed company with no SEC filings yet, or thea_enabled=True filters (only Thea-read filings) excluding everything, or a date/type filter with no matches.","commonSituations":"Newly public/spac entities without filings; thea_enabled=True on companies whose filings haven't been NLP-processed; restrictive form-type or date filters; symbols that map to shells or funds with no reporting obligations.","solutions":["Relax filters - drop thea_enabled, widen dates, remove form type restrictions.","Confirm the symbol actually has filings on Intrinio's portal; some entities legitimately have none.","Catch EmptyDataError as an expected 'no filings' case in batch pipelines instead of failing the run.","Verify a different symbol known to have filings to rule out credential/plan issues (those usually raise the 401/403 error instead)."],"exampleFix":"# before\nres = obb.equity.filings(provider='intrinio', symbol='NEWLY_LISTED')\n# after\nfrom openbb_core.provider.abstract.fetcher import EmptyDataError\ntry:\n    res = obb.equity.filings(provider='intrinio', symbol='NEWLY_LISTED')\nexcept EmptyDataError:\n    res = []  # no filings - expected for newly listed companies","handlingStrategy":"try-catch","validationCode":"# Pre-check is impractical (depends on Intrinio's holdings); instead constrain filters\n# Dropping thea_enabled avoids the most common zero-row case\nparams = {'symbol': sym}\nif thea is not None:\n    params['thea_enabled'] = thea","typeGuard":null,"tryCatchPattern":"from openbb_core.provider.abstract.fetcher import EmptyDataError\ntry:\n    res = obb.equity.filings(provider='intrinio', symbol=sym)\nexcept EmptyDataError:\n    res = []  # symbol exists but has no matching filings - record and continue","preventionTips":["Treat EmptyDataError as 'no filings', distinct from HTTP errors","Relax thea_enabled/date filters when zero rows return","In batch loops, record empty symbols instead of aborting the run"],"tags":["intrinio","empty-data","filings","emptydataerror"],"backgroundTag":null,"analyzedSha":"3e071fcc2cd9f891cac6040ae60296dba76dab46","analyzedAt":"2026-08-14T23:40:48.960Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}