Applications Systems

The given key was not present in the dictionary when trying to edit a storage object in SRM Orion

he following error appears when you open the Manager Providers page and you cannot make any changes to Storage Providers as a result of the said error: The given key was not present in the dictionary Full error message: Time: 09/06/2016 17:15:11.7462 Server: Microsoft-IIS/8.5 Pipeline: Integrated User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Error Instance: 5605e0ee20994f8aa84e1dc1c3c2b52d User: DOMAIN\username URL: h

First published date

10/12/2018 2:36 PM

Last published date

3/21/2019 6:55 PM

Overview

eThe following error appears when you open the Manager Providers page and you cannot make any changes to Storage Providers as a result of the said error:
 

The given key was not present in the dictionary

Full error message:

Time: 09/06/2016 17:15:11.7462
Server: Microsoft-IIS/8.5
Pipeline: Integrated
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Error Instance: 5605e0ee20994f8aa84e1dc1c3c2b52d
User: DOMAIN\username
URL: https://orion:443/Orion/SRM/Admin/Ed...plY3Q9U01QOjE=
Referrer: https://orion:443/Orion/SRM/Admin/Ed...plY3Q9U01QOjE=
Message: The given key was not present in the dictionary.
ErrorSite: mscorlib.Dictionary`2.get_Item
ErrorType: System.Collections.Generic.KeyNotFoundException



Product section

Storage Resource Monitor

Cause

Incorrect database entry under the EngineID column in the SRM_Providers or SRM_StorageArrays table.

Resolution

  1. Create a backup of your database.
  2. Open Database Manager on the Orion server.
  3. Click Add default database.
  4. Find the following table: 
    SRM_Providers
  5. Right-click table, select Query table.
  6. Execute the default query and click Enable editing.
  7. Update the engine number under the following column: 
    EngineID
    You can find available engine numbers in Engines table.
  8. Execute the following statement to see if changes has been saved: 
    select * from allengines
  9. Do the same for table: 
    SRM_StorageArrays