Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
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

(0) ShareShare
ReportReport
Posted on by 1,549

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
    1,549 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
    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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106 Most Valuable Professional

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 87

Overall leaderboard

Product updates

Dynamics 365 release plans