OpenBB-finance/OpenBB · warning · EmptyDataError
No data was returned for the symbol provided.
Error message
No data was returned for the symbol provided.
What it means
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.
Source
Thrown at openbb_platform/providers/intrinio/openbb_intrinio/models/company_filings.py:152
result = await response.json()
if filings := result.get("filings", []):
results.extend(filings)
metadata = result.get("company", {})
while next_page := result.get("next_page"):
url += f"&next_page={next_page}"
async with await session.get(url) as next_response:
if response.status != 200:
raise OpenBBError(
f"Error fetching data from Intrinio: {response.status} -> {response.text}"
)
result = await next_response.json()
if filings := result.get("filings", []):
results.extend(filings)
if not results:
raise EmptyDataError("No data was returned for the symbol provided.")
return {"data": results, "metadata": metadata}
@staticmethod
def transform_data(
query: IntrinioCompanyFilingsQueryParams, data: dict, **kwargs: Any
) -> AnnotatedResult[list[IntrinioCompanyFilingsData]]:
"""Return the transformed data."""
return AnnotatedResult(
result=[
IntrinioCompanyFilingsData.model_validate(
{
k: v
for k, v in d.items()
if k not in ["thea_enabled", "earnings_release"]
}
)
for d in data.get("data", [])View on GitHub (pinned to 3e071fcc2c)
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).
Example fix
# before
res = obb.equity.filings(provider='intrinio', symbol='NEWLY_LISTED')
# after
from openbb_core.provider.abstract.fetcher import EmptyDataError
try:
res = obb.equity.filings(provider='intrinio', symbol='NEWLY_LISTED')
except EmptyDataError:
res = [] # no filings - expected for newly listed companies Defensive patterns
Strategy: try-catch
Validate before calling
# Pre-check is impractical (depends on Intrinio's holdings); instead constrain filters
# Dropping thea_enabled avoids the most common zero-row case
params = {'symbol': sym}
if thea is not None:
params['thea_enabled'] = thea Try / catch
from openbb_core.provider.abstract.fetcher import EmptyDataError
try:
res = obb.equity.filings(provider='intrinio', symbol=sym)
except EmptyDataError:
res = [] # symbol exists but has no matching filings - record and continue Prevention
- 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
When it happens
Trigger: 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.
Common situations: 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.
Related errors
- The request was returned empty.
- No data found for the given query -> {query.model_dump()}
- No data was returned for the given query.
- Error: The request was returned as empty. Try adjusting the
- The request was returned empty.
AI-assisted analysis of OpenBB-finance/OpenBB@3e071fcc2c (2026-08-14).
Data as JSON: /api/errors/7aebcf5f36401a87.
Report an issue: GitHub.