EMW package creation fails due to out of memory exception


 Product(s):APM Implementation and Performance Management
 Version(s):All
 Environment:N/A
 Area:Environment Migration Wizard, EMW
 Subarea:

Problem

EMW package takes a long time and the fails.  On screen, on the Results Report tab, Result Summary is Failed, External component has thrown an exception:

This fatal error is thrown (in the EnvironmentMigrationWizard_instancename.txt log) after all memory on the machine running the package creation is consumed.  

Ivara.EnvironmentMigrationWizard.Program [8] Unhandled exception thrown EXCEPTION OCCURRED:OutOfMemoryException Exception of type 'System.OutOfMemoryException'

Solution

SQL associated the package may be out of date if it has not been regenerated over several releases.

If you wish to add filters, you can create a copy of the base product package structure in Enterprise/Data Management/Environment Data Migration Tab/Packages Tab

Do not remove nodes from the package structure, use filters to scrape out the unwanted data.

Remember to Generate SQL after making changes

The new package will appear in the EMW's list of Data Migration Packages.

There are also other ways to modify the SQL on the base package using the Override Generated SQL option.

See Also

https://communities.bentley.com/products/assetwise/asset_performance_management/m/mediagallery/273854