When an import file (csv) has two columns with the same name, only the values of the last column is imported. Feeds build and associative array per row, with the header name as key. This is the reason it fails when there are several columns with the same name. I've written a small patch that appends a counter number after the name if there are more than one row.

Source:

name = John
name = Johnny
surname = Doe

Destination before the patch:

name = Johnny
surname = Doe

Destination after the patch:

name = John
name2 = Johnny
surname = Doe

CommentFileSizeAuthor
#2 imports_fail_with-2590097-2.patch1.23 KBBarisW
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

BarisW created an issue. See original summary.

BarisW’s picture

Status: Needs review » Needs work

The last submitted patch, 2: imports_fail_with-2590097-2.patch, failed testing.