locked
import organization 4.0 stuck on XML, outofmemory RRS feed

  • Question

  • Hi,

    On preparing crm 2011 upgrade we want to import the production 4.0 dump into test 4.0.

    CRM, SQL, Windows is ugraded to latest, registrykeys are set for max timeout, rollup 21 is set, OptimizeOrgImput is set,  etc etc.

    Mem = 4 GB and does not exceed during proces, SQL timeout in SQL is set from 600 sec to 0 (

    On import I get constant fail on several attempts:

    20:12:17|Verbose| Update completed
    20:12:17|Verbose| User added successfully to the OU groups in Active Directory
    20:24:20|  Error| Het importeren van de organisatie (naam=CUSTOMER, id=a277dc8a-fafd-e211-9163-005056b57333) is mislukt. Uitzonderingsfout:
    System.InvalidOperationException: There was an error generating the XML document. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
       at System.String.GetStringForStringBuilder(String value, Int32 startIndex, Int32 length, Int32 capacity)
       at System.Text.StringBuilder.GetNewString(String currentString, Int32 requiredLength)
       at System.Text.StringBuilder.Append(Char[] value, Int32 startIndex, Int32 charCount)
       at System.IO.StringWriter.Write(Char[] buffer, Int32 index, Int32 count)
       at System.Xml.XmlTextEncoder.WriteStringFragment(String str, Int32 offset, Int32 count, Char[] helperBuffer)
       at System.Xml.XmlTextEncoder.Write(String text)
       at System.Xml.XmlTextWriter.WriteString(String text)
       at System.Xml.XmlWriter.WriteElementString(String localName, String ns, String value)
       at System.Xml.Serialization.XmlSerializationWriter.WriteElementString(String localName, String ns, String value, XmlQualifiedName xsiType)
       at System.Xml.Serialization.XmlSerializationWriter.WriteElementString(String localName, String ns, String value)
       at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterWorkflowData.Write22_StringProperty(String n, String ns, StringProperty o, Boolean isNullable, Boolean needType)
       at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterWorkflowData.Write35_Property(String n, String ns, Property o, Boolean isNullable, Boolean needType)
       at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterWorkflowData.Write36_DynamicEntity(String n, String ns, DynamicEntity o, Boolean isNullable, Boolean needType)
       at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterWorkflowData.Write86_PropertyBagEntry(String n, String ns, PropertyBagEntry o, Boolean isNullable, Boolean needType)
       at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterWorkflowData.Write87_PropertyBag(String n, String ns, PropertyBag o, Boolean isNullable, Boolean needType)
       at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterWorkflowData.Write93_WorkflowData(String n, String ns, WorkflowData o, Boolean isNullable, Boolean needType)
       at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterWorkflowData.Write94_WorkflowData(Object o)
       --- End of inner exception stack trace ---
       at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
       at System.Xml.Serialization.XmlSerializer.Serialize(TextWriter textWriter, Object o, XmlSerializerNamespaces namespaces)
       at System.Xml.Serialization.XmlSerializer.Serialize(TextWriter textWriter, Object o)
       at Microsoft.Crm.Tools.Admin.ImportOrganizationInstaller.DeserializeAndUpdateOrgId(String wfData, Guid newOrganizationId, Int32 regardingOTC)
       at Microsoft.Crm.Tools.Admin.ImportOrganizationInstaller.ProcessWorkflowDataRows(IDbCommand command, Guid newOrganizationId)
       at Microsoft.Crm.Tools.Admin.ImportOrganizationInstaller.Import(Guid organizationId, String organizationUniqueName, String organizationFriendlyName, String sqlServerName, String databaseName, Uri reportServerUrl, String privilegedUserGroupName, String sqlAccessGroupName, String userGroupName, String reportingGroupName, String privilegedReportingGroupName, ICollection`1 users, MultipleTenancy multipleTenancy)
    20:24:20|Warning| Attempting to cancel a long running process: ProgressWizard. This might leave the data in an invalid state and the application might not function correctly.
    20:26:40|Warning| Attempting to cancel a long running process: FinishWizard. This might leave the data in an invalid state and the application might not function correctly.
    20:26:47|   Info| Deployment Manager Exit

    Anybody?

    Monday, August 5, 2013 7:14 PM

All replies

  • I am not sure but I think it is because of more memory consumption. I think If the system is out of memory then can be fixed by:

    1. Adding more memory. OR
    2. Free up existing memory

    If you're running SQL and CRM on the same server you should really consider separating them. 

    Wednesday, August 7, 2013 2:36 PM