﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » Specified key was not present in the dictionary</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 10:01:40 GMT</lastBuildDate><ttl>20</ttl><item><title>Specified key was not present in the dictionary</title><link>http://forum.strataframe.net/FindPost11037.aspx</link><description>I have a DevExpress grid which I have bound to a BusinessBindingSource pointing to a Business Object.&amp;nbsp; The grid is editable, and has a couple of dropdowns in it.&amp;nbsp; When I try to select from the drop downs or enter into the other fields&amp;nbsp;I am getting the error message: &lt;/P&gt;&lt;P&gt;Unexpected Error in MicroFour StrataFrame Base&lt;BR&gt;The specified key was not present in the dictionary.&lt;/P&gt;&lt;P&gt;What does this error really mean in this case?&amp;nbsp; I'm just not sure where to start looking for the problem to debug it.</description><pubDate>Mon, 27 Aug 2007 08:35:36 GMT</pubDate><dc:creator>Andria Jensen</dc:creator></item><item><title>RE: Specified key was not present in the dictionary</title><link>http://forum.strataframe.net/FindPost11083.aspx</link><description>Hrm, in this case, it means that the business object it trying to add a new row and initialize the fields in that row, however, the shared collections in the business object containing information on the fields and how to initilize them does not match the columns that are in the table.&amp;nbsp; Looking at the source code, it might be that you have an extra column in the business object that is not part of the actual table.&amp;nbsp; And it looks like it will most likely be a DateTime column because that GetFieldFromDictionaryOrdinalKey method is only called when the column's type is DateTime.</description><pubDate>Mon, 27 Aug 2007 08:35:36 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Specified key was not present in the dictionary</title><link>http://forum.strataframe.net/FindPost11065.aspx</link><description>The stack trace is as follows:&lt;/P&gt;&lt;P&gt;8/23/2007 3:33:47 PM&lt;BR&gt;Source: MicroFour StrataFrame Base&lt;BR&gt;Message: The specified key was not present in the dictionary.&lt;BR&gt;Stack:&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.DataBasics.GetFieldFromDictionaryOrdinalKey[T](Dictionary`2 dict, String key)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.DataBasics.InitializeNewRow(DataRow NewDataRow, StringCollection IgnoredFields, Dictionary`2 FieldNativeTypes)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.NewRow()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.Add(Boolean CheckSecurity)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessBindingSource.IBindingListView_AddNew()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.CurrencyManager.AddNew()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.Data.CurrencyDataController.AddNewRow()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraGrid.Views.Grid.GridView.OnActiveEditor_ValueModified(Object sender, EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraEditors.Repository.RepositoryItem.RaiseModified(EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraEditors.BaseEdit.RaiseModified()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraEditors.BaseEdit.set_IsModified(Boolean value)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraEditors.BaseEdit.OnEditValueChanging(ChangingEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraEditors.BaseEdit.set_EditValue(Object value)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraEditors.ComboBoxEdit.set_EditValue(Object value)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraEditors.PopupBaseEdit.AcceptPopupValue(Object val)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraEditors.PopupBaseEdit.DoClosePopup(PopupCloseMode closeMode)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraEditors.PopupBaseEdit.ClosePopup(PopupCloseMode closeMode)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraEditors.PopupBaseEdit.ClosePopup()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraEditors.Popup.PopupListBox.OnMouseUp(MouseEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.Utils.Controls.ControlBase.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNative&amp;#119;indow.OnMessage(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNative&amp;#119;indow.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Native&amp;#119;indow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;BR&gt;</description><pubDate>Fri, 24 Aug 2007 10:47:25 GMT</pubDate><dc:creator>Andria Jensen</dc:creator></item><item><title>RE: Specified key was not present in the dictionary</title><link>http://forum.strataframe.net/FindPost11057.aspx</link><description>Hrm, it could be that the property descriptor for that bound column is not registered.&amp;nbsp; Does the grid have an Error event or something that you could handle?&amp;nbsp; If it has an Error or DataError event or whatnot, it should give you the raw exception... if I had the stack trace, I could probably give you more information.&amp;nbsp; That message is the message thrown by the .NET generics Dictionar&amp;lt;,&amp;gt;, and we use those everywhere.</description><pubDate>Fri, 24 Aug 2007 09:36:35 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>