Skip to content

Can't change attribute sets via csv import [Magento 2.1.0] #5498

@RG-1

Description

@RG-1

Steps to reproduce

  1. Magento 2.1.0
  2. Go to Stores > Attribute: Attribute Sets and create two new sets (e.g. S-1 and S-2)
  3. Assign some attributes to sets
  4. Create a csv file with products. Value of attribute_set_code should be "S-1"
  5. Go to System > Data transfer: Import
  6. Import products [Import Behavior: Add/Update]
  7. Edit csv file. Change value of attribute_set_code to "S-2"
  8. Go to System > Data transfer: Import
  9. Import products [Import Behavior: Add/Update]
  10. Nothing is changed, so import products one more time, but change Import Behavior to Replace

Expected result

  1. Since Magento 2.1.0 it is possible to change attribute sets when editing products. I think that it should be possible on products update via import.

Actual result

  1. Attribute Sets are not changed.
  2. Imports are successful, without any errors.
  3. Only way to change attributes set is to delete products with old set and import products with new set.

Example files

"sku","store_view_code","attribute_set_code","product_type","categories","product_websites","name","weight","product_online","tax_class_name","visibility","price","url_key","display_product_options_in","msrp_display_actual_price_type","country_of_manufacture","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"
"Simple1",,"S-1","simple","Default Category/issue",,"Simple 1",1,1,"Taxable Goods","Catalog, Search",10,,"Block after Info Column","Use config",,5,0,1,0,0,1,1,0,0,1,1,,1,0,1,1,0,1,0,0,1,0,1
"Simple2",,"S-1","simple","Default Category/issue",,"Simple 2",1,1,"Taxable Goods","Catalog, Search",20,,"Block after Info Column","Use config",,5,0,1,0,0,1,1,0,0,1,1,,1,0,1,1,0,1,0,0,1,0,1
"Simple3",,"S-1","simple","Default Category/issue",,"Simple 3",1,1,"Taxable Goods","Catalog, Search",30,,"Block after Info Column","Use config",,5,0,1,0,0,1,1,0,0,1,1,,1,0,1,1,0,1,0,0,1,0,1
"sku","store_view_code","attribute_set_code","product_type","categories","product_websites","name","weight","product_online","tax_class_name","visibility","price","url_key","display_product_options_in","msrp_display_actual_price_type","country_of_manufacture","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"
"Simple1",,"S-2","simple","Default Category/issue",,"Simple 1",1,1,"Taxable Goods","Catalog, Search",10,,"Block after Info Column","Use config",,5,0,1,0,0,1,1,0,0,1,1,,1,0,1,1,0,1,0,0,1,0,1
"Simple2",,"S-2","simple","Default Category/issue",,"Simple 2",1,1,"Taxable Goods","Catalog, Search",20,,"Block after Info Column","Use config",,5,0,1,0,0,1,1,0,0,1,1,,1,0,1,1,0,1,0,0,1,0,1
"Simple3",,"S-2","simple","Default Category/issue",,"Simple 3",1,1,"Taxable Goods","Catalog, Search",30,,"Block after Info Column","Use config",,5,0,1,0,0,1,1,0,0,1,1,,1,0,1,1,0,1,0,0,1,0,1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions