Skip to main content

SAS Enterprise Guide has encountered a problem and needs to close. Sorry for the inconvenience

Issue:

I had some issues with SAS EG, Whenever I open up SAS EG, I got the issue that EG needs to be restarted or closed. I did try to reinstall it, but didn’t help. Every time I launch it showed only Exit SAS Enterprise Guide and Restart option with SAS Enterprise Guide has encountered a problem and needs to close. Sorry for the inconvenience error message. Issue screenshot below: 


Information in Show Details:

Thanks for the quick reply, detail is shown below

'.', 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(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
   at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos)
   at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   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)

Solution:

This has been resolved doing following:

1. Uninstall all of the SAS programs from control panel.
2. Go to C:\Program Files\SASHOME and rename SASEnterpriseGuide folder to SASEnterpriseGuide_Old. 
3. Go to start then type %appdata% then rename SAS folder to SAS_old
4. Install Enterprise Guide.

Any time a user has issues similar to this you can try steps above.

Comments