nopSolutions / nopCommerce

ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
https://www.nopcommerce.com
Other
9.21k stars 5.29k forks source link

Error when importing Customers #7209

Closed duc-tv closed 4 months ago

duc-tv commented 4 months ago

nopCommerce version: 4.7

Steps to reproduce the problem: When importing customers, we encountered an error:

image

I have checked the code, and the error occurs in the function ImportManager.ImportCustomersFromXlsxAsync

Currently, in the function, the variable rolesToSave is declared for each customer, but it is not cleared after each iteration. This causes the error to occur from the second customer onward.

skoshelev commented 4 months ago

Closed #7209