Skip to content

import new products via csv: products are created with empty value when strings are too long #17865

Closed
@LouNik1984

Description

@LouNik1984

Preconditions

magento 2.2.5 on ubuntu 16.04 with apache and php 7.1.2. Magento is a fresh install, no custom theme nor any custom module is installed. Magento has been installed by downloaded the source via composer and then run the wizard from browser.

Steps to reproduce

  1. prepare a correct csv to create new products via backend. Use short values (less then 71 characters) for name/sku for a few records, then use a longer strings ((more then 71 characters) for name/sku for other records.
  2. go to system > import:
    -- entity type = products
    -- import behaviour = add/update, skip error entries
    -- allow errors count = I tried with several numbers from 10 (default) to 500 but issue persists
    -- field separator = ; (semicolon)
    -- multiple value separator = , (comma, default)
    -- field enclosure = unchecked (default)
  3. Select the csv to import and run check data

Expected result

  • when strings are too long, I expect to see an error after I run check data. I also expect that import get blocked until all error are fixed so no products gets created until the check data allows you to proceed with the import.

Actual result

Actual results consists in two issues:

  1. Check data returns no error, so I'm able to proceed with the import. The import fails saying that there's been a system error. But I shouldn't be able to proceed since my csv contains values (the strings too long) that causes my import to fail.
  2. If I go to my product list, I can see that all the products with too long strings have been created but all the values exept sku are empty (see screenshots). Since the import has failed, no product should have been created.

SCREENSHOTS:

  1. check data returns no error:
    checkdata

  2. import fails because of the strings that are too long
    error

  3. my product list shows the products with empty values
    lista

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CatalogImportExportEvent: mm18mxFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions