Skip to content

ValueError: All objects passed were None when calling query_generation #486

@shuvo-cefalo

Description

@shuvo-cefalo

Description

We are encountering an unhandled ValueError("All objects passed were None") when using client.query_generation for certain date ranges where ENTSO-E returns no data.
The error seems to originate from the internal year_wrapper decorator, which collects frames and attempts pd.concat(frames) even when all frames are None.

N.B: This issue happened just before the recent outage of the transparencey platform
Not sure if it's related to that.

Environment

entsoe-py version: 0.7.8
Python: 3.11
Pandas: 2

Code Snippet

import pandas as pd
from entsoe import EntsoePandasClient

client = EntsoePandasClient(api_key="...")

start = pd.Timestamp("2025-11-06", tz="Europe/Berlin")
end   = pd.Timestamp("2025-11-06", tz="Europe/Berlin")

country_code = "BE"

df = client.query_generation(country_code, start=start, end=end)

Error Message

File ".../entsoe/series_parsers.py", line 125, in _parse_timeseries_generic
    return pd.concat(series.values())
...
ValueError: All objects passed were None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions