boboldehampsink / import

DEPRECATED - Import plugin for Craft CMS
MIT License
177 stars 28 forks source link

Error on Import, "Line 2: There can’t be more than one selection." #158

Closed swthate closed 7 years ago

swthate commented 7 years ago

I am trying to get a small, test .CSV to import so I can get a maaaassive batch of data to import. I am attempting to import a "Business" entry type. When I hit import, it does its thing for a couple seconds and brings me to the history page. From there I click on the filename link (eg "1834") to see the results.

For the .CSV structure found below, I receive the following error:

Line    Errors
-----------------------------------------------
2   There can’t be more than one selection.

Here is the structure of my file:

"Alexandria, MN", Narlie's Upscale Consignment, 418 Broadway, Alexandria, MN, 56308, ISJuYu9cbzA, clothing-stores-and-boutiques

Note that in my test file I only have two entries. The second one is very similar to this one.

Here is how they are assigned:

"Alexandria, MN"              -> Town field (entry relationship)
Narlie's Upscale Consignment  -> Title field
418 Broadway                  -> Address (Street Address) field [1]
Alexandria                    -> Address (City) field
MN                            -> Address (State) field
56038                         -> Address (Zip Code) field
ISJuYu9cbzA                   -> custom YouTube video id field (text)
clothing-stores-and-boutiques -> Category field [2] [3]

Notes:

  1. The Address fields use the Smart Map plugin.
  2. My categories have a simple parent-child hierarchy. clothing-stores-and-boutiques is a child category of the where-to-shop parent category. I kept thinking I was having trouble importing the category structure, so I tried to make the test categories single-tiered (no hierarchy) but I'm still getting the same error.
  3. My categories are set to have URL/URIs.

Instances of different .CSV file structures

  1. If I revert my categories back to their true hierarchical structure and update my .CSV so that portion is correct, eg: where-to-shop/clothing-stores-and-boutiques I receive the same error message.

  2. If I assign my category part to "Ancestors" instead of "Category", like I have seen suggested in some answers here, I receive this error: Category cannot be blank., There can’t be more than one selection.. Still says it's on Line 2. This doesn't work because the particular entry type I am attempting to import requires a category.

How can I resolve this "There can't be more than one selection" error, what is even getting more than one selection?

Thank you!

swthate commented 7 years ago

Well that was embarrassing. My "Town" section of my CSV file needed to be in slug form. Now it works!