Skip to content

Cannot import zero (0) value into custom attribute #12083

Closed
@gwilliams01

Description

@gwilliams01

When using the Admin product import feature it is not possible to import a zero (0) value into custom attribute field. Instead the value is unchanged.

Preconditions

Magento 2.1.9

Steps to reproduce

  1. Create custom attribute using Text Field input type
  2. Create product import CSV with "additional_attributes" column populated "custom_attribute_code=0"
  3. Import - Entity Type "Products" - Import Behaviour "Add/Update (all others default)
  4. "Check Data" - No errors
  5. Click "Import" button

Expected result

  1. Product "custom_attribute_code" should be updated with zero (0) value

Actual result

  1. Product "custom_attribute_code" does not change

Metadata

Metadata

Assignees

Labels

Fixed 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.1.xThe issue has been reproduced on latest 2.1 releaseReproduced 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