The error "Root element is missing" might occur when you are opening SAS Enterprise Guide

備忘メモ

You might receive the following error message and stack trace when you open SAS Enterprise Guide:

Exception Details:

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

Exception type: System.Xml.XmlException

Message: Root element is missing.

Source: System.Xml

Target Site: Throw

Stack Trace:

at System.Xml.XmlTextReaderImpl.Throw(Exception e)

at System.Xml.XmlTextReaderImpl.ParseDocumentContent()

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.Load()

at SAS.EG.Options.EGOptions.get_Instance()

at SAS.EG.ProjectElements.ProjectCollection.SetDataModelOptions()

at SAS.EG.MainForm.LoadOptions()

at SAS.EG.MainForm..ctor()

at SAS.EG.App.Startup(String args)

at SAS.EG.App.Main(String args)

at SAS.EG.EntryPoint.Main(String[] args)

This error is typically indicative of a corrupted SAS Enterprise Guide profile. To resolve the issue, re-create the profile by following these steps:

  1. Close any open instances of SAS or SAS Enterprise Guide.
  2. Open a Windows Explorer window and navigate to C:\Users\your-user-ID\AppData\Roaming\.
  3. Locate the folder titled SAS and rename it SAS_old.
  4. Restart SAS Enterprise Guide (the error should no longer occur).
  5. Close SAS Enterprise Guide.
  6. Again navigate to C:\Users\your-user-ID\AppData\Roaming\ and open the SAS_old folder.
  7. Copy the MetadataServerProfiles directory into the new C:\Users\your-user-ID\AppData\Roaming\SAS directory (overwrite the new MetadataServerProfiles directory). This step ensures that the existing connection information is still available.