Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Updating CRM Version Error - System.Xml.XmlException Hexadecimal value 0x00 is a invalid character, line 1974, position 20

Posted on by 1,545

We are trying to upgrade from 8.2.5.0004 to 8.2.6.0019.

We run the update. Then we try to update our oganizations, and a few seconds later, we get this error.

System.Xml.XmlException Hexadecimal value 0x00 is a invalid character, line 1974, position 20

Below is a small part of the crmdmsnapin.log file.

We are looking to find which XML file could be the problem.

Any help is much appreciated.

2021_2D00_12_2D00_02_5F00_17_2D00_35_2D00_06.png

17:27:42| Info| Not setting state to Enabled as it is already set to Enabled
17:27:42| Info| Not setting state to Enabled as it is already set to Enabled
17:27:42| Error| La mise à jour de l’organisation (ID=c20ba27e-dedc-4abe-8bd6-d3a3016c1e29) a échoué avec l’exception :
System.Exception: Error.ActionFailed Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction ---> System.Xml.XmlException: '.', valeur hexadécimale 0x00, est un caractère non valide. Ligne 1974, position 20.
à System.Xml.XmlTextReaderImpl.Throw(Exception e)
à System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
à System.Xml.XmlTextReaderImpl.ParseText()
à System.Xml.XmlTextReaderImpl.ParseElementContent()
à System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
à System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
à System.Xml.XmlDocument.Load(XmlReader reader)
à Microsoft.Crm.SharedUtil.CreateXmlDocument(XmlReader reader)
à Microsoft.Crm.SharedUtil.CreateXmlDocument(String xml)
à Microsoft.Crm.Metadata.MetadataForMetadataXmlLoader.LoadMetadataForMetadata(String metadataForMetadataXml)
à Microsoft.Crm.Metadata.MetadataForMetadataXmlLoader.LoadMetadataForMetadataFromDirectory(String metadataForMetadataXmlDirectory)
à Microsoft.Crm.Setup.MetadataPatchDiffSet.LoadMetadataForMetadata(String filePathAndName)
à Microsoft.Crm.Setup.MetadataPatchDiffSet.InflateFromFile(String filePathAndName, Int32 lcid, Version version)
à Microsoft.Crm.Setup.MultiTenantMetadataDiffData..ctor(String metadataDiffFile, Version version)
à Microsoft.Crm.Setup.DBUpdateMultiTenantHelper.Init(String releaseFilePath, String actionFileDirectory, Version version)
à Microsoft.Crm.Setup.DBUpdateMultiTenantCache.GetInstance(Version version)
à Microsoft.Crm.Setup.Common.Update.DBUpdateDatabaseInstaller.ApplyDBUpdates(Guid orgId, Nullable`1 operationType)
à Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction.ApplyDBUpdatesInternal(Guid orgId, String orgUniqueName, String releaseFilePath, Boolean ignoreErrors, OrganizationOperationType operationType)
à Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction.ApplyDBUpdates(Guid orgId, String orgUniqueName, OrganizationOperationType operationType)
à Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction.Do(IDictionary parameters)
à Microsoft.Crm.Setup.Shared.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
--- Fin de la trace de la pile d'exception interne ---
à Microsoft.Crm.Setup.Shared.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
à Microsoft.Crm.Setup.Shared.Installer.Install(IDictionary stateSaver)
à Microsoft.Crm.Tools.Admin.OrganizationOperation.Install(IDictionary stateSaver)
à Microsoft.Crm.Tools.Admin.OrganizationOperation.Execute()
à Microsoft.Crm.Tools.Admin.OrganizationDatabaseHotFixer.Execute()
à Microsoft.Crm.Tools.Admin.ApplyDatabaseHotFixInstaller.ApplyDatabaseHotFix(IApplyDatabaseHotFixInfo applyDatabaseHotFixInfo)
17:27:42| Info| Found the older table DBUpdateInstallInfo_V5, updating new table and deleting
17:27:42| Info| GetDBUpdateRevisionThresholdForServer(): Threshold = 8.2.0006.0019.

  • Suggested answer
    yleclerc Profile Picture
    yleclerc 1,545 on at
    RE: Updating CRM Version Error - System.Xml.XmlException Hexadecimal value 0x00 is a invalid character, line 1974, position 20

    It turns out we did have some corrupted XML files in the C:\Program Files\Microsoft Dynamics CRM\Setup folder.

    We ended up replacing those files with the ones from another server (that were uncorrupted).

    Then the update ran smoothly.

  • edmunch Profile Picture
    edmunch on at
    RE: Updating CRM Version Error - System.Xml.XmlException Hexadecimal value 0x00 is a invalid character, line 1974, position 20

    Do you have any issues just opening the organizations?  How about creating a new organization, any issues there? Have you checked the web.config file?  Any further details in the Event Viewer on the server?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans