Orchestrator upgrade from 2022.4.x to 2025.10.x error

I’m currently trying to upgrade UiPath Orchestrator from 2022.4.x to 2025.10.x and I’m running into an issue during the installation/migration step.

During the upgrade, the process fails with the following error:

System.Exception: Migration failed: An item with the same key has already been added.
Key: Allow to be Automation Developer - Custom

The error appears during the migration phase and causes the installer to stop. From what I can see, it seems related to permissions or roles, possibly a duplicated custom permission or role that already exists in the database.

I’ve attached the full error message and stack trace to this post for reference.

Has anyone encountered this issue before during an Orchestrator upgrade?
Is there a recommended way to identify and clean up the duplicate key (for example, in roles/permissions) before retrying the upgrade, or is there an official workaround for this scenario?

Any guidance or best practices would be greatly appreciated.

Thanks in advance for your help!
New Text Document.txt (7.3 KB)

Hi @mkriznjak

Duplicate custom permission/role in the Orchestrator DB is blocking the upgrade.

  • Backup DB
  • Find permission named “Allow to be Automation Developer - Custom”
  • Rename or remove the custom duplicate (don’t touch built-in ones)
  • Rerun upgrade

newer Orchestrator versions don’t allow duplicate permission names during migration.

1 Like

Could I rename it through user interface of Orchestrator or only through DB? And in which DB table could I find it?

Hi @mkriznjak

Check out this thread

Regards
Gokul

We have checked and there were 2 roles with name: Allow to be Automation Developer, but there was no none Custom… So we renamed the one of them, and started upgrade again..

Again we got the same error message, but the istuation in db.roles is this one. Should we delete all roles with - Custom?

@mkriznjak

looks like from screenshot there are multiple roles which are duplicated. try to delete the duplicate ones and try

better take a back up to ensure if you want to delete all roles as well

cheers