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
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the 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:

  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.

  2. Upload a PNG image named testing.png to var/import/images/.

  3. Create a CSV file with the following content:

    code language-text
    sku,swatch_image,swatch_image_label
    ABC,testing.png,testing
    
  4. 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.
  5. Update the CSV with the following content:

    code language-text
    sku,swatch_image,swatch_image_label
    ABC,__EMPTY__VALUE__,__EMPTY__VALUE__
    
  6. 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:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
commerce-operations-help-tools