Configuration migration utility is part of Dynamics 365 SDK and located in SDK\Tools\ConfigurationMigration folder. Tool is used to import configuration/master data across CRM organizations. By default tool runs with 5 threads to import data and data import is comparatively slow.
You can increase number of threads to import data faster. Open DataMigrationUtility.exe.config file located in same folder SDK\Tools\ConfigurationMigration. Search for “numberofinputthreads” and change value from 5 to 20 or more based on requirement. Once updated tool will initialize 20 threads and data will be imported comparatively faster.
Hello, please tell me, I receive such an error when exporting:
DataMigrationUtility.Export Error 2 28.02.2018 15:22:41 Message: Exception Raised when Serializing Microsoft.Xrm.Tooling.Dmt.DataMigCommon.DataModel.Data.entities
Source : System.Xml
Method : Serialize
Date : 28.02.2018
Time : 15:22:41
Error : Error creating document XML.
Stack Trace : в System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
в System.Xml.Serialization.XmlSerializer.Serialize(Stream stream, Object o, XmlSerializerNamespaces namespaces)
в Microsoft.Xrm.Tooling.Dmt.DataMigCommon.Utility.Helper.Serialize[T](Object objToSerialize)
======================================================================================================================
Inner Exception Level 1 :
Source : mscorlib
Method : Write
Date : 28.02.2018
Time : 15:22:41
Error : Exceeded allowable thread length.
Stack Trace : в System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
в System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
в System.IO.StreamWriter.Write(Char value)
в System.Xml.XmlTextWriter.AutoComplete(Token token)
в System.Xml.XmlTextWriter.WriteEndAttribute()
в System.Xml.Serialization.XmlSerializationWriter.WriteAttribute(String localName, String ns, String value)
в Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterentities.Write4_entitiesEntityRecordField(String n, String ns, entitiesEntityRecordField o, Boolean isNullable, Boolean needType)
в Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterentities.Write5_entitiesEntityRecord(String n, String ns, entitiesEntityRecord o, Boolean isNullable, Boolean needType)
в Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterentities.Write10_entitiesEntity(String n, String ns, entitiesEntity o, Boolean isNullable, Boolean needType)
в Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterentities.Write11_entities(String n, String ns, entities o, Boolean isNullable, Boolean needType)
в Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterentities.Write12_entities(Object o)
======================================================================================================================
DataMigrationUtility.Export Error 2 28.02.2018 15:22:41 Failed to create output file
LikeLike
Hello IGOR,
What value did you set for noofinputthreads? As I can see inner exception message “Exceeded allowable thread length”. You might want to check Throttle Settings settings set for your org. By default 2 execute multiple requests are allowed to be executed simultaneously, refer https://community.dynamics.com/crm/f/117/t/190305. You can get this value increased depends whether you are using Online or On-Preim?
LikeLike
Reblogged this on Prashant Maurya and commented:
It helped in our project where we were migrating USD configuration very frequently to different environments.
LikeLike
Reblogged this on Nishant Rana's Weblog.
LikeLike
Nice tip Sachin 🙂
LikeLiked by 1 person
Thank you sir
LikeLike