JSONなどクォーテーションを含むファイルのインポートに失敗する
エラー例
CSV table encountered too many errors, giving up. Rows: 123; errors: 1.
Please look into the errors[] collection for more details.
Error while reading data, error message: Error detected while parsing row starting at position: 12345.
Error: Data between close double quote (") and field separator.
It looks like you are appending to an existing table with autodetect enabled. Disabling autodetect may resolve this.
対処方法
ダブルクォーテーションは囲み文字として認識されるため、エスケープする必要があります。
以下のように、値の中のダブルクォーテーション(")は、ダブルクォーテーション2つ("")で記述してください。
例
- エスケープ前:
"{"items":{"name":"KARTEマグ","price":"480"}}" - エスケープ後:
"{""items"":{""name"":""KARTEマグ"",""price"":""480""}}"
Updated about 1 month ago