ACSD-66082: Cannot update the swatch image of a product through product import
The ACSD-66082 patch fixes the issue where it was not possible to update the swatch image of a product through product import. This patch is available when the Quality Patches Tool (QPT) 1.1.68 is installed. The patch ID is ACSD-66082. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.6-p5
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.6 - 2.4.8-p1
magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.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:
-
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.
-
Upload a PNG image named testing.png to
var/import/images/. -
Create a CSV file with the following content:
code language-text sku,swatch_image,swatch_image_label ABC,testing.png,testing -
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.
-
Update the CSV with the following content:
code language-text sku,swatch_image,swatch_image_label ABC,__EMPTY__VALUE__,__EMPTY__VALUE__ -
Repeat the import process.
Expected results:
The swatch image is unset.
Actual results:
The import process throws an error.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.