magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Cannot select attribute to export

Open PedroGuerraTrellis opened this issue 4 years ago • 13 comments

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

Preconditions Magento 2.4.2 mysql Maria db 10.3 PHP 7.4 Steps to reproduce Make sure you have products in your Magento 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.

Go to BO-> System -> Data Transfer (Export).

Choose: Entity Type select = Products Export File Format = CSV Fields Enclosure = unchecked I tried to set checkbox on SKU field for example. Expected result I should get CSV file wihout SKU column (see the screenshot attached below). Actual result All attribute is being included on csv files besides the selection

  • [ ] Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • [ ] Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • [X] Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • [ ] Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • [ ] Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

PedroGuerraTrellis avatar Oct 01 '21 21:10 PedroGuerraTrellis

Hi @PedroGuerraTrellis. Thank you for your report. To help us process this issue please make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

Please, add a comment to assign the issue: @magento I am working on this


:warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

m2-assistant[bot] avatar Oct 01 '21 21:10 m2-assistant[bot]

Hi @engcom-Delta. 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.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.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.

m2-assistant[bot] avatar Oct 04 '21 14:10 m2-assistant[bot]

Hi @PedroGuerraTrellis, Kindly describe more on below step to reproduce the issue. Go to BO-> System -> Data Transfer (Export).

Thanks

engcom-Delta avatar Oct 04 '21 14:10 engcom-Delta

Hi @engcom-Delta, To reproduce the issue, you'll need a fresh Magento installation (I'm pretty convinced that this bug is happening on all versions). I'm using sample data. Go to Admin page, System > Export > Select Product on Entity Type. Then, select all attribute but sku and export.

Expected result: A CSV file with sku.

Actual outcome: sku,store_view_code,attribute_set_code,product_type,categories,product_websites,swatch_image_label,map_enabled,product_options_container,additional_attributes,qty,out_of_stock_qty,use_config_min_qty,is_qty_decimal,allow_backorders,use_config_backorders,min_cart_qty,use_config_min_sale_qty,max_cart_qty,use_config_max_sale_qty,is_in_stock,notify_on_stock_below,use_config_notify_stock_qty,manage_stock,use_config_manage_stock,use_config_qty_increments,qty_increments,use_config_enable_qty_inc,enable_qty_increments,is_decimal_divided,website_id,deferred_stock_update,use_config_deferred_stock_update,related_skus,related_position,crosssell_skus,crosssell_position,upsell_skus,upsell_position,additional_images,additional_image_labels,hide_from_product_page,custom_options,bundle_price_type,bundle_sku_type,bundle_price_view,bundle_weight_type,bundle_values,bundle_shipment_type,configurable_variations,configurable_variation_labels,giftcard_type,giftcard_allow_open_amount,giftcard_open_amount_min,giftcard_open_amount_max,giftcard_amount,use_config_is_redeemable,giftcard_is_redeemable,use_config_lifetime,giftcard_lifetime,use_config_allow_message,giftcard_allow_message,use_config_email_template,giftcard_email_template,associated_skus,downloadable_links,downloadable_samples 617136,,Default,simple,,base,,,,,0.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,0,1,,,,,,,"/n/j/nja69l9yquimcepnzqmy_1_1.jpg,/e/e/ee6hnmyrwmbnbmqkhmq5_1_1.jpg,/d/e/deaw7eahfez7d2tmbpc3_1_1.png",",,",,"name=Subscription,type=drop_down,required=1,price=0.000000,sku=,max_characters=0,file_extension=,image_size_x=0,image_size_y=0,price_type=fixed,option_title=One Time|name=Subscription,type=drop_down,required=1,price=0.000000,sku=,max_characters=0,file_extension=,image_size_x=0,image_size_y=0,price_type=fixed,option_title=Every day for 1 installments|name=Subscription,type=drop_down,required=1,price=0.000000,sku=,max_characters=0,file_extension=,image_size_x=0,image_size_y=0,price_type=fixed,option_title=Every 11 days|name=Subscription,type=drop_down,required=1,price=0.000000,sku=,max_characters=0,file_extension=,image_size_x=0,image_size_y=0,price_type=fixed,option_title=Every 11 days for 1 installments|name=Subscription,type=drop_down,required=1,price=0.000000,sku=,max_characters=0,file_extension=,image_size_x=0,image_size_y=0,price_type=fixed,option_title=Every 11 days",,,,,,,,,,,,,,,,,,,,,,,, 617056,,Default,simple,,base,,,,,,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 617337,,Default,simple,,base,,,,,,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 617092,,Default,simple,,base,,,,,,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 617013,,Default,simple,,base,,,,,,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 617083,,Default,simple,,base,,,,,,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 617061,,Default,simple,,base,,,,,,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 277849,,Default,simple,,base,,,,,,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 617338,,Default,simple,,base,,,,,,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 277848,,Default,simple,,base,,,,,,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 617052,,Default,simple,,base,,,,,,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 617062,,Default,simple,,base,,,,,,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 617055,,Default,simple,,base,,,,,,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 617336,,Default,simple,,base,,,,,,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 617134,,Default,simple,,base,,,,,,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 617079,,Default,simple,,base,,,,,,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 617207,,Default,simple,,base,,,,,,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 617090,,Default,simple,,base,,,,,,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 617660,,Default,simple,,base,,,,,,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

