Magento2: Export Products bug. I can't exclude attributes from CSV file.

Created on 11 Apr 2018  路  12Comments  路  Source: magento/magento2

I can't exclude some attributes from CSV file with with all products. Checkboxes don't work properly.


Preconditions


  1. Magento 2.2.2 & 2.3.x
  2. mysql Ver 15.1 Distrib 10.0.31-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
  3. PHP 7.0.22

Steps to reproduce

  1. Make sure you have products in your Magento 2.
  2. Create a couple of custom attributes (color, size for example). Not sure this field is __required__. I think this bug will reproduced without custom attributes.
  3. Go to BO-> System -> Data Transfer (Export).
  4. Choose:
    __Entity Type__ select = Products
    __Export File Format__ = CSV
    __Fields Enclosure__ = unchecked
  5. I tried to set checkbox on SKU field for example.

Expected result

  1. I should get CSV file wihout SKU column (see the screenshot attached below).

Actual result

  1. Here is what I get. The same screenshot attached below.


screenshot from 2018-04-11 15-15-50

ImportExport Fixed in 2.3.x Clear Description Confirmed Format is valid Ready for Work Reproduced on 2.3.x

Most helpful comment

While there isn't a 2.3.4 release, they could say something to us about how to make this work.

All 12 comments

I think SKU is requiered since its also used for matching on import. So think the real bug is that you can set exclude on SKU.

@oefterdal I tried with other attributes but it failed either. Try to exclude other attributes from CSV. It will be the same result

@AleksLi, this is not a bug. By setting this fields you can exclude some products from export, not columns.

i agree that it is confusing - i also thought that it will exclude the column!

@engcom-backlog-pb @AleksLi @simonmaass according to the documentation the column should actually be excluded from the export.

I could reproduce his on 2.3.2

Hi @engcom-Charlie. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

  • [ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.
  • [ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • [ ] 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • [ ] 4. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!

  • [ ] 5. Add label Issue: Confirmed once verification is complete.

  • [ ] 6. Make sure that automatic system confirms that report has been added to the backlog.

:white_check_mark: Confirmed by @engcom-Charlie
Thank you for verifying the issue. Based on the provided information internal tickets MC-19661 were created

Issue Available: @engcom-Charlie, _You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself._

I found out that the skip_attr (which is posted through the Exclude column) is not saved in the queue_message table.

what a shame that this was not included in 2.3.3....

While there isn't a 2.3.4 release, they could say something to us about how to make this work.

While there isn't a 2.3.4 release, they could say something to us about how to make this work.

I need a fix too please.
Regards

Was this page helpful?
0 / 5 - 0 ratings