Univention Bugzilla – Bug 50032
Import raises RuntimeError about empty self.school_classes
Last modified: 2023-08-22 10:53:00 CEST
Reported by a customer. The import raises the following error during the dry_run and a traceback can be found in /var/log/univention/ucs-school-import/workers-dryrun.log Though the error is relatively descriptive about the symptom, it sounds as if the import has a problem handling the input data internally and this exception was written in case this problem occurs without an idea or at least hints why. Errors: 1 Entry | User | Error description ------------------------------------- 0 | <No name> | An unknown error terminated the import job: Input data contains school_classes data, but self.school_classes is empty. Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/ucsschool/importer/mass_import/mass_import.py", line 121, in import_users user_import.create_and_modify_users(imported_users) # 90% - 100% File "/usr/lib/pymodules/python2.7/ucsschool/importer/mass_import/user_import.py", line 149, in create_and_modify_users user = self.determine_add_modify_action(imported_user) File "/usr/lib/pymodules/python2.7/ucsschool/importer/mass_import/user_import.py", line 273, in determine_add_modify_action imported_user = self.prepare_imported_user(imported_user, user) File "/usr/lib/pymodules/python2.7/ucsschool/importer/mass_import/user_import.py", line 249, in prepare_imported_user imported_user.prepare_all(new_user=not old_user) File "/usr/lib/pymodules/python2.7/ucsschool/importer/models/import_user.py", line 516, in prepare_all self.prepare_attributes(new_user) File "/usr/lib/pymodules/python2.7/ucsschool/importer/models/import_user.py", line 536, in prepare_attributes self.make_classes() File "/usr/lib/pymodules/python2.7/ucsschool/importer/models/import_user.py", line 609, in make_classes raise RuntimeError('Input data contains school_classes data, but self.school_classes is empty.') RuntimeError: Input data contains school_classes data, but self.school_classes is empty.
Can you provide the anonymous CSV file?
This issue has been filed against UCS@school 4.4. UCS@school 4.4 is out of maintenance and components may have vastly changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.