Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while exporting entities with "pac data export" and "pac tool cmt" #1162

Open
srbonham1 opened this issue Mar 22, 2025 · 0 comments
Open

Comments

@srbonham1
Copy link

srbonham1 commented Mar 22, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant