KeyNotFoundException: The Given Key Was Not Present In The Dictionary

Orchestrator Update Failure - System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

Error Message: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at UiPath.OrchestratorCAs.ConfigurationService.GetFileSystemStorageFolder(String storageLocation)
at UiPath.OrchestratorCAs.CustomActions.Deferred.UpgradeIisConfigurationAction.Execute()
at UiPath.OrchestratorCAs.CustomActions.Base.BaseCustomAction.InternalExecute()


Root Cause: Storage.Location path is not in correct format in UiPath.Orchestrator.dll.config file.

Resolution: During the upgrade of Orchestrator, the KeyNotFoundException might be thrown if storage location is not in correct format in UiPath.Orchestrator.dll.config file.

It should be in format

  • <add key="Storage.Location" value="RootPath=\\shared path\\" />