Troubleshooting some common Sage 300 errors


TroubleshootingPost adapted from the Sage 300 Software Support Hub

Here's how to fix a few of the more commonly experienced Sage 300 errors.  Of course we can assist if you're still having problems.

"Program file problem. Cannot find program file." "Windows defender and A4wcontainerXP.exe"

These errors can appear if the 'a4wContainerXP.exe' file located in the [Sage Programs]\Runtime directory is missing or corrupted. On December 1, 2016, Microsoft Windows Defender began falsely detecting the a4wContainerXP.exe file as "Trojan:Win23/Detplock". Here's how to resolve the errors.

Before recovering the a4wContainerXP.exe file on PCs with MS Windows Defender installed, use Microsoft's instructions to exclude the [Sage Programs]\Runtime folder from scanning.  A restart of the PC is necessary for the exclusion to take effect.

Check the MS Windows Defender, Quarantine for the file. If it's present, and the folder exclusion has been set, then restore the file. If the file is not in the Quarantine then copy the a4wContainerXP.exe from a working computer that has the same installation and version of Sage 300 ERP.

If another copy of the file isn't available, then a full Repair of the Sage 300 installation should be run. Followed by installation of the Product Update in use at the time of the error.

"Sage 300 ERP UI Container has stopped working"

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.

You can resolve this error by following the detailed steps in our "Error: 'Sage 300 ERP UI Container has stopped working' when printing reports to preview" Knowledgebase Article (#18397). If you continue to see the error after trying those steps, be sure to reboot the server and the workstation for changes to take effect. After rebooting, everything should work correctly. 

"You do not have a license to use this product"

If you see a "You do not have a license to use this product." error when opening a company on a specific computer or with a specific Windows user, it's due to a Windows user account having insufficient rights to the Sage 300 ERP Shared Data directory. You can resolve the error message by doing the following:

  1. Check the Sage 300 ERP Shared Data directory path in the registry, (Go to Start, Run, type regedit).
    • 32 bit environments:  HKEY_LOCAL_MACHINE\SOFTWARE\ACCPAC International, Inc.\ACCPAC\Configuration/span>
    • 64 bit environments:  HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ACCPAC International, Inc.\ACCPAC\Configuration/span>
  2. Confirm that this is the same location displayed in the registry from a workstation(s) that can open a company successfully./span>
  3. Check the user permissions for the Sage 300 ERP Shared Data directory.Windows user accounts must have full access to the folders and sub-folders.
    - Sage recommends that Windows user accounts be part of the Power Users group./span>

Note: The above steps have resolved a majority of these issues. In some cases there is a second registry key in the HKEY_CURRENT_USER\Software\ACCPAC INTERNATIONAL, INC. that is causing the error.