Problem
When importing there is an error and the import fails.
Environment
You might see error message like this:
Entry #3: Error adding 2/219 ImportTeacher(name=u'teacher1',
school='EVA',
dn=u'uid=teacher1',
old_dn=None) (source_uid:connexion-ssw record_uid: 11829), does probably
already exist.
More than 0 errors.
Traceback (most recent call last):
File
"/usr/lib/pymodules/python2.7/ucsschool/importer/mass_import/mass_import.py",
line 123, 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 264, in create_and_modify_users
self._add_error(exc)
File
"/usr/lib/pymodules/python2.7/ucsschool/importer/mass_import/user_import.py",
line 755, in _add_error
"More than {} errors.".format(self.config["tolerate_errors"]),
self.errors
TooManyErrors: More than 0 errors.
This indicates the user with the uid “teacher1” already existed and has been created at an earlier state manually.
Solution
Option 1
Set the missing values so the importer recons the user:
udm users/user modify --dn uid=teacher1,cn=lehrer,cn=users,ou=EVA,dc=connexion,dc=schulen,dc=ucs --set ucsschoolSourceUID=EVA --set ucsschoolRecordUID=11829
Option 2
Delete the user (i.e. through UMC).