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

Notifications

Announcements

No record found.

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.

I have the same question (0)
  • edmunch Profile Picture
    on at

    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?

  • Suggested answer
    yleclerc Profile Picture
    1,549 on at

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans