craftcms / feed-me

Craft CMS plugin for importing entry data from XML, RSS or ATOM feeds—routine task or on-demand.
Other
286 stars 140 forks source link

Can't import multiple category relationships with CSV #1320

Closed justinholtweb closed 1 year ago

justinholtweb commented 1 year ago

Description

I am unable to get Feed Me to recognize and import multiple Category relationships in a Category field for a Commerce Variant using a CSV import.

I have set up Feed Me config to use a custom delimiter: 'dataDelimiter' => '|',

My CSV column for the multiple relationship category field is set up as follows (screenshot): example-csv-column 56-x-20|27-x-36|3x8

The field is mapped properly in Feed Me. When running an import I can see matches being made to the categories based on their slugs, but Feed Me seems to only import ONE of the relationships, the first one in the matches. (Screenshots attached of the Feed Me logs) feed-me-log feed-me-only-adding-one-category

Steps to reproduce

  1. Configure Feed Me to use custom delimiter.
  2. Create a CSV with a multiple relationship value in a column.
  3. Attempt an import, check logs to see that only one of the multiple categories were imported and associated.

Happy to provide any other info needed.

Additional info

justinholtweb commented 1 year ago

Side note: I also observed this behavior on Feed Me 4.6.3.1

justinholtweb commented 1 year ago

Turns out these fields were set to only allow 1 category selection! (pie on my face). Closing this as expected behavior.