deckstats.net
You need to be logged in to do this.
The buttons above will open in a new window. Please return to this window after you have logged in. When you have logged in, click the Refresh Session button and then try again.

Author Topic: Importing collection exported from deckstats  (Read 494 times)

paramerius

  • New Member
  • *
  • Posts: 26
  • Karma: 73
  • I want both my kidneys, so budget for life!
  • Decks
Importing collection exported from deckstats
« on: April 10, 2021, 12:56:02 pm »
Hi, I exported my collection to divide it into two CSV files (made copy of the original and left only the first line, then copy and paste from one to the other file) and now I can't import either of them. It says:

Error: Unexpected number of separators in line #1. If the card name contains a comma, try to enclose it in quotation marks. If it contains a quotation mark, add a backslash in front of it like this: \"

 How can i do it then? the first line from CSV looks like this:

amount,card_name,is_foil,is_pinned,set_id,set_code,collector_number,language,condition,comment,added
I want both my kidneys, so budget for life!

Nils

  • Hero Member
  • *****
  • Posts: 1792
  • Karma: 854
  • Decks
Re: Importing collection exported from deckstats
« Reply #1 on: April 10, 2021, 01:08:15 pm »
"Line #1" refers to the first line of data, so the one following the header line that you pasted here. What does that one say?

paramerius

  • New Member
  • *
  • Posts: 26
  • Karma: 73
  • I want both my kidneys, so budget for life!
  • Decks
Re: Importing collection exported from deckstats
« Reply #2 on: April 10, 2021, 01:08:56 pm »
8,"Swamp",,,"","M21","268","","","",""

And that one wasn't even edited at all
I want both my kidneys, so budget for life!

Nils

  • Hero Member
  • *****
  • Posts: 1792
  • Karma: 854
  • Decks
Re: Importing collection exported from deckstats
« Reply #3 on: April 10, 2021, 01:33:32 pm »
Can you send me a copy of the entire file? Either as an attachment here or via email.

paramerius

  • New Member
  • *
  • Posts: 26
  • Karma: 73
  • I want both my kidneys, so budget for life!
  • Decks
Re: Importing collection exported from deckstats
« Reply #4 on: April 10, 2021, 01:46:08 pm »
"original file" is just an exported collection, the other two files are the modified ones i can't import.
I want both my kidneys, so budget for life!

Nils

  • Hero Member
  • *****
  • Posts: 1792
  • Karma: 854
  • Decks
Re: Importing collection exported from deckstats
« Reply #5 on: April 10, 2021, 06:33:11 pm »
It looks like something messed up the formatting when you created the new files. For example, the first line of collection.csv is actually this:

"8,""Swamp"",,,"""",""M21"",""268"","""","""","""","""""

All of those extra quotation marks are causing the problems. You can have a look at the files with a plain text editor like Notepad to see for yourself.

paramerius

  • New Member
  • *
  • Posts: 26
  • Karma: 73
  • I want both my kidneys, so budget for life!
  • Decks
Re: Importing collection exported from deckstats
« Reply #6 on: April 10, 2021, 06:40:46 pm »
Thanks, now I think I know what to do.

Edit: that was painful for my eyes but here is the solution that worked.
1. Using ctrl+H in excel delete every quote (") from the file
2. Using ctrl+H change every comma (,) to semicolon (;)
3. Manually change every semicolon in card names back to comma (that was a pain with 2999 lines of text)
4. Use Text to Column tool and separate the text using semicolon as separator.
5. You can now safely import your CSV file choosing semicolon as separator in importing tool on website.
« Last Edit: April 10, 2021, 07:42:38 pm by paramerius »
I want both my kidneys, so budget for life!