Skip to content

Possible bug with invalidated rows #220

@mbijnsdorp

Description

@mbijnsdorp

Hi,

I'm running into the following issue with my customer import, but I found the same logic is also applied to the other imports.

Say I want to import 5 customer rows. Row number 1 contains invalid data (duplicate email) and the row number is added to _invalidRows. The data for this row will not be prepared for import, so is no longer included in the bunches.

When the import comes to importing the data after it has been validated (continue after errors is set to yes), there are 4 rows remaining, but the rownumbers are reset, so we have row 0 to 3. When the importer validates each row in the _saveCustomers() function, it says row number 1 is invalid. However this is no longer true, as row number 1 is no longer in the bunch data, so actually valid data is invalidated and not imported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions