Bug 50032 - Import raises RuntimeError about empty self.school_classes
Import raises RuntimeError about empty self.school_classes
Status: RESOLVED WONTFIX
Product: UCS@school
Classification: Unclassified
Component: Import scripts
UCS@school 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-08-20 16:38 CEST by Valentin Heidelberger
Modified: 2023-08-22 10:53 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.143
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2019082021000703
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Valentin Heidelberger univentionstaff 2019-08-20 16:38:53 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.
Comment 1 Michel Smidt 2019-08-20 16:47:44 CEST
Can you provide the anonymous CSV file?
Comment 2 Jan-Luca Kiok univentionstaff 2023-08-22 10:53:00 CEST
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.