Report exception error: The given key was not present in the dictionary

Surveyor 5.x

Knowledge Base

This error can occur if saved report settings have become corrupt or are otherwise inaccessible by Reporter.

Symptoms

Reporter displays the following error when trying to run a report (Energy Consumption in this example):

The given key was not present in the dictionary. Stack trace: at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at Verdiem.Reporting.UI.VerdiemReportViewer.CompareUser Settings(SavedReport savedReport) at Verdiem.Reporting.UI. VerdiemReportViewer.backgroundWorkerLoadReport_RunWorker Completed(Object sender, RunWorkerCompletedEventArgs e) at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted (RunWorkerCompletedEventArgs e) at System.ComponentModel. BackgroundWorker.AsyncOperationCompleted(Object arg)

Solution

  1. Remove saved report settings by deleting the .xml file that corresponds to the report. You can find the .xml file in the following locations:
    • Windows Vista: C:\Users\<username>\AppData\Roaming\Verdiem_Corporation\SavedReports
    • Windows XP: C:\Documents and Settings\<username>\Application Data\Verdiem_Corporation\SavedReports

    The file name is similar to the report title.

  2. Restart SURVEYOR Reporter and load the report.

Applies to

Product

  • Verdiem SURVEYOR 5.x versions

Component

  • SURVEYOR Reporter