When a UseBB user with a username that already exists on the Drupal installation is imported, the import fails without a visible error after the batch, but with the following error in the database log:

Drupal\Core\Database\IntegrityConstraintViolationException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '[user]-en' for key 'user__name': INSERT INTO {users_field_data} ...

Importing users with a preexisting username should rename the usernames using the dedupe_entity process plugin.

Comments

DietrichM created an issue. See original summary.

dietr_ch’s picture

Assigned: Unassigned » dietr_ch
dietr_ch’s picture

Issue summary: View changes

  • DietrichM committed f84a773 on 8.x-1.x
    Issue #2668728 by DietrichM: Importing users with a preexisting username...
dietr_ch’s picture

Assigned: dietr_ch » Unassigned
Status: Active » Closed (fixed)