ACSD-56635: Imported customers are duplicated with same email address when account sharing set to Global
Skapat för:
- Erfaren
- Administratör
- Utvecklare
The ACSD-56635 patch fixes the issue where the imported customer is duplicated with the same email address when the import is used with account sharing set to Global. This patch is available when the Quality Patches Tool (QPT) 1.1.48 is installed. The patch ID is ACSD-56635. 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-p3
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.6 - 2.4.6-p3
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
Imported customers are duplicated with the same email address when account sharing is set to Global.
Steps to reproduce:
-
Under the Adobe Commerce (2.4-develop b2b) Admin, access Stores > Settings > Configuration > Customers > Customer Configuration > Account Sharing Options.
-
Set the Share Customer Accounts setting to Global.
-
Create multiple websites and stores:
- ws1 > s11, s12 > sw111, sw122
- ws2 > s21, s22 > sw211, sw212
-
Create a new customer under the main website from admin with email address used as adb@yormail.com.
-
Under Admin, navigate to System > Import.
-
Select Customer Entity Type as Customers Main File.
-
Use the same email address as adb@yormail.com on a different website, for example, ws1. Refer to the sample CSV file customer.csv given below.
-
Complete the import to see the new user created under the ws1 website with the same email address.
customer.csv content:
email,_website,_store,confirmation,created_at,created_in,disable_auto_group_change,dob,firstname,gender,group_id,lastname,middlename,password_hash,prefix,rp_token,rp_token_created_at,store_id,suffix,taxvat,updated_at,website_id,password
adb@yopmail.com,ws1,sv111,,09/01/24 12:49,Default Store View,0,,newjon,,1,newDoe,,d708be3fe0fe0120840e8b13c8faae97424252c6374227ff59c05814f1aecd79:mgLqkqgTwLPLlCljzvF8hp67fNOOvOZb:1,,07e71459c137f4da15292134ff459cba,30/10/15 12:49,1,,,09/01/24 12:49,1,
Expected Results:
The imported customer with the same email address is updated instead of being duplicated.
Actual Results:
Duplicate customers are created with the same email address when using the customer import.
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 released: a new tool to self-serve quality patches in the support knowledge base.
- Check if patch is available for your Adobe Commerce issue using Quality Patches Tool in the Quality Patches Tool guide.
For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.