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.
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?