Hello,
When launching SAS EG 4.3, I'm getting the following error message which prevents SAS EG from starting:
SAS Enterprise Guide has encountered a problem and needs to close. We are sorry for the inconvenience.
--------------------------------------------------------
System.TypeInitializationException
The type initializer for 'SAS.EG.ProjectElements.MetadataHelper' threw an exception.
------------------------------ Technical Information Follows ------------------------------
System.TypeInitializationException: The type initializer for 'SAS.EG.ProjectElements.MetadataHelper' threw an exception. ---> SAS.EG.SDS.Metadata.MetadataException: Error loading control file ---> System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at SAS.EG.SDS.Metadata.MetadataManagerV2.LoadControl()
--- End of inner exception stack trace ---
at SAS.EG.SDS.Metadata.MetadataManagerV2.LoadControl()
at SAS.EG.SDS.Metadata.MetadataManagerV2..ctor()
at SAS.EG.SDS.Model.Broker..ctor()
at SAS.EG.ProjectElements.MetadataHelper..cctor()
--- End of inner exception stack trace ---
at SAS.EG.ProjectElements.MetadataHelper.get_Broker()
at SAS.EG.SEGuide.MainForm.InitializeBroker()
at SAS.EG.SEGuide.MainForm..ctor(EGOptions startupOptions)
at SAS.EG.SEGuide.App.Startup(String[] args)
at SAS.EG.SEGuide.App.Main(String[] args)
------------------------------ End of Technical Information ------------------------------
Would you be able to advise how to fix this problem ?
Does this happens constantly or occasionally?
Do you connect to a remote SAS server, and what version of SAS do you use?
Are there other EG users on your site? How does it work for them (same versions?)
4.3 is quite old, consider upgrading to the highest version possible.
Also, consider open a track to SAS tech support.
Hi did you get any resolution for this issue. We also started experiencing this issue recently.
From the callstack above and inspecting our code, it appears that the SDSControl.xml file in your %appdata%\SAS\SharedSettings\v.v location (ex. C:\Users\<userid>\AppData\Roaming\SAS\SharedSettings\4.3\SDSControl.xml) file does not contain valid xml. You can safely delete that SDSControl.xml file (it will be regenerated), which should resolve the issue.
Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF
View now: on-demand content for SAS users
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.