ACSD-66082: Uploading a CSV file with the swatch_image field set to EMPTY_VALUE to unset swatch…
Uploading a CSV file with the swatch_image field set to EMPTY_VALUE to unset swatch images causes the import process to fail with an error. Quality patch ACSD-66082 for magento/module-catalog-import-export applies to Magento Open Source and Adobe Commerce 2.4.6 to 2.4.8-p5.
- Categories
- Import/Export, Content
- Components
- magento/module-catalog-import-export
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.68
Issue
Uploading a CSV file with the swatch_image field set to EMPTY_VALUE to unset swatch images causes the import process to fail with an error.
Steps to reproduce
1. Create a simple product. Go to Catalog > Products. Click the down arrow next to the Add Product button and choose Simple Product. Set its SKU to ABC. 1. Upload a PNG image named testing.png to var/import/images/. 1. Create a CSV file with the following content: sku,swatch_image,swatch_image_label ABC,testing.png,testing 1. Go to System > Import to import the file by adjusting the following settings: * Entity type: Products * Import Behavior: Add/Update * Click Choose File to select the CSV file created in the previous step to import. The import is successful, and the swatch is added. 1. Update the CSV with the following content: sku,swatch_image,swatch_image_label ABC,__EMPTY__VALUE__,__EMPTY__VALUE__ 1. Repeat the import process.
Adobe's page lists 2.4.6 - 2.4.8-p1 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.
Adobe scheduled the permanent fix for 2.4.9.
Install
Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACSD-66082. On Cloud, add ACSD-66082 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-66082/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.
Patch files and compatible versions
magento/magento2-base >=2.4.6 <2.4.9
- Magento Open Source
- 2.4.8-p5, 2.4.8-p4, 2.4.8-p3, 2.4.8-p2, 2.4.8-p1, 2.4.8, 2.4.7-p10, 2.4.7-p9, 2.4.7-p8, 2.4.7-p7, 2.4.7-p6, 2.4.7-p5, 2.4.7-p4, 2.4.7-p3, 2.4.7-p2, 2.4.7-p1, 2.4.7, 2.4.6-p15, 2.4.6-p14, 2.4.6-p13, 2.4.6-p12, 2.4.6-p11, 2.4.6-p10, 2.4.6-p9, 2.4.6-p8, 2.4.6-p7, 2.4.6-p6, 2.4.6-p5, 2.4.6-p4, 2.4.6-p3, 2.4.6-p2, 2.4.6-p1, 2.4.6
- Adobe Commerce
- 2.4.8-p5, 2.4.8-p4, 2.4.8-p3, 2.4.8-p2, 2.4.8-p1, 2.4.8, 2.4.7-p10, 2.4.7-p9, 2.4.7-p8, 2.4.7-p7, 2.4.7-p6, 2.4.7-p5, 2.4.7-p4, 2.4.7-p3, 2.4.7-p2, 2.4.7-p1, 2.4.7, 2.4.6-p15, 2.4.6-p14, 2.4.6-p13, 2.4.6-p12, 2.4.6-p11, 2.4.6-p10, 2.4.6-p9, 2.4.6-p8, 2.4.6-p7, 2.4.6-p6, 2.4.6-p5, 2.4.6-p4, 2.4.6-p3, 2.4.6-p2, 2.4.6-p1, 2.4.6
- Patch file
- patches/os/ACSD-66082_2.4.6-p5.patch
- vendor/magento/module-catalog-import-export/Model/Import/Product.php
