SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 38003: Unable to edit existing parameter in SAS® Enterprise Guide®

DetailsHotfixAboutRate It

In SAS Enterprise Guide, when attempting to edit or modify values in a parameter, the following error might appear.

Enterprise Guide has encountered an unexpected error; click Show Details for more information. 
--------------------------------------------------------
System.ArgumentException

Item has already been added. Key in dictionary: "var" Key being added: "var"

------------------------------ Technical Information Follows--------------------------- 

Item has already been added. Key in dictionary: "var" Key being added: "var" 

----------------------------------------------------

at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean
add)
at System.Collections.Hashtable.Add(Object key, Object value)
at SAS.Shared.Parameters.ParameterList.AddOrdered(String key)
at SAS.Shared.Parameters.ParameterList.Add(Object key, Object value)
at SAS.Shared.Parameters.ParameterList.Add(Parameter parm)
at SAS.Shared.Parameters.ParameterList.ParameterChanged(Parameter parm,String oldName)
at SAS.EG.ProjectElements.ProjectParameterCollection.ParameterChanged(Parameter parm, String oldName)
at SAS.EG.Controls.Parameters.MacroManager.EditSelectedParameter()
at SAS.EG.Controls.Parameters.MacroManager.btnEdit_Click(Object sender,EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)System.ArgumentException

Item has already been added. Key in dictionary: "var" Key being added: "var"

------------------------------ End of Technical Information------------------------------

This problem only occurs in SAS Enterprise Guide 4.1 with 41EG11 hot fix applied.

As a workaround, perform these steps:

  1. Rename the parameter's SAS code name.
  2. Modify the list of allowed values as needed.
  3. Save the project.
  4. Close SAS Enterprise Guide.
  5. Re-open SAS Enterprise Guide and the project.
  6. Rename the SAS code name back to the original name.

Select the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Enterprise GuideMicrosoft Windows Server 2003 Datacenter Edition4.14.29.1 TS1M39.2 TS2M0
Microsoft Windows Server 2003 Enterprise Edition4.14.29.1 TS1M39.2 TS2M0
Microsoft Windows Server 2003 Standard Edition4.14.29.1 TS1M39.2 TS2M0
Microsoft Windows XP Professional4.14.29.1 TS1M39.2 TS2M0
Windows Vista4.14.29.1 TS1M39.2 TS2M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.