Asked by:
Issue migrating MS CRM 4.0 -> 2011

Question
-
Hi
I installed fresh CRM 2011 and try to import organization from CRM 4. SQL 2008R2 and CRM 2011 on the same server (Windows 2008 R2). Import failed with errors:
18:02:43| Error| Installer Complete: OrganizationUpgrader - Error encountered
18:02:43| Error| Exception occured during Microsoft.Crm.Tools.Admin.OrganizationUpgrader: Action Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction failed.
InnerException:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 21.
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
at System.Xml.XmlTextReaderImpl.ParseText()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlDocument.Load(XmlReader reader)
at Microsoft.Crm.SharedUtil.CreateXmlDocument(String xml)
at Microsoft.Crm.Setup.MetadataCacheLoadHelper.BuildMetadataCacheXmlDocument(String newMetadataXmlDirectory, Boolean loadPrivileges, Boolean addMasterOptionSets)
at Microsoft.Crm.Setup.DiffBuilder.PopulateNewMetadataCacheFromXml(Boolean loadPrivileges, Boolean addMasterOptionSets)
at Microsoft.Crm.Setup.DiffBuilder.FixOptionsWithoutOptionSets(String metadataLocation)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Microsoft.Crm.Setup.Database.DllMethodAction.Execute()
at Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseInfo releaseInfo, Boolean isInstall)
at Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase, Boolean isInstall)
at Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters)
at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
InnerException:
System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 21.
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
at System.Xml.XmlTextReaderImpl.ParseText()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlDocument.Load(XmlReader reader)
at Microsoft.Crm.SharedUtil.CreateXmlDocument(String xml)
at Microsoft.Crm.Setup.MetadataCacheLoadHelper.BuildMetadataCacheXmlDocument(String newMetadataXmlDirectory, Boolean loadPrivileges, Boolean addMasterOptionSets)
at Microsoft.Crm.Setup.DiffBuilder.PopulateNewMetadataCacheFromXml(Boolean loadPrivileges, Boolean addMasterOptionSets)
at Microsoft.Crm.Setup.DiffBuilder.FixOptionsWithoutOptionSets(String metadataLocation)
18:02:43| Info| Setting organization state. New state = Failed
18:02:43| Error| Upgrade Organization with Id=b46c395f-d62a-41a8-9cd6-4972cb9a3f65 failed with Exception:
System.Exception: Action Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction failed. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 21.
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
at System.Xml.XmlTextReaderImpl.ParseText()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlDocument.Load(XmlReader reader)
at Microsoft.Crm.SharedUtil.CreateXmlDocument(String xml)
at Microsoft.Crm.Setup.MetadataCacheLoadHelper.BuildMetadataCacheXmlDocument(String newMetadataXmlDirectory, Boolean loadPrivileges, Boolean addMasterOptionSets)
at Microsoft.Crm.Setup.DiffBuilder.PopulateNewMetadataCacheFromXml(Boolean loadPrivileges, Boolean addMasterOptionSets)
at Microsoft.Crm.Setup.DiffBuilder.FixOptionsWithoutOptionSets(String metadataLocation)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Microsoft.Crm.Setup.Database.DllMethodAction.Execute()
at Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseInfo releaseInfo, Boolean isInstall)
at Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase, Boolean isInstall)
at Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters)
at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
--- End of inner exception stack trace ---
at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
at Microsoft.Crm.Setup.Common.Installer.Install(IDictionary stateSaver)
at Microsoft.Crm.Tools.Admin.OrganizationOperation.Install(IDictionary stateSaver)
at Microsoft.Crm.Tools.Admin.OrganizationUpgrader.Install(IDictionary stateSaver)
at Microsoft.Crm.Tools.Admin.OrganizationOperation.Execute()Any ideas how can i fix it? Thanks a lot!
Issue while migrating MS CRM 4.0 to MS CRM 2011
Wednesday, February 13, 2013 9:07 PM
All replies
-
Hi,
A few questions.
Have you done any customization to the sitemap on the CRM 4-org?
How did you migrate the organization?
What UR is installed on the CRM 4?
What UR is installed on the CRM 2011?Regards
Rickard Norström Developer CRM-Konsulterna
http://www.crmkonsulterna.se
Swedish Dynamics CRM Forum: http://www.crmforum.se
My Blog: http://rickardnorstrom.blogspot.seWednesday, February 13, 2013 10:21 PM -
Hi
1. As far as i know there is no any customization installed (but how can look it?)
2. I migrate in the standard way: install new server (CRM+SQL) in new domain (out test env) and do "Import Organization" (restore backup of CRM4.0 DB on the new SQL server, database name is the same as was on old SQL server) (There are two warnings appears: about fragmented indexes - i can fix it over SQL script, and "The organization database selected for import is a different version than the organization database that is currently deployed." - i don't know what should i do with it... Than i just press "Import' button)
3. CRM 4.0 UR 21 (version 4.0.7333.3822)
4. CRM 2011 UR 11 (version 5.0.9690.2839)
thanks advance- Edited by Tolot37 Thursday, February 14, 2013 11:26 AM
Thursday, February 14, 2013 11:24 AM -
up up upFriday, February 15, 2013 11:52 AM
-
You'll probably have to raise a call with Microsoft Support about your issue.Friday, February 15, 2013 4:12 PM
-
from Your stacktrace it seems there are some issues regarding codepage, encoding, XML of some kind.
Roar Jørstad aka sveroa
Senior Consultant, EVRY as
Blog: Notebook, trick & tips
Please mark as answer or helpful if my post is usefulSaturday, February 16, 2013 10:32 PM -
What base language does your CRM 4 have and is that language available on the CRM 2011? A long shot but Roar's idea is along those lines so it might be worth checking. Also install all MUIs available on the CRM4 server on your new server.
Regards
Rickard Norström Developer CRM-Konsulterna
http://www.crmkonsulterna.se
Swedish Dynamics CRM Forum: http://www.crmforum.se
My Blog: http://rickardnorstrom.blogspot.seSunday, February 17, 2013 12:08 PM -
Hi,
Refer the below links.
http://www.dynamicscrmtrickbag.com/2011/04/08/migrating-from-crm-4-0-to-dynamics-crm-2011/
If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Thanks and Regards, Yogesh Vijay Mulay
Monday, February 18, 2013 5:04 AM -
CRM 4 has only English language (default installation). There is no any MUI installed. (only UR and Mobile Express for MS CRM 4.0).
Any way i always have this error with migration:17:17:48| Error| Installer Complete: OrganizationUpgrader - Error encountered
17:17:48| Error| Exception occured during Microsoft.Crm.Tools.Admin.OrganizationUpgrader: Action Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction failed.
InnerException:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 219722.
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
at System.Xml.XmlTextReaderImpl.ParseText()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlDocument.Load(XmlReader reader)
at Microsoft.Crm.SharedUtil.CreateXmlDocument(String xml)
at Microsoft.Crm.Setup.MetadataCacheLoadHelper.BuildMetadataCacheXmlDocument(String newMetadataXmlDirectory, Boolean loadPrivileges, Boolean addMasterOptionSets)
at Microsoft.Crm.Setup.DiffBuilder.PopulateNewMetadataCacheFromXml(Boolean loadPrivileges, Boolean addMasterOptionSets)
at Microsoft.Crm.Setup.DiffBuilder.FixOptionsWithoutOptionSets(String metadataLocation)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Microsoft.Crm.Setup.Database.DllMethodAction.Execute()
at Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseInfo releaseInfo, Boolean isInstall)
at Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase, Boolean isInstall)
at Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters)
at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
:(Monday, February 18, 2013 9:55 AM -
Yes, it's standard way of migration from 4.0 to 2011... and i do exactly in this way...Monday, February 18, 2013 9:56 AM
-
up upWednesday, February 20, 2013 8:01 AM
-
any ideas? cannot migrate crm... :(Tuesday, February 26, 2013 9:09 AM