lms icon indicating copy to clipboard operation
lms copied to clipboard

Trying to import User data throws error in the email validation part

Open Bowrna opened this issue 9 months ago • 2 comments

I have cloned the repo and started the LMS via Docker and wanted to try importing User Data as CSV. While Importing the data it throws error as InvalidEmailAddress error from frappe. Attaching the screenshot

  1. Go to Users
  2. Click on Import Data 3.Create Data CSV from blank template and upload it

Expected behavior Data getting imported and User getting created

Screenshot 2024-04-29 at 11 11 41 AM Screenshot 2024-04-29 at 11 11 19 AM

Desktop

  • OS: iOS
  • Browser Chrome
  • Version Version 123.0.6312.87 (Official Build) (arm64)

Bowrna avatar Apr 29 '24 06:04 Bowrna

@Bowrna seems like for one of the rows the email ID is incorrect. Please verify the csv once before importing. If you feel the issue persists, share the csv with me.

pateljannat avatar Apr 30 '24 05:04 pateljannat

@pateljannat I exported the sample CSV from the LMS and added the emails alone. I didn't add the column names on my own. Let me check again and let you know.

Edit: My bad, I assumed that my column name is incorrect from the above message where you replied. @pateljannat The log says the email id is invalid for all the rows. Screen shot that I have shared doesn't reveal the information completely. I will share the CSV here. test_user.csv

Bowrna avatar Apr 30 '24 05:04 Bowrna