Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64959

Leading spaces causes ERROR when uploading users via CSV

XMLWordPrintable

    • MOODLE_35_STABLE, MOODLE_36_STABLE
    • MOODLE_35_STABLE, MOODLE_36_STABLE
    • MDL-64959_master
    • Hide
      1.  Login as admin
      2. Go to Dashboard > Site administration > Users > Accounts > Upload users
      3. Create a CSV file :
        1. First line of CSV file looks like : username,password,firstname,lastname,email,course1, group1   (Note the space before group1)
        2. Enter random data for 1 or 2 users for each header field.
      4. Upload it on the page we get at step 2
      5. Click on the "Upload Users" button below
      6. Users data should be uploaded and displayed without any error
      Show
       Login as admin Go to Dashboard > Site administration > Users > Accounts > Upload users Create a CSV file : First line of CSV file looks like : username,password,firstname,lastname,email,course1, group1   (Note the space before group1) Enter random data for 1 or 2 users for each header field. Upload it on the page we get at step 2 Click on the "Upload Users" button below Users data should be uploaded and displayed without any error

      I noticed when uploading a users CSV that I accidentally left a space before the “group1” heading in the CSV.

      The error message says ‘“group1” is an invalid header’ which was quite confusing since the extra space was not clearly visible in the message.

            abhikr Abhimanyu Kumar
            tallthom Thom Rawson
            Luca Bösch Luca Bösch
            Adrian Greeve Adrian Greeve
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.