Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Error on Form OnLoad : An item with the same key has already been added.
Michael Wolff
Posts: 4
 
Error on Form OnLoad : An item with the same key has already been added. Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Apr 12 3:00 PM
fiogf49gjkf0d

I am trying to add a C# code snippet to the OnLoad event of a form attached to a custom entity.  When I try to use the form object passed into the snippet I receive a popup with the following error:


 


An item with the same key has already been added. (mscorlib)

 


 


The Output Window shows the following error:


 


ERROR - Entity is not created/updated/removed: An item with the same key has already been added.

 


 


This happens as soon as I type "form." and expect the Intellisense auto-complete to popup.  Saleslogix version is 7.5.4.7048.


 


Thank you.

[Reply][Quote]
John Eltzroth
Posts: 1
 
Re: Error on Form OnLoad : An item with the same key has already been added. Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Apr 12 8:25 PM
fiogf49gjkf0d

We resolved this.  It was really obscure!  The forms had a text box, with a Control Id “Name”.  It’s the name of the machine (entity record), which is the database fieldname, so the form wizard called it that.  Unfortunately, in every test we ran, we used this field, and called it the same thing.  After adding and removing fields, I finally determined that the Control Id “Name” was the issue.  I renamed it to txtName, and now the form. works.  So, I’ve since renamed that field on all the forms to MachineName, so that it would be more descriptive.  We can now access the form object. 

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 2/23/2025 12:14:42 PM