Robots Page Showing Blank And An Error After Refresh In UiPath Orchestrator 2019.10.x

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,
  1. Please delete the temp files in the database server and restart the same.
  2. 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.

  1. To restart the IIS-> Goto orchestrator server-> Open CMD as admin-> Run the command IISRESET.
  2. If dbo.RobotLicenses table has duplicate RobotIDs, delete one of them.