powerplatform-vscode
powerplatform-vscode copied to clipboard
Error while exporting entities with "pac data export" and "pac tool cmt"
Im facing this issue on a 64 bit system. At the very end of the export, I get the following error as cmt converts the data to data.xml file:
Command: pac data export -env https://xxxxxxx.crm.dynamics.com -v -df .\Downloads\prod_export.zip -sf "D:\prod_setup.xml" -o
` Entity Export Process Complete Writting output file : C:\Users\srbonham1\AppData\Local\Temp\wml5zczf.wa3\data.xml Message: Exception Raised when Serializing Microsoft.Xrm.Tooling.Dmt.DataMigCommon.DataModel.Data.entities Source : mscorlib Method : CreateStringFromEncoding Date : 3/22/2025 Time : 7:41:22 PM Error : Exception of type 'System.OutOfMemoryException' was thrown. Stack Trace : at System.String.CreateStringFromEncoding(Byte* bytes, Int32 byteLength, Encoding encoding) at System.Text.UTF8Encoding.GetString(Byte[] bytes, Int32 index, Int32 count) at Microsoft.Xrm.Tooling.Dmt.DataMigCommon.Utility.Helper.Serialize[T](Object objToSerialize)
Failed to create output file`
Im exporting around 360K records.
36 Entities
Version: Microsoft PowerPlatform CLI Version: 1.39.3+g0f45f92 64 bit version
Windows 10, 64 Bit.
Machine has 128GB. Theres around 93GB available at the time the crash occured.