pathwaycom/pathway · error · ValueError
Invalid init_mode: {init_mode}
Error message
Invalid init_mode: {init_mode} What it means
Error "Invalid init_mode: {init_mode}" thrown in pathwaycom/pathway.
Source
Thrown at python/pathway/io/_utils.py:761
return None
if column._table != table:
raise ValueError(f"The column {column} doesn't belong to the target table")
for index, table_column in enumerate(table._columns):
if table_column == column.name:
return index
raise RuntimeError(f"The column {column} is not found in the table {table}")
def init_mode_from_str(init_mode: str) -> api.TableWriterInitMode:
match init_mode:
case "default":
return api.TableWriterInitMode.DEFAULT
case "create_if_not_exists":
return api.TableWriterInitMode.CREATE_IF_NOT_EXISTS
case "replace":
return api.TableWriterInitMode.REPLACE
case _:
raise ValueError(f"Invalid init_mode: {init_mode}")
View on GitHub (pinned to fa2f74a464)
Solutions
- Pass a valid init_mode value accepted by this connector.
Example fix
pw.io.debezium.read(..., init_mode='default')
When it happens
Trigger: Thrown at python/pathway/io/_utils.py:761 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/4c7fe8d8bfc895dd.
Report an issue: GitHub.