I use a Moodle platform often for testing SCORM packages, especially because Moodle has a very extensive SCORM debugger.
At a certain point, I got into trouble because the student name (cmi.core.student_name) was in a “weird” format: where the SCORM specifications expect something in the format lastname,firstname, I suddenly got firstname middlename lastname. Because of the missing comma, our LMS no longer managed to distinguish the last name from the first name.
Turns out that there is a new option under Dashboard > Site administration > Plugins > Activity modules > SCORM package called SCORM standards mode. By default, it is set to No (why o why?) and that causes the format of the student_name to be different.