pathwaycom/pathway · error · ValueError
'persistent_id' and 'name' should not be used together. Plea
Error message
'persistent_id' and 'name' should not be used together. Please use 'name' only.
What it means
Error "'persistent_id' and 'name' should not be used together. Please use 'name' only." thrown in pathwaycom/pathway.
Source
Thrown at python/pathway/io/_utils.py:704
raise ValueError(
"start_from_timestamp_ms must be a non-negative number of"
f" milliseconds since the UNIX epoch; got {start_from_timestamp_ms}"
)
return start_from_timestamp_ms
if start_from_timestamp_ms is not None:
raise ValueError(
f"start_from_timestamp_ms must not be set when start_from='{start_from}'"
)
return -1 if start_from == "end" else None
def _get_unique_name(
name: str | None, kwargs: dict[str, Any], stacklevel: int = 6
) -> str:
deprecated_name = kwargs.get("persistent_id")
if name is not None:
if deprecated_name is not None:
raise ValueError(
"'persistent_id' and 'name' should not be used together. Please use 'name' only."
)
return name
if deprecated_name is not None:
warnings.warn(
"'persistent_id' is deprecated. Please use 'name' instead.",
DeprecationWarning,
stacklevel=stacklevel,
)
return deprecated_name
def _prepare_s3_connection_settings(
s3_connection_settings: (
AwsS3Settings | MinIOSettings | WasabiS3Settings | DigitalOceanS3Settings | None
),
) -> AwsS3Settings | None:
if isinstance(s3_connection_settings, AwsS3Settings):View on GitHub (pinned to fa2f74a464)
Solutions
- Use only the 'name' parameter and drop 'persistent_id'.
Example fix
pw.io.fs.read(path, name='my_source')
When it happens
Trigger: Thrown at python/pathway/io/_utils.py:704 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of pathwaycom/pathway@fa2f74a464 (2026-08-15).
Data as JSON: /api/errors/483e556624f26d8a.
Report an issue: GitHub.