Error: The given key was not present in the dictionary
search cancel

Error: The given key was not present in the dictionary

book

Article ID: 368224

calendar_today

Updated On:

Products

CA IT Asset Manager Asset Portfolio Management Asset Management Solution Asset Management Suite ASSET PORTFOLIO MGMT- SERVER CA IT Asset Manager CA Service Management - Asset Portfolio Management CA Software Asset Manager (CA SAM)

Issue/Introduction

The first time you login to Asset Portfolio Manager and go to Administration and Web Service tab you always get this:

The error message says:
Error(s)
The given key was not present in the dictionary.

This only happens when you are using SSL and port 443, and it only happens the first time you access that page.  After that, if you revisit the page you don’t see the error.

Steps to reproduce:

  1. Do a full stop and start of IIS (don’t just restart)
  2. Login to ITPAM
  3. Navigate to Administration -> Web Services

Environment

IT Asset Management v17.4 and up

Cause

The issue could have been with the configurations checksum in al_meta_binary_store that gets calculated for a logged in user.

We suspect that your ITAM administrator might have created new customizations on the configurations which might not have been included in the existing checksum there by making it stale. Downloading the WSDL after deleting the record regenerates a fresh checksum for the system for that user with the latest permission set.

 

Resolution

Usually, the checksum gets updated when a fresh WSDL is downloaded but in cases like this where we see an unusual behavior, we can use this workaround.

-- check if any existing records

select * from al_meta_binary_store where creation_user='<userid>'; 

-- if a record is present, delete the one record using below query

delete from al_meta_binary_store where creation_user='<userid>'; 

commit;

IISRESET