{"record":{"id":"c8e582b6e29ef855","repo":"pathwaycom/pathway","slug":"unexpected-argument-for-csv-format-json-field-pat","errorCode":null,"errorMessage":"Unexpected argument for csv format: json_field_paths","messagePattern":"Unexpected argument for csv format: json_field_paths","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"python/pathway/io/_utils.py","lineNumber":358,"sourceCode":"                f\"The schema already declares a {METADATA_COLUMN_NAME!r} column, \"\n                f\"which conflicts with 'with_metadata=True'. Either remove \"\n                f\"{METADATA_COLUMN_NAME!r} from the schema or set \"\n                \"'with_metadata=False'.\"\n            )\n        raise ValueError(\n            f\"{METADATA_COLUMN_NAME!r} is a reserved column name used by \"\n            \"Pathway's connector metadata. Declaring it in the schema would \"\n            \"be silently shadowed by the connector. Rename your column to \"\n            \"something else, or set 'with_metadata=True' to receive the \"\n            \"auto-generated metadata in this column.\"\n        )\n    if with_metadata:\n        schema |= MetadataSchema\n\n    schema, api_schema = read_schema(schema)\n    if data_format_type == \"dsv\":\n        if json_field_paths is not None:\n            raise ValueError(\"Unexpected argument for csv format: json_field_paths\")\n        return schema, api.DataFormat(\n            **api_schema,\n            format_type=data_format_type,\n            delimiter=\",\",\n            schema_registry_settings=maybe_schema_registry_settings(\n                schema_registry_settings\n            ),\n        )\n    elif data_format_type == \"jsonlines\":\n        if csv_settings is not None:\n            raise ValueError(\"Unexpected argument for json format: csv_settings\")\n        if autogenerate_key:\n            raise ValueError(\n                f\"'autogenerate_key' is only meaningful for 'raw' or \"\n                f\"'plaintext' formats and would have no effect with \"\n                f\"{format!r}. Drop it or pick a compatible format.\"\n            )\n        if json_field_paths is not None:","sourceCodeStart":340,"sourceCodeEnd":376,"githubUrl":"https://github.com/pathwaycom/pathway/blob/fa2f74a4649b7c5908690cf60137263d8d80de5f/python/pathway/io/_utils.py#L340-L376","documentation":"Error \"Unexpected argument for csv format: json_field_paths\" thrown in pathwaycom/pathway.","triggerScenarios":"Thrown at python/pathway/io/_utils.py:358 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the json_field_paths argument; it is only valid for the 'json' format."],"exampleFix":"pw.io.csv.read(path, schema=MySchema)","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"}