Quantcast
Channel: Ivanti User Community : Document List - Power Management
Viewing all articles
Browse latest Browse all 68

"Root element is missing" error when trying to run the Power Savings report.

$
0
0

Issue:

 

You may receive an error "Root element is missing" or similar errors when trying to run the Power Savings Report.

 

Cause:

 

The Power Savings report references the file "DefaultUsageTable.xml" in the \Program Files\LANDesk\ManagementSuite\PWM folder on the core server.

If this XML file is corrupted or blank it can cause this error.    This is a standard XML error.

 

The cause of the XmlException entitled "Root element is missing" means the XML document you're trying to load is not formatted properly, more exactly it's missing the root node.

 

Each XML file must have a root element / node which encloses all the other elements.

 

The following is an example of an XML file which is not properly formed:

 

<Language name="C#"></Language>
<Language name="VB.NET"></Language>

 

And here is the same XML file, formed properly:

<?xml version="1.0" encoding="utf-8"?>
<Languages>
<Language name="C#"></Language>
<Language name="VB.NET"></Language>
</Languages>

 

Also, a blank XML file will return the same Root elements is missing exception. Each XML file must have a root element / node which encloses all the other elements.

 

Resolution:

 

Format the XML file properly, or replace it with the original .XML file (attached to this article).


Viewing all articles
Browse latest Browse all 68

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>