Error: "Sage 300 ERP UI Container has stopped working" When Printing Reports to Preview

Products

Sage 300 Cloud

Country

North America

Description

The following message may occur on a Windows 2008 R2 or Windows 2012 server when printing reports to preview:

Sage 300 ERP UI Container has stopped working

When you click on the drop down arrow to View problem details, the following message is displayed

Assertion failed!

Program: C:\Apps\Accpac\RUNTIME\A4WCONTAINERXP.EXE

File: repcmd.c

Line: 227

Expression: NULL == record->pCrystalObjectHandle

For information on how your program can cause an assertion failure, see Visual C++ documentation on asserts

Resolution

Run command prompt as administrator

Note: Must be logged in to the server or workstation as administrator or account with admin rights.

Run command prompt as administrator

From command line enter this command, C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm /register [sage300runtimefolder]\a4wcrinterop.dll.

where [sage300runtimefolder] is the location where Sage 300 ERP is installed. (i.e. – C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm /register “C:\Sage\Sage 300 ERP\runtime\a4wcrinterop.dll”)

Modify the above command as necessary (per path to runtime folder)

 

What to do if the registration fails

If the registration fails, ensure that the Crystal Runtime Engine is installed properly by viewing the files in “C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86” (for 32bit computers) or “C:\Program Files(x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86” (for 64 bit computers).

For Windows 2012/2012 R2 and Windows 8/8.1, ensure that .NET Framework 3.5 Feature is enabled.

Windows 2012/2012 R2 Screenshot

Windows 2012/2012 R2 Screenshot​

Windows 8/8.1

For Windows 2012/2012 R2 and Windows 8/8.1, ensure that .NET Framework 3.5 Feature is enabled.

If the above steps does not resolve the problem, uninstall and reinstall system manager as a local administrator and apply the latest product update for the installed version of Sage 300. Ensure the Windows Updates are current if you are using an Windows XP workstations

Reinstall the Sage 300 program or workstation setup.

Note

Substitute [sage300runtimefolder] with actual location of RUNTIME folder (local drive or UNC). If path to runtime is long, enclose the path with double quotes.

Important Information

The error can also occur if you have multiple versions of crystal runtime files. This can occur if you have another application that is using a different crystal runtime engines. If you have another application that uses a different runtime engine, you will need to uninstall the application and install it on a separate machine. To identify if you have multiple versions of crystal runtime files:

1. Go to the Control Panel, Programs and Features.

2. Look for installed software with names like “Seagate Crystal” or “Crystal Decisions”. Any existence of these old Crystal components would create conflicts with the Crystal .NET runtime used by Sage 300 ERP.

 

Additional Notes

The latest Windows™ 10 update appears to be removing the .NET 3.5 framework from computers. Please confirm by reviewing Programs and Features. Re-installing the .NET 3.5 framework should resolve the error without additional steps.