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

CRM 2015 to 2016 Upgrade Error

(0) ShareShare
ReportReport
Posted on by 30

Hello,

I'm running a lab trying to upgrade our CRM 2015 to 2016 instance. It keeps bombing out with:

15:10:11| Info| Installing Sql Jobs ...
15:10:11| Info| Name = .SiteWideCleanup, Description = Add site-wide cleanup job, Target = OnPremise, SPLA
15:10:15| Info| CrmAction execution time; InstallConfigDatabaseAction; 00:00:07.5810455
15:10:15| Error| Installer Complete: ConfigDBInstaller - Error encountered
15:10:15|Warning| Error reported while configuring _Deployment. Attempting rollback
15:10:15| Info| ConfigDBInstaller: Beginning uninstall operation
15:10:15| Info| ConfigDBInstaller: Uninstall completed
15:10:15| Error| Install exception.System.Exception: Action Microsoft.Crm.Setup.Server.InstallConfigDatabaseAction failed. ---> System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at Microsoft.Crm.SharedUtil.CreateXmlDocument(XmlReader reader)
at Microsoft.Crm.SharedUtil.CreateXmlDocument(Stream input)
at Microsoft.Crm.SystemDatabaseInstaller.ConfigDatabase.UpdateRelease.Load()
at Microsoft.Crm.SystemDatabaseInstaller.ConfigDatabase.ConfigUpdateInstaller.LoadUpdateReleases()
at Microsoft.Crm.SystemDatabaseInstaller.ConfigDatabase.ConfigUpdateInstaller.InstallInternal(Boolean isInstall)
at Microsoft.Crm.Setup.Server.InstallConfigDatabaseAction.Do(IDictionary parameters)
at Microsoft.Crm.Setup.Shared.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
--- End of inner exception stack trace ---

This is a server 2012 R2 box, CRM 2015 is patched to the latest version.

I also noticed near the beginning of the install log it shows:

13:38:34|  Error| Setup could not retrieve data from the database: MSCRM_CONFIGSystem.Data.SqlClient.SqlException (0x80131904): Login failed for user 'DOMAIN\DOMAINADMIN'. (I just replaced that)

That user is a domain admin which has access to the database already (for example I login with that user into SQL Server Management Studio.)

So I'm not why I'm getting the exception, or why I'm seeing a login failure in the log as well.

Any guidance would be much appreciated,

Thanks,

Ed

  • Eddieb Profile Picture
    Eddieb 30 on at
    RE: CRM 2015 to 2016 Upgrade Error

    Yes, I believe I used an installer from Microsofts site rather than the one that was on the original iso I had. The install totally worked after that. I spent days looking through xml config and did that as a last resort.

  • yleclerc Profile Picture
    yleclerc 1,547 on at
    RE: CRM 2015 to 2016 Upgrade Error

    Did you ever find a solution for this?

    15:10:15| Error| Install exception.System.Exception: Action Microsoft.Crm.Setup.Server.InstallConfigDatabaseAction failed. ---> System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.

    We are running into something very similar.

    We are trying to upgrade from 8.2.5.0004 to 8.2.6.0019.

    This should be a rather simple upgrade.

    We have 4 orgs on the server. The error happens when we try to apply the upgrade on the Org Database.

  • Eddieb Profile Picture
    Eddieb 30 on at
    RE: CRM 2015 to 2016 Upgrade Error

    I got past the user permissions issue. This error is the one I cannot seem to get past:

    15:10:15| Error| Install exception.System.Exception: Action Microsoft.Crm.Setup.Server.InstallConfigDatabaseAction failed. ---> System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.

    I need to find a way to locate the file in question that keeps causing the install to rollback,

    Thanks,

    Ed

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,961 Moderator on at
    RE: CRM 2015 to 2016 Upgrade Error

    Hi,

    Please check if user mentioned in error log has sufficeint permission on MSCRM_CONFIG Database.

    Check if Groups are created in ADFS.

    It might be failing because of the firewall setting. Please try to disable the firewall temporarily and install Dynamics CRM 365 on-premise again. 

    Please see below post.

    https://stackoverflow.com/questions/15488922/connection-to-sql-server-works-sometimes

    If found helpful, Please mark my answer verified.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans