Loading

Salesforce Error 'Duplicate Username' When a User is Created or Edited After a Sandbox Refresh

Дата публикации: Jun 25, 2025
Описание

When Users try to edit or save User records in a sandbox right after the refresh completes, they might encounter an error:


Error: Duplicate Username. The username already exists in this or another Salesforce organization. Usernames must be unique across all Salesforce organizations. To resolve, use a different username (it doesn't need to match the user's email address).




 

Решение

There are 2 reasons why this might happen :


1. Previous Sandbox Not Properly Deleted - Usernames are unique across all production or sandbox instances. If the previous sandbox did not delete properly, it will retain the username and cause a conflict in the new sandbox.
2. Username Replication Delays - This can happen when a newly refreshed org and old org are on different instances, as it takes a while for the user info to be replicated in the new org.


In both these cases, the issue will resolve itself after a while. If the issue persists after 24 hours, please log a case with Support.
 

Номер статьи базы знаний

000383623

 
Загрузка
Salesforce Help | Article