Bug 49411 - Hint how to resolve UniqueIdError
Hint how to resolve UniqueIdError
Status: RESOLVED WONTFIX
Product: UCS@school
Classification: Unclassified
Component: HTTP-API (Kelvin)
UCS@school 4.4
Other Mac OS X 10.1
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-05-02 15:27 CEST by Michel Smidt
Modified: 2023-06-23 13:15 CEST (History)
0 users

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
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 Michel Smidt 2019-05-02 15:27:16 CEST
As domain administrator I would like to get a hint how to fix UniqueIdError to complete a user import

Two causes I see here:
1. the user is the same. Then a hint would be important on how to add the correct Source_ID + Record_ID to the UCS@school user so that the import recognizes the user.
2. the user is a new one. Then a hint how to "skip" the username would be important.



[2019-05-02 15:04:26,030: ERROR/Worker-24] Entry #0: Username 'ankwen' is already in use by 'uid=ankwen,cn=admins,cn=users,ou=mas,BASEDN' (source_uid: None, record_uid: None).
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/ucsschool/importer/mass_import/user_import.py", line 171, in create_and_modify_users
    user.validate(self.connection, validate_unlikely_changes=True, check_username=True)
  File "/usr/lib/pymodules/python2.7/ucsschool/importer/models/import_user.py", line 1105, in validate
    self._check_username_uniqueness()
  File "/usr/lib/pymodules/python2.7/ucsschool/importer/models/import_user.py", line 1116, in _check_username_uniqueness
    self.name, uut.dn, uut.source_uid, uut.record_uid))
UniqueIdError: Username 'ankwen' is already in use by 'uid=ankwen,cn=admins,cn=users,ou=mas,BASEDN' (source_uid: None, record_uid: None).
Comment 1 Jan-Luca Kiok univentionstaff 2023-06-23 13:15:30 CEST
This issue has been filed against UCS 4.4.

UCS 4.4 is out of maintenance and UCS components may have vastly changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.