{"record":{"id":"4c7fe8d8bfc895dd","repo":"pathwaycom/pathway","slug":"invalid-init-mode-init-mode","errorCode":null,"errorMessage":"Invalid init_mode: {init_mode}","messagePattern":"Invalid init_mode: (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"python/pathway/io/_utils.py","lineNumber":761,"sourceCode":"        return None\n    if column._table != table:\n        raise ValueError(f\"The column {column} doesn't belong to the target table\")\n    for index, table_column in enumerate(table._columns):\n        if table_column == column.name:\n            return index\n    raise RuntimeError(f\"The column {column} is not found in the table {table}\")\n\n\ndef init_mode_from_str(init_mode: str) -> api.TableWriterInitMode:\n    match init_mode:\n        case \"default\":\n            return api.TableWriterInitMode.DEFAULT\n        case \"create_if_not_exists\":\n            return api.TableWriterInitMode.CREATE_IF_NOT_EXISTS\n        case \"replace\":\n            return api.TableWriterInitMode.REPLACE\n        case _:\n            raise ValueError(f\"Invalid init_mode: {init_mode}\")\n","sourceCodeStart":743,"sourceCodeEnd":762,"githubUrl":"https://github.com/pathwaycom/pathway/blob/fa2f74a4649b7c5908690cf60137263d8d80de5f/python/pathway/io/_utils.py#L743-L762","documentation":"Error \"Invalid init_mode: {init_mode}\" thrown in pathwaycom/pathway.","triggerScenarios":"Thrown at python/pathway/io/_utils.py:761 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a valid init_mode value accepted by this connector."],"exampleFix":"pw.io.debezium.read(..., init_mode='default')","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa2f74a4649b7c5908690cf60137263d8d80de5f","analyzedAt":"2026-08-15T01:48:17.006Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}