Problem Note 38003: Unable to edit existing parameter in SAS® Enterprise Guide®
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:
- Rename the parameter's SAS code name.
- Modify the list of allowed values as needed.
- Save the project.
- Close SAS Enterprise Guide.
- Re-open SAS Enterprise Guide and the project.
- 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
SAS System | SAS Enterprise Guide | Microsoft Windows Server 2003 Datacenter Edition | 4.1 | 4.2 | 9.1 TS1M3 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Enterprise Edition | 4.1 | 4.2 | 9.1 TS1M3 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Standard Edition | 4.1 | 4.2 | 9.1 TS1M3 | 9.2 TS2M0 |
Microsoft Windows XP Professional | 4.1 | 4.2 | 9.1 TS1M3 | 9.2 TS2M0 |
Windows Vista | 4.1 | 4.2 | 9.1 TS1M3 | 9.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.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2009-12-11 16:13:29 |
Date Created: | 2009-12-02 14:28:06 |