I have a course with a shortname of "test" and an idnumber of "test" - when trying to import a group using the following in a csv file:
coursename,groupname,description
test,TestGroup2,This is a test group
I get this error:
Field "0" does not exist in table "course"
More information about this error
Debug info:
Error code: ddlfieldnotexist
Stack trace:
line 545 of /lib/dml/moodle_database.php: dml_exception thrown
line 1332 of /lib/dml/moodle_database.php: call to moodle_database->where_clause()
line 148 of /group/import.php: call to moodle_database->get_record()
However, if I change the .csv to this:
idnumber,groupname,description
test,TestGroup2,This is a test group
the group imports successfully. Perhaps courseid is not being set when using coursename?
- will be (partly) resolved by
-
MDL-45068 Import Groups from CSV throws various notices and confusing errors
-
- Closed
-