Facing UNKNOWN_FIELD_EXCEPTION.NEW_FIELDS_IN_FILE

lin
New Contributor

[UNKNOWN_FIELD_EXCEPTION.NEW_FIELDS_IN_FILE] Encountered unknown fields during parsing: [<field_name>], which can be fixed by an automatic retry: true

I am using Azure Databricks, and write with python code. Want to catch the error and raise. Tried with try-except but failed.