Problem Note 64699: SAS® Enterprise Guide® stops responding and generates an error regarding an XML exception
When you open SAS Enterprise Guide, the application can stop responding and generate an error message similar to the following:
An unhandled exception of type 'System.Xml.XmlException' occurred in SAS.EG.Application.dll
Additional information: Unexpected end of file has occurred. The following elements are not closed: olapFrameProperties, Options. Line 141, position 1638.
A similar error message might also be seen in the SAS Enterprise Guide application logging:
INFO EGOptions [(null)] - Reading EG options from file C:\Users\user-ID\AppData\Roaming\SAS\EnterpriseGuide\7.1\EGOptions.xml.
ERROR SAS.EG.App [(null)] - App.Startup() - error.
System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: olapFrameProperties, Options. Line 141, position 1638.
at System.Xml.XmlTextReaderImpl.Throw(Exception)
at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
at SAS.EG.Options.EGOptions.DeserializeOptions(String fileName)
at SAS.EG.Options.EGOptions.Read(String fileName)
at SAS.EG.Options.EGOptions.get_Instance()
at SAS.EG.App.get_UICulture()
at SAS.EG.App.Startup(String[] args)
To obtain these logs, see SAS KB0036457, “Enabling logging in SAS® Enterprise Guide® 7.1 and later.”
These error messages appear because the application is experiencing an issue while reading the EGOptions.xml file in the following location: C:\Users\user-ID\AppData\Roaming\SAS\EnterpriseGuide\7.1\.
Workaround
- Close all instances of SAS® and SAS Enterprise Guide.
- Navigate to the following directory: C:\Users\user-ID\AppData\Roaming\SAS.
Note: You might need to show hidden files in order to see the AppData directory.
- Rename the EnterpriseGuide directory to old_EnterpriseGuide.
Note: The EnterpriseGuide\7.1 directory above is automatically re-generated if it is deleted and SAS Enterprise Guide is started.
- Restart SAS Enterprise Guide.
If any of the error messages appear again, contact SAS Technical Support.
Operating System and Release Information
| SAS System | SAS Enterprise Guide | Windows 7 Ultimate x64 | 7.1 | | | |
| Windows 7 Ultimate 32 bit | 7.1 | | | |
| Windows 7 Professional x64 | 7.1 | | | |
| Windows 7 Professional 32 bit | 7.1 | | | |
| Windows 7 Home Premium x64 | 7.1 | | | |
| Windows 7 Home Premium 32 bit | 7.1 | | | |
| Windows 7 Enterprise x64 | 7.1 | | | |
| Windows 7 Enterprise 32 bit | 7.1 | | | |
| Microsoft Windows Server 2019 | 7.1 | | | |
| Microsoft Windows Server 2016 | 7.1 | | | |
| Microsoft Windows Server 2012 Std | 7.1 | | | |
| Microsoft Windows Server 2012 R2 Std | 7.1 | | | |
| Microsoft Windows Server 2012 R2 Datacenter | 7.1 | | | |
| Microsoft Windows Server 2012 Datacenter | 7.1 | | | |
| Microsoft Windows Server 2008 for x64 | 7.1 | | | |
| Microsoft Windows Server 2008 R2 | 7.1 | | | |
| Microsoft Windows Server 2008 | 7.1 | | | |
| Microsoft Windows 10 | 7.1 | | | |
| Microsoft Windows 8.1 Pro x64 | 7.1 | | | |
| Microsoft Windows 8.1 Pro 32-bit | 7.1 | | | |
| Microsoft Windows 8.1 Enterprise x64 | 7.1 | | | |
| Microsoft Windows 8.1 Enterprise 32-bit | 7.1 | | | |
| Microsoft Windows 8 Pro x64 | 7.1 | | | |
| Microsoft Windows 8 Pro 32-bit | 7.1 | | | |
| Microsoft Windows 8 Enterprise x64 | 7.1 | | | |
| Microsoft Windows 8 Enterprise 32-bit | 7.1 | | | |
*
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.
When you open SAS Enterprise Guide, the application stops responding and you see the following error message: "An unhandled exception of type 'System.Xml.XmlException' occurred in SAS.EG.Application.dll Additional information: Unexpected end of file has occurred."
| Type: | Problem Note |
| Priority: | medium |
| Date Modified: | 2019-09-03 15:12:42 |
| Date Created: | 2019-08-27 16:10:55 |