HOW TO load xml from a file in C/AL

In the following example we are going to: open a file, create an InStream object, create an XmlDocument using the DotNet component and load the xml from the InStream.

This example requires that you create the following variables:

Name DataType Subtype
TestFile File
Istream InStream
XmlDoc DotNet
System.Xml.XmlDocument.'System.Xml, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089'

HOW TO load xml from a file in C/AL?

[sourcecode lang=”Cside”]

XmlDoc := XmlDoc.XmlDocument();

Did my HOW TO help you? Leave a reply.

TableData does not exist

Microsoft Dynamics NAV Development Environment
TableData 404 does not exist.

TableData 404 does not exist

TableData does not exist

You are trying to import from a fob file an existing table in which was changed the value of the property DataPerCompany.


  1. delete the Table with number as from the error message (in my case it was 404)
  2. import the object

Related Post: TableData 2000000001 does not exist.

Did my solution solve your problem? Leave a comment.