﻿<?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 » Business Objects and Data Access (How do I?)  » SharedDataTableKey Error - Key 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>Mon, 25 May 2026 23:33:51 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SharedDataTableKey Error - Key not present in the Dictionary</title><link>http://forum.strataframe.net/FindPost8674.aspx</link><description>Yes, Ben, this is at design time. And, of course, no stack trace... bad Visual Studio :(</description><pubDate>Thu, 03 May 2007 14:07:28 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>SharedDataTableKey Error - Key not present in the Dictionary</title><link>http://forum.strataframe.net/FindPost8100.aspx</link><description>I have a SF User Control that displays data on a grid. The Edit button displays a maintenance form dialog box so I can maintain the data.&amp;nbsp; I could not get a child dialog and BO Translations working on the user control, so after two days of failed attempts&amp;nbsp;I decided to try using&amp;nbsp;a SharedDataTableKey, which I found on a number of forum postings.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I entered a value for the &lt;FONT size=2&gt;SharedDataTableKey property on my maintenance form business object.&amp;nbsp; I then entered the same value on the user control business object.&amp;nbsp; This seemed to give me the results I was expecting, except now anytime I try to access the user control form in Visual Studio&amp;nbsp;I receive the attached error.&amp;nbsp; If I go into the designer and remove the line that sets the &lt;FONT size=2&gt;SharedDataTableKey property, I am able to view the user control once again.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;So I'm kind of stuck because I can't seem to get either option working correctly.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;Thanks,&lt;BR&gt;Tim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Thu, 03 May 2007 14:07:28 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: SharedDataTableKey Error - Key not present in the Dictionary</title><link>http://forum.strataframe.net/FindPost8673.aspx</link><description>It's looking like a design-time issue.&amp;nbsp; If the business object is at design-time, it shouldn't be trying to pull the shared DataTable.&amp;nbsp; Let me check it out; it might take some debugging.&amp;nbsp; Visual Studio isn't nice enough to give us a stack trace of where the problem is occuring... just the error itself.</description><pubDate>Thu, 03 May 2007 13:31:05 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: SharedDataTableKey Error - Key not present in the Dictionary</title><link>http://forum.strataframe.net/FindPost8670.aspx</link><description>Can I jump in here? (well, too late to ask)&lt;/P&gt;&lt;P&gt;I've got two forms sharing some BOs. I've set the SharedDataTableKeys for them. In one of them, I will be using an UltraGrid, so I dropped a BusinessBindingSource in it, and as soon as I set its BusinessObject property, I get the "The given key was not present in the dictionary." message. Any advices?</description><pubDate>Thu, 03 May 2007 10:43:57 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: SharedDataTableKey Error - Key not present in the Dictionary</title><link>http://forum.strataframe.net/FindPost8103.aspx</link><description>In your current environment and the way you have it setup with your user control, the BO may be trying to instantiate and reference the SharedDataTableKey.&amp;nbsp; When you create controls you have to check on the design mode (Me.DesignMode).&amp;nbsp; If this is False then it is safe to set this key, otherwise you may receive the error you are getting because the actual sessions for the data source keys is not established at design time.</description><pubDate>Fri, 13 Apr 2007 09:49:59 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: SharedDataTableKey Error - Key not present in the Dictionary</title><link>http://forum.strataframe.net/FindPost8101.aspx</link><description>Sorry, forgot to attach the error...:D&lt;/P&gt;&lt;P&gt;Also, I am using a BusinessBindingSource on the user control.&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Thu, 12 Apr 2007 14:27:28 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item></channel></rss>