Hi
1. I try to migrate CRM 4 -> 2011 (with new domain)
2. CRM 4.0 UR 21 (version 4.0.7333.3822) (on Windows Server 2003 SP2 x86, SQL 2005 on the same server)
3. CRM 2011 UR 11 (version 5.0.9690.2839) (on Windows Server 2008R2, SQL 2008R2 x64 on the same server with CRM2011)
4. I make a backup of CRM 4 database on the old server and restore it on the new one (with the same name);
5. Do "Import Organization" (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)
6. After some time there are errors:
====================================================================
18:17:47| Error| Installer Complete: OrganizationUpgrader - Error encountered
18:17:47| 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(Exception e)
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 219722.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
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:17:47| Info| Setting organization state. New state = Failed
====================================================================
Any ideas how can i fix it?
Thanks for your help!