An "...invalid character..." error occurs when you open SAS® Enterprise Guide®


When opening SAS Enterprise Guide, you might see the following error:

Application Error. SAS Enterprise Guide needs to close.
SAS Enterprise Guide has encountered a problem and needs to close.
We are sorry for the inconvenience.
--------------------------------------------------------------------
 Exception information
-------------------------------------------------------------------
'.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
-------------------------- Technical Information Follows -----------------------
 
Exception Details: ----------------------------------------
Exception type: System.Xml.XmlException Message: '.', hexadecimal value 0x00, is an invalid character.
Line 1, position 1. Source: System.Xml Target Site: Throw Stack Trace: at
System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) at
System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() 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.Read(String
fileName) 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 caused by a corrupted SAS Enterprise Guide user profile.

Workaround

To resolve the issue, follow these steps:

  1. Close all sessions of SAS Enterprise Guide.
  2. Navigate to C:\users\user-ID\AppData\Roaming\SAS\EnterpriseGuide.
  3. Rename the X.X folder to X.X_OLD, where X.X  is the release number of SAS Enterprise Guide.
  4. Reopen SAS Enterprise Guide. You should see that a new X.X folder has been created, and the issue should be resolved.