Resolution when Robots page shows blank and an error after refresh in UiPath Orchestrator 2019.10.x .
Error Description: Robots page shows blank and an error after refresh in UiPath Orchestrator 2019.10.x. In the event viewer logs, the following error message is logged:
System.ArgumentException: An item with the same key has already been added. at void System.Collections.Generic.Dictionary.Insert(TKey key, TValue value, bool add) at Task<Dictionary>...
Root Cause: This issue is Orchestrator DB related.
Specifically, dbo.RobotLicenses table having duplicate RobotIDs would cause the error.
Resolution: The below steps has resolved the issue,
- Please delete the temp files in the database server and restart the same.
- If the issue still persists, please enable the automatic migration in the web.config file(Renamed to Uipath.orchestrator.dll.config file from 20.10) of orchestrator server, restart the IIS and try again.
- To restart the IIS-> Goto orchestrator server-> Open CMD as admin-> Run the command IISRESET.
- If dbo.RobotLicenses table has duplicate RobotIDs, delete one of them.