web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

cannot be deserialized as 'Microsoft.Dynamics.AX.Metadata.MetaModel.AxTable'. Ensure the xml is valid

(0) ShareShare
ReportReport
Posted on by 3,124

Deserlized.pngpastedimage1637470568478v1.png

Hi Experts,

What i did i clicked On the Solution explorer, right-click on the Table, Open with XML (Text) Editor and deleted to unparsable code.After that all error gone but new errors thrown by the system as shown below and above image.

Full Error Message

dynamicsaxinsight.wordpress.com/.../


Severity Code Description Project File Line Suppression State
Error Path: [Unknown]:File 'C:\AOSService\PackagesLocalDirectory\ConWhsModel\ConWhsModel\AxTable\ConWHSVehicleTable.xml' cannot be deserialized as 'Microsoft.Dynamics.AX.Metadata.MetaModel.AxTable'. Ensure the xml is valid. ---> System.Runtime.Serialization.SerializationException: There was an error deserializing the object of type Microsoft.Dynamics.AX.Metadata.MetaModel.AxTable. Data at the root level is invalid. Line 2, position 1. ---> System.Xml.XmlException: Data at the root level is invalid. Line 2, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlReader.MoveToContent()
at System.Xml.XmlReader.IsStartElement(String localname, String ns)
at System.Runtime.Serialization.XmlReaderDelegator.IsStartElement(XmlDictionaryString localname, XmlDictionaryString ns)
at System.Runtime.Serialization.XmlObjectSerializer.IsRootElement(XmlReaderDelegator reader, DataContract contract, XmlDictionaryString name, XmlDictionaryString ns)
at System.Runtime.Serialization.DataContractSerializer.InternalIsStartObject(XmlReaderDelegator reader)
at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
--- End of inner exception stack trace ---
at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
at System.Runtime.Serialization.DataContractSerializer.ReadObject(XmlReader reader)
at Microsoft.Dynamics.AX.Metadata.Storage.DiskProviders.SingleKeyedXmlDiskMetadataProvider`2.Deserialize(GetSerializerDelegate getSerializerDelegate, String filePath)
--- End of inner exception stack trace ---
at Microsoft.Dynamics.AX.Metadata.Storage.ErrorReportingHelper.ThrowUnreadableXmlFileException(String filePath, String typeName, Exception exception)
at Microsoft.Dynamics.AX.Metadata.Storage.DiskProviders.SingleKeyedXmlDiskMetadataProvider`2.Deserialize(GetSerializerDelegate getSerializerDelegate, String filePath)
at Microsoft.Dynamics.AX.Metadata.Storage.DiskProviders.SingleKeyedXmlDiskMetadataProvider`2.DeserializeObject(GetSerializerDelegate serializer, String filePath)
at Microsoft.Dynamics.AX.Metadata.Storage.DiskProviders.SingleKeyedXmlDiskMetadataProvider`2.ReadInternalMetadata(String filePath)
at Microsoft.Dynamics.AX.Metadata.Storage.DiskProviders.SingleKeyedXmlDiskMetadataProvider`2.ReadInternalWithDeltas(String artifactName, String moduleName, MetaReadHeader& readHeader, Predicate`1 applyModel)
at Microsoft.Dynamics.AX.Metadata.Storage.DiskProviders.SingleKeyedXmlDiskMetadataProvider`2.Read(String name, ModelLoadInfo info, MetaReadHeader& readHeader)
at Microsoft.Dynamics.AX.Metadata.Storage.MemoryProvider.SingleKeyedMemoryProvider`2.Read(String name, MetaReadHeader& readHeader)
at Microsoft.Dynamics.AX.Metadata.Storage.MemoryProvider.SingleKeyedMemoryProvider`2.Read(String name)
at Microsoft.Dynamics.AX.Metadata.Service.MetaModelService.GetTable(String name)
at Microsoft.Dynamics.Framework.Tools.BuildTasks.CompilationHelper.CheckUnparsableElements(IEnumerable`1 localElements, IXppcMetadataProvider metaProvider, IMetaModelService metadataService, IEnumerable`1& unparsableElements)
at Microsoft.Dynamics.Framework.Tools.BuildTasks.AsyncBuildController.DoMetadataValidation(CancellationToken token, IEnumerable`1 elements, BuildTrigger buildTrigger). 0

I have the same question (0)
  • AnithaEswaran Profile Picture
    2,032 on at

    Hi,

    If Source control is enabled, can you compare it with the previous version?

    Regards,

    Anitha.E

  • Martin Dráb Profile Picture
    239,634 Most Valuable Professional on at

    When editing the file manually, you removed some things that must be there. Now the file doesn't have the right structure and can't be loaded.

  • Alex VN Profile Picture
    1,994 on at

    Hi,

    I think if you use source control you can try to get latest version of that files and do a full build, seem you might delete something that make the XML content of the object invalid.

    Regards,

    Anh Ong

  • DaLianAxNewbieJJP Profile Picture
    35 on at

    How did you work it out

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 802

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 636 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 534

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans