Closed kosnik-ng closed 2 years ago
Hello, I don't understand how to use the csv options to change the delimiters, I would like some help.
My cvs file contains the items below:
"Nom";"Localité" "Zoé";"Paris" "Léa";"Lyon"
In the source file, I wrote:
csvOptions: delimiter: semicolon source: contact/test-csvoption.csv
or
csvOptions: delimiter: ; source: contact/test-csvoption.csv
csvOptions: delimiter: ";" source: contact/test-csvoption.csv
I get this error :
Could not parse CSV table spec: Nested mappings are not allowed in compact mappings at line 1, column 13: csvOptions: delimiter: semicolon
and with this source code
delimiter: semicolon source: contact/test-csvoption.csv
delimiter: ; source: contact/test-csvoption.csv
delimiter: ";" source: contact/test-csvoption.csv
Invalid Closing Quote: got ";" at line 1 instead of delimiter, record delimiter, trimable character (if activated) or comment
I believe what you'll want to do is create your table spec with
```csvtable source: /path/to/source/ csvOptions: delimiter: ";" ```
Good luck!
Hello, I don't understand how to use the csv options to change the delimiters, I would like some help.
My cvs file contains the items below:
In the source file, I wrote:
or
or
I get this error :
and with this source code
or
or
I get this error :