Upload user not working

Upload user not working

by Aditya Dubay -
Number of replies: 2

Hi 

I am using Moodle 2.5.9

Upload user starts throwing error after uploading csv when we click on upload users:

Error occur during loading CSV file!

More information about this error

Debug info: 
Error code: csvloaderror
Stack trace:
  • line 476 of /lib/setuplib.php: moodle_exception thrown
  • line 126 of /admin/tool/uploaduser/index.php: call to print_error()
 What happen suddenly
Please help me
Average of ratings: -
In reply to Aditya Dubay

Re: Upload user not working

by Venkata Surreddy Dwarampudi -

Hi,

As per moodle docs, here are the possible reasons related to CSV file format to cause the error:

  1. First line must contain column headings SPELLED correctly
  2. There should not be quotes (i.e. ")
  3. There should not be a trailing comma (i.e. ,)
  4. When uploading custom profile field names, make sure that the short name is in lowercase
  5. Usernames must be in lowercase in the file to be uploaded

Please check above and try again. If still the problem persists, would you please provide the CSV file. So that it is possible to verify the records and let you know further suggestions.

Average of ratings: Useful (1)
In reply to Aditya Dubay

Re: Upload user not working

by Jamie Kramer -

I know this may not feel like a good answer to the issue you are experiencing, but I wanted to point out that perhaps an upgrade would be in order. The support of Moodle 25 has ended: https://docs.moodle.org/dev/Releases#Moodle_2.5

I suggest: consider trying a trial/test upgrade on a data-copy of the site to supported Moodle versions and see if it is a bug that has been fixed.