I'm working through bulk loading information into Snowflake using Python. I use pandas to extract and load data from a source system into a csv. The issue occurs when copying data into Snowflake.
I receive the below error:
snowflake.connector.errors.ProgrammingError: 100065 (22000): Found character '4' instead of field delimiter ','
The field is hanging on the following text enclosed within a field.
"[**EXTERNAL**]: BID: ""4597290 - PERSONNE"
As you can see there are double quotes lined up just before the 4597290 that are causing an escape. Being unversed in how to escape out of this particular issue but what i've successfully used for other files is below:
'file_format = (type = "csv" SKIP_HEADER = 1 FIELD_OPTIONALLY_ENCLOSED_BY = '"' ESCAPE = ' ')
Is there a file format that will allow me to accommodate the above example or is the best practice remove quotes on this field alone?