Microsoft Dynamics NAV
This message is for C/AL programmers: A call to System.Xml.XmlDocument.Load failed with this message: Root element is missing.
You verified that the code you are going to load as XML is not empty.
Verify that each tag has the corresponding closing tag
Make sure that the stream Position is set to 0 (zero) before to load the Stream
IF stream.Position > 0 THEN
stream.Position := 0;
Did my solution solve your problem? Leave a reply.