Hi,
I am using Moodle 2.2.7 stable version. I want to upload users using CSV. I have created my CSV using info available on Moodle Documentation. When I upload CSV file it gives proper PREVIEW Window and then I click "upload users" button and it gives error as below:
Error writing to database
More information about this error
Debug info: Column 'data' cannot be null
INSERT INTO mdl_user_info_data (userid,fieldid,data) VALUES(?,?,?)
[array (
0 => 160,
1 => '1',
2 => NULL,
)]
Stack trace:
line 397 of /lib/dml/moodle_database.php: dml_write_exception thrown
line 973 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1015 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
line 120 of /user/profile/lib.php: call to mysqli_native_moodle_database->insert_record()
line 429 of /user/profile/lib.php: call to profile_field_base->edit_save_data()
line 716 of /admin/tool/uploaduser/index.php: call to profile_save_data()
Kindly help!!