{"record":{"id":"3de383dc56f23712","repo":"pathwaycom/pathway","slug":"start-from-timestamp-ms-must-not-be-set-when-start","errorCode":null,"errorMessage":"start_from_timestamp_ms must not be set when start_from='{start_from}'","messagePattern":"start_from_timestamp_ms must not be set when start_from='(.+?)'","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"python/pathway/io/_utils.py","lineNumber":692,"sourceCode":"\n    The engine reserves ``-1`` in this field as an internal sentinel for\n    ``start_from=\"end\"``, so an explicit timestamp must be non-negative —\n    otherwise a user-provided ``-1`` would silently turn into \"start from\n    the end of the stream\" instead of raising an error.\n    \"\"\"\n    if start_from == \"timestamp\":\n        if start_from_timestamp_ms is None:\n            raise ValueError(\n                \"start_from_timestamp_ms is required when start_from='timestamp'\"\n            )\n        if start_from_timestamp_ms < 0:\n            raise ValueError(\n                \"start_from_timestamp_ms must be a non-negative number of\"\n                f\" milliseconds since the UNIX epoch; got {start_from_timestamp_ms}\"\n            )\n        return start_from_timestamp_ms\n    if start_from_timestamp_ms is not None:\n        raise ValueError(\n            f\"start_from_timestamp_ms must not be set when start_from='{start_from}'\"\n        )\n    return -1 if start_from == \"end\" else None\n\n\ndef _get_unique_name(\n    name: str | None, kwargs: dict[str, Any], stacklevel: int = 6\n) -> str:\n    deprecated_name = kwargs.get(\"persistent_id\")\n    if name is not None:\n        if deprecated_name is not None:\n            raise ValueError(\n                \"'persistent_id' and 'name' should not be used together. Please use 'name' only.\"\n            )\n        return name\n    if deprecated_name is not None:\n        warnings.warn(\n            \"'persistent_id' is deprecated. Please use 'name' instead.\",","sourceCodeStart":674,"sourceCodeEnd":710,"githubUrl":"https://github.com/pathwaycom/pathway/blob/fa2f74a4649b7c5908690cf60137263d8d80de5f/python/pathway/io/_utils.py#L674-L710","documentation":"Error \"start_from_timestamp_ms must not be set when start_from='{start_from}'\" thrown in pathwaycom/pathway.","triggerScenarios":"Thrown at python/pathway/io/_utils.py:692 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the start_from_timestamp_ms argument, or set start_from='timestamp'."],"exampleFix":"pw.io.kafka.read(rdkafka_settings, topic='t', start_from='earliest')","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-15T22:17:37.221Z"}