How can I import a CSV file with a comma in a string value?
![mbergmann](https://us.v-cdn.net/6037124/uploads/userpics/IF8GQH2OE9JV/n0HBC4QHWOKWE.jpg)
Hello everybody, I have problems importing a CSV file that looks like this:
CSV-File:
id,name
1,Bergmann, Marvin
In Xano it looks like that:
id: 1
name: Bergmann
And not like that:
id: 1
name: Bergmann, Marvin
Can somebody please help? Thanks a lot!
Answers
-
How are you doing the import? If the text is not escaped, (we often wrap a string with quotation marks to handle this situation - but that's not always available) you'll need to set up some rules to handle this split situation. Xano can do that by setting up an upload with a function stack using CSV functions but the built-in one-click CSV import won't work quite right.
We've done our share of weird text file parsing at State Change Pro and in our daily office hours - sometimes data doesn't come in the way we might hope. Working on those hardest 5% of problems is what we do together.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback