ÃÛ¶¹ÊÓÆµ

[PaaS only]{class="badge informative" title="Applies to ÃÛ¶¹ÊÓÆµ Commerce on Cloud projects (ÃÛ¶¹ÊÓÆµ-managed PaaS infrastructure) and on-premises projects only."}

ACSD-66041: Ireland (IE) postcodes not searchable for pickup locations due to missing CountryID

The ACSD-66041 patch fixes the issue where Ireland (IE) postcodes are not searchable for pickup locations due to a missing CountryID. This patch is available when the Quality Patches Tool (QPT) 1.1.66 is installed. The patch ID is ACSD-66041. Please note that this issue is scheduled to be fixed in ÃÛ¶¹ÊÓÆµ Commerce 2.4.9.

Affected products and versions

The patch is created for ÃÛ¶¹ÊÓÆµ Commerce version:

  • ÃÛ¶¹ÊÓÆµ Commerce (all deployment methods) 2.4.7-p5

Compatible with ÃÛ¶¹ÊÓÆµ Commerce versions:

  • ÃÛ¶¹ÊÓÆµ Commerce (all deployment methods) 2.4.4 - 2.4.8
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your ÃÛ¶¹ÊÓÆµ 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

Ireland (IE) postcodes are not searchable for pickup locations due to a missing CountryID.

Steps to reproduce:

  1. Run the following GraphQL query:

    code language-graphql
    query getStoresTestError($term: String!, $radius: Int!) {
        pickupLocations(
            sort: { distance: ASC }
            area: { radius: $radius, search_term: $term }
        ) {
            items {
                    pickup_location_code
                    name
                    description
            latitude
            longitude
            country_id
            region
            city
            street
            postcode
            phone
            }
        }
    }
    
  2. Use the following variables:

    code language-none
    {
        "radius": 81,
        "term": "dublin:IE"
    }
    

Expected results:

Ireland postcodes are available to search for pickup locations.

Actual results:

  • An Internal Server Error is returned.

  • var/log/exception.log contains the following error:

    code language-none
    report.ERROR: Provided countryId does not exist.  {"exception":"[object] (GraphQL\\Error\\Error(code: 0): Provided countryId does not exist.
    

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
c2d96e17-5179-455c-ad3a-e1697bb4e8c3