ACSD-55381: Resolving error when requesting configurable product option uids from B2B requisition list

Last update: 2024-01-18
  • Created for:
  • Admin
    Developer

The ACSD-55381 patch fixes the issue where an internal server error occurs during GraphQL queries for configurable_product_option_uid and configurable_product_option_value_uid fields from a B2B requisition list. This patch is available when the Quality Patches Tool (QPT) 1.1.42 is installed. The patch ID is ACSD-55381. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.7.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.6-p2

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.2 - 2.4.6-p3
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

An internal server error occurs while querying configurable_product_option_uid and configurable_product_option_value_uid fields from a B2B requisition list via GraphQL.

Prerequisites:

  1. Adobe Commerce B2B modules are installed and enabled.
  2. Requisition List is enabled in the configuration.

Steps to reproduce:

  1. Log in as a customer on the storefront.
  2. Add a configurable product to a requisition list.
  3. Try to retrieve values for configurable_product_option_uid and configurable_product_option_value_uid fields using the getRequisitionList function in a GraphQL call.
query getRequisitionList {
  customer {
    requisition_lists(filter: { uids: { eq: "MQo=" } }) {
      items {
        items(pageSize: 1, currentPage: 1) {
          items {
            ... on ConfigurableRequisitionListItem {
              configurable_options {
                value_id
                id
                configurable_product_option_uid
                configurable_product_option_value_uid
              }
            }
          }
        }
      }
    }
  }
}

Expected results:

{
    "data": {
        "customer": {
            "requisition_lists": {
                "items": [
                    {
                        "items": {
                            "items": [
                                {
                                    "configurable_options": [
                                        {
                                            "value_id": 175,
                                            "id": 186,
                                            "configurable_product_option_uid": "MTg2",
                                            "configurable_product_option_value_uid": "MTc1"
                                        },
                                        {
                                            "value_id": 58,
                                            "id": 93,
                                            "configurable_product_option_uid": "OTM=",
                                            "configurable_product_option_value_uid": "NTg="
                                        }
                                    ]
                                }
                            ]
                        }
                    }
                ]
            }
        }
    }
}

Actual results:

An error occurs.

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 Quality Patches Tool: Search for patches in the Quality Patches Tool guide.

On this page