I received a test course as an AICC in .zip format. I added a new blank course in Moodle, added a new SCORM activity, and uploaded the .zip file. I did not change any settings on the activity. When I saved the activity, I got an error that said "Error writing to database" with the following debug information:
Debug info: Column 'identifier' cannot be null
INSERT INTO mdl_scorm_scoes (identifier,scorm,organization,title,parent,launch,scormtype,sortorder) VALUES(?,?,?,?,?,?,?,?)
[array (
0 => NULL,
1 => '6',
2 => '',
3 => NULL,
4 => '/',
5 => '',
6 => '',
7 => 1,
)]
Error code: dmlwriteexception
INSERT INTO mdl_scorm_scoes (identifier,scorm,organization,title,parent,launch,scormtype,sortorder) VALUES(?,?,?,?,?,?,?,?)
[array (
0 => NULL,
1 => '6',
2 => '',
3 => NULL,
4 => '/',
5 => '',
6 => '',
7 => 1,
)]
Error code: dmlwriteexception
Stack trace:
- line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 1331 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1377 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
- line 293 of /mod/scorm/datamodels/aicclib.php: call to mysqli_native_moodle_database->insert_record()
- line 306 of /mod/scorm/locallib.php: call to scorm_parse_aicc()
- line 168 of /mod/scorm/lib.php: call to scorm_parse()
- line 122 of /course/modlib.php: call to scorm_add_instance()
- line 154 of /course/modedit.php: call to add_moduleinfo()
I am running Moodle 3.7.4. My AICC package is attached.