Forum Discussion

cprothero's avatar
cprothero
Iron Contributor
Sep 21, 2023
Solved

Importing a List from CSV with Schema

I am trying to use the out-of-the-box functionality in Lists to export a list as a CSV with Schema, then reimporting the list to another site, but when I try to import the list, it does not recognize...
  • cprothero's avatar
    Sep 21, 2023
    Actually I figured out the problem. If you open the exported csv in Excel, even if you do not touch the first row (schema), and even if you save it again as a csv, Excel messes up the schema by encapsulating it in quotes and escaping all the internal quotes. I understand why, but it is annoying.

    I solved the problem by opening up the exported csv in notepad, removing the schema line and saving it. Then I can make all the adjustments needed in to the data rows in Excel and save the csv, then re-add the schema line to the beginning in notepad. Then, when I import it, everything works.

    Easy mistake when I look at it now. But maybe it will help someone else.

Resources