PedroGuerraTrellis avatar Oct 04 '21 18:10 PedroGuerraTrellis

Hi @engcom-Hotel. 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.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.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.

m2-assistant[bot] avatar Oct 26 '21 13:10 m2-assistant[bot]

@magento give me 2.4-develop instance

engcom-Hotel avatar Dec 09 '21 11:12 engcom-Hotel

Hi @engcom-Hotel. Thank you for your request. I'm working on Magento instance for you.

Hi @engcom-Hotel, here is your Magento Instance: https://2dded202599561ce28cc3e3e34c1d323-2-4-develop.instances.magento-community.engineering Admin access: https://2dded202599561ce28cc3e3e34c1d323-2-4-develop.instances.magento-community.engineering/admin_f768 Login: 4ef304e5 Password: 857c8b852b9d

Hello @PedroGuerraTrellis,

We are able to reproduce the issue in Magento 2.4-develop branch with the given steps. We have also gone through the document, the line mentioned in the document is as follows:

To omit an attribute from the export, select the Exclude checkbox at the beginning of the row. For example, to export only the sku and image columns, select the checkbox of every other attribute. The column appears in the export file, but without any values.

Hence confirming the issue.

Thanks

engcom-Hotel avatar Dec 09 '21 11:12 engcom-Hotel

:white_check_mark: Jira issue https://jira.corp.magento.com/browse/AC-1958 is successfully created for this GitHub issue.

github-jira-sync-bot avatar Dec 09 '21 11:12 github-jira-sync-bot

:white_check_mark: Confirmed by @engcom-Hotel. Thank you for verifying the issue.
Issue Available: @engcom-Hotel, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

m2-assistant[bot] avatar Dec 09 '21 11:12 m2-assistant[bot]

Assign to me

bireney avatar Jan 17 '22 12:01 bireney

Hi @PedroGuerraTrellis ,

Thanks for your reporting and collaboration. We have re-verified the issue in latest 2.4-develop instance and the issue is reproducible. Kindly refer the screenshots.

Steps to reproduce

  1. Entity Type select = Products
  2. Export File Format = CSV
  3. Fields Enclosure = unchecked
  4. I tried to set checkbox on SKU field for example. Observe , All attribute is being included on csv files besides the selection image

Thanks.

engcom-Delta avatar Oct 17 '24 13:10 engcom-Delta

Hi @PedroGuerraTrellis,

Adobe Commerce Engineering team started working on this issue. We will reach out to you if we need more information and you will get notified once the issue is fixed. Please leave comments for any further questions. Thank you!

engcom-Bravo avatar Oct 13 '25 12:10 engcom-Bravo

Hi @PedroGuerraTrellis,

Thank you for your valuable contribution. The Adobe Commerce Engineering team has reviewed the issue, and noticed that this is default behaviour of Magento.

Explanation:

SKU is a permanent/mandatory column in Magento 2 product export. The attribute selector only affects exportable EAV attributes; permanent/system fields like sku are always included. So seeing sku in the CSV even when “excluded” is expected behavior.

Pls follow the external reference url where sku is mentioned as required attribute in export https://experienceleague.adobe.com/en/docs/commerce-admin/systems/data-transfer/data-attributes-product?utm_source=chatgpt.com#token_type=bearer&expires_in=86399997

Thanks.

engcom-Bravo avatar Oct 15 '25 10:10 engcom-Bravo

Hi @PedroGuerraTrellis,

This issue is being closed since it has not been updated in a long time.Please feel free to reopen or raise a new ticket if the issue still exists.

Thanks.

engcom-Bravo avatar Oct 27 '25 11:10 engcom-Bravo