MDVA-31590: Unable to update attributes in bulk using MySQL async queues

The MDVA-31590 patch solves the issue where the users are unable to update attributes in bulk using MySQL async queues. This patch is available when the Quality Patches Tool (QPT) 1.1.3 is installed. The patch ID is MDVA-31590. Please note that the issue was fixed in Adobe Commerce 2.4.2.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.0

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.0-2.4.1-p1
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.


Users are not able to update attributes in bulk using MySQL async.

Steps to reproduce:

  1. On the product grid in the backend, perform a mass action to update attribute values for a few products.
    • Check products and select Update Attributes from the Actions dropdown.
  2. Set values for the required attributes and assign products to websites and save.
  3. Once the page reloads, it will display a message like the following:
    Task “Update attributes for N selected products”: 1 item(s) have been scheduled for an update.
  4. Wait for few seconds and reload the backend page.

Expected results:

  1. The page displays a successful update message like: 1 item(s) have been successfully updated.
  2. Attribute values for related products are updated.
  3. In DB, new records are created in both magento_bulk table and magento_operation table (operations related to the bulk).
  4. New record(s) are created in the queue_message table (related to the queues product_action_attribute.update and/or
  5. queue_message_status table have records with status “4”.
  6. There are NO errors in system.log.

Actual results:

  1. The page still displays a message like the following:
    Task “Update attributes for N selected products”: 1 item(s) have been scheduled for an update.
  2. Attribute values for the products are updated.
  3. A new record is created in message_bulk table, but there is no related record(s) in magento_operation table.
  4. New records are created in queue_message and queue_message_status tables.
  5. queue_message_status table has record with error status (status value “6”).
  6. system.log contains error similar to the following:
    main.CRITICAL: Message has been rejected: SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘operation_key’ cannot be null, query was: INSERT INTO {{magento_operation}} ({{id}}, {{bulk_uuid}}, {{topic_name}}, {{serialized_data}}, {{result_serialized_data}}, {{status}}, {{error_code}}, {{result_message}}, {{operation_key}}) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [] []

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:

For info about other patches available in QPT, refer to the Patches available in QPT section.