ACP2E-4628: Importing customers with uppercase email addresses triggers an undefined array key error when Account Sharing is set to Global
The ACP2E-4628 patch fixes the issue where importing customers with uppercase email addresses causes an undefined array key error when Account Sharing is set to Global, resulting in import failure. This patch is available when the Quality Patches Tool (QPT) 1.1.78 is installed. The patch ID is ACP2E-4628. 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.8-p1
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.8 - 2.4.8-p4
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
Customer import fails with an undefined array key error when uppercase email addresses are used with Global Account Sharing enabled.
Steps to reproduce:
-
Go to Stores > Settings > Configuration > Customers > Customer Configuration > Account Sharing Options.
- Set Share Customer Accounts to Global.
-
Go to System > Export > Customer Main File and export an existing customer.
-
Go to System > Import > Customer Main File.
- Set Import Behavior to Add/Update Complex Data.
- Upload the exported file without making any changes.
-
Click the Check Data button.
Expected results:
The customer import should complete successfully without any errors, even when email addresses contain uppercase characters and Account Sharing is set to Global.
Actual results:
The import fails with the following error:
Warning: Undefined array key "Uppercase.Email@example.com" in app/code/Magento/CustomerImportExport/Model/ResourceModel/Import/Customer/Storage.php on line 117
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